{"openapi":"3.1.0","info":{"title":"Darcy API","version":"2026-10-01","description":"Read and update your organization's data. Authenticate with an API key from Settings > Integrations: `Authorization: Bearer pmk_...`. A key acts as the staff member who created it, limited to the permissions picked for the key. Money is integer cents; dates are ISO. Lists return `{ data, has_more, next_cursor }`; pass `cursor` to get the next page.\n\nEach record has the usual routes (`GET /v1/work_orders`, `GET`, `PATCH` and `DELETE /v1/work_orders/{id}`) and its actions (`POST /v1/work_orders/{id}/claim`). Writes accept an `Idempotency-Key` header; money writes require one. Reports that span records are under `/v1/reports`."},"servers":[{"url":"https://api.usedarcy.com"}],"tags":[{"name":"Access requests"},{"name":"Actions"},{"name":"Agent proposals"},{"name":"Agent runs"},{"name":"Agents"},{"name":"Calendar event attendees"},{"name":"Calendar events"},{"name":"Custom field definitions"},{"name":"Custom field options"},{"name":"Custom field value options"},{"name":"Custom field values"},{"name":"Event types"},{"name":"Events"},{"name":"Feature flags"},{"name":"Integration account mappings"},{"name":"Integration dimension mappings"},{"name":"Integration external accounts"},{"name":"Integrations"},{"name":"Me"},{"name":"Message attachments"},{"name":"Message recipients"},{"name":"Messages"},{"name":"Meter readings"},{"name":"Org ip allowlist entries"},{"name":"Org security settings"},{"name":"Org sso domains"},{"name":"Organization feature interests"},{"name":"Organization onboarding"},{"name":"Reminders"},{"name":"Report schedule recipients"},{"name":"Report schedules"},{"name":"Reports"},{"name":"Saved reports"},{"name":"Search"},{"name":"Tag links"},{"name":"Tags"},{"name":"Tasks"},{"name":"Webhook endpoints"},{"name":"Workflow actions"},{"name":"Workflow automations"},{"name":"Workflow run steps"},{"name":"Workflow runs"},{"name":"ACH export entries"},{"name":"ACH exports"},{"name":"Accounting entities"},{"name":"Accounting export settings"},{"name":"Accounting period entity locks"},{"name":"Accounting periods"},{"name":"Application risk assessments"},{"name":"Assessment run items"},{"name":"Assessment runs"},{"name":"Assessment schedules"},{"name":"Assessment unit amounts"},{"name":"Association reserve funding plans"},{"name":"Autopay enrollments"},{"name":"Autopay runs"},{"name":"Bank account ACH settings"},{"name":"Bank accounts"},{"name":"Bank feed accounts"},{"name":"Bank feed connections"},{"name":"Bank reconciliations"},{"name":"Bank transaction matches"},{"name":"Bank transactions"},{"name":"Bank transfer lines"},{"name":"Bank transfers"},{"name":"Bill check settings"},{"name":"Bill correction payments"},{"name":"Bill corrections"},{"name":"Bill lines"},{"name":"Bills"},{"name":"Budget assumptions"},{"name":"Budget forecasts"},{"name":"Budget lines"},{"name":"Budget variance notes"},{"name":"Budgets"},{"name":"CAM estimates"},{"name":"CAM participant exclusions"},{"name":"CAM participant terms"},{"name":"CAM pool GL accounts"},{"name":"CAM pool participants"},{"name":"CAM pools"},{"name":"CAM reconciliation expenses"},{"name":"CAM reconciliation line periods"},{"name":"CAM reconciliation lines"},{"name":"CAM reconciliations"},{"name":"CAM statements"},{"name":"Capital call allocations"},{"name":"Capital calls"},{"name":"Capital project budget lines"},{"name":"Capital project change orders"},{"name":"Capital project commitments"},{"name":"Capital project cost entries"},{"name":"Capital project draw lines"},{"name":"Capital project draws"},{"name":"Capital projects"},{"name":"Categorization rules"},{"name":"Charge types"},{"name":"Charges"},{"name":"Checks"},{"name":"Close settings"},{"name":"Close task templates"},{"name":"Close tasks"},{"name":"Corporate card statements"},{"name":"Corporate card transactions"},{"name":"Corporate cards"},{"name":"Cost codes"},{"name":"Credit allocations"},{"name":"Credits"},{"name":"Deposit alternative claims"},{"name":"Deposit alternative enrollments"},{"name":"Deposit alternative product properties"},{"name":"Deposit alternative products"},{"name":"Deposit deduction prices"},{"name":"Deposit disposition draft lines"},{"name":"Deposit disposition drafts"},{"name":"Deposit interest payments"},{"name":"Deposit interest positions"},{"name":"Deposit interest settings"},{"name":"Deposit items"},{"name":"Deposits"},{"name":"Depreciation schedules"},{"name":"Disputes"},{"name":"Distribution waterfalls"},{"name":"Fixed asset tax books"},{"name":"GL account tree groups"},{"name":"GL account trees"},{"name":"GL accounts"},{"name":"HAP payment item recoveries"},{"name":"HAP payment items"},{"name":"HAP payments"},{"name":"Home purchase contract charges"},{"name":"Home purchase contract credits"},{"name":"Homeowner assessment prepayments"},{"name":"Homeowner autopay enrollments"},{"name":"Homeowner autopay runs"},{"name":"Investor accreditations"},{"name":"Investor distributions"},{"name":"Investor tax K1S"},{"name":"Journal entries"},{"name":"Journal entry drafts"},{"name":"Journal lines"},{"name":"Key checkouts"},{"name":"Late fee assessments"},{"name":"Late fee policies"},{"name":"Late fee runs"},{"name":"Lease balance transfers"},{"name":"Lease payment overrides"},{"name":"Lease payment restrictions"},{"name":"Listing monthly fees"},{"name":"Loan hedges"},{"name":"Loan reserve draws"},{"name":"Lockbox batches"},{"name":"Lockbox item lines"},{"name":"Lockbox items"},{"name":"Management agreement owners"},{"name":"Management agreement properties"},{"name":"Management agreements"},{"name":"Management fee adjustments"},{"name":"Management fee items"},{"name":"Management fee reversals"},{"name":"Management fee rules"},{"name":"Management fee runs"},{"name":"Management fee settings"},{"name":"Mitchell lama surcharge bands"},{"name":"Mitchell lama surcharge charges"},{"name":"Move checklist template items"},{"name":"Move event checklist items"},{"name":"NSF events"},{"name":"NSF fee policies"},{"name":"Opening balance batches"},{"name":"Opening balance lines"},{"name":"Outreach batches"},{"name":"Outreach items"},{"name":"Outside payment exports"},{"name":"Outstanding item resolutions"},{"name":"Owner distribution holds"},{"name":"Owner distribution lines"},{"name":"Owner distribution properties"},{"name":"Owner distributions"},{"name":"Owner statement lines"},{"name":"Owner statement properties"},{"name":"Owner statements"},{"name":"Owner tax settings"},{"name":"Owner tax summaries"},{"name":"Payables approval rules"},{"name":"Payee bank accounts"},{"name":"Payer customers"},{"name":"Payment batch items"},{"name":"Payment batches"},{"name":"Payment fee policies"},{"name":"Payment methods"},{"name":"Payment plan installments"},{"name":"Payment plans"},{"name":"Payment restriction exceptions"},{"name":"Payment routing rules"},{"name":"Payment transaction events"},{"name":"Payment transactions"},{"name":"Positive pay export batches"},{"name":"Positive pay export items"},{"name":"Positive pay settings"},{"name":"Prepaid schedule months"},{"name":"Prepaid schedules"},{"name":"Pricing approval limits"},{"name":"Pricing recommendations"},{"name":"Prior period adjustments"},{"name":"Processor accounts"},{"name":"Processor payout items"},{"name":"Processor payouts"},{"name":"Property bank accounts"},{"name":"Property loan escrows"},{"name":"Property loans"},{"name":"Property tax appeals"},{"name":"Property tax benefits"},{"name":"Property tax years"},{"name":"Purchase order lines"},{"name":"Purchase order rejections"},{"name":"Purchase orders"},{"name":"Receipt allocations"},{"name":"Receipt instrument receipts"},{"name":"Receipt instruments"},{"name":"Receipt refunds"},{"name":"Receipts"},{"name":"Recurring bill lines"},{"name":"Recurring bills"},{"name":"Recurring charges"},{"name":"Recurring journal lines"},{"name":"Recurring journal runs"},{"name":"Recurring journals"},{"name":"Recurring repair alerts"},{"name":"Refunds"},{"name":"Resale fee caps"},{"name":"Scheduled payments"},{"name":"Security deposit deductions"},{"name":"Security deposit dispositions"},{"name":"Syndication feeds"},{"name":"Task checklist items"},{"name":"Tax form 1099 file downloads"},{"name":"Tax forms 1099"},{"name":"Tax profiles"},{"name":"Ti disbursements"},{"name":"Trust reconciliation snapshot lines"},{"name":"Trust reconciliation snapshots"},{"name":"Utility bill lease shares"},{"name":"Utility billing allocations"},{"name":"Utility billing policies"},{"name":"Utility billing run bills"},{"name":"Utility billing runs"},{"name":"Utility bills received"},{"name":"Vendor credit applications"},{"name":"Vendor credit lines"},{"name":"Vendor credits"},{"name":"Vendor payment allocations"},{"name":"Vendor payments"},{"name":"Waterfall allocations"},{"name":"Waterfall runs"},{"name":"Waterfall tiers"},{"name":"Work approval limits"},{"name":"Write off lines"},{"name":"Write off requests"},{"name":"Write offs"},{"name":"Affordable waitlist entries"},{"name":"Association committee members"},{"name":"Association committees"},{"name":"Association election ballots"},{"name":"Association election options"},{"name":"Association elections"},{"name":"Association resale offerings"},{"name":"Association reserve components"},{"name":"Association reserve studies"},{"name":"Association unit allocations"},{"name":"Associations"},{"name":"Building energy years"},{"name":"Certification assets"},{"name":"Certification deductions"},{"name":"Certification income sources"},{"name":"Certification members"},{"name":"Commercial insurance certificates"},{"name":"Commercial insurance requirements"},{"name":"Compliance audit findings"},{"name":"Compliance items"},{"name":"Compliance reminders"},{"name":"Compliance requirements"},{"name":"EIV household flags"},{"name":"EIV import households"},{"name":"EIV import members"},{"name":"EIV imports"},{"name":"EIV member incomes"},{"name":"EIV report reviews"},{"name":"Entity income allocations"},{"name":"HAP abatements"},{"name":"HAP contract renewals"},{"name":"HAP contract units"},{"name":"HAP contracts"},{"name":"HAP rent schedule lines"},{"name":"HAP rent schedules"},{"name":"Household certifications"},{"name":"Housing programs"},{"name":"Income limit areas"},{"name":"Income limits"},{"name":"Income verification requests"},{"name":"Income verification results"},{"name":"Insurance certificates"},{"name":"Insurance policies"},{"name":"Insurance requirements"},{"name":"Jurisdiction rules"},{"name":"LIHTC noncompliance findings"},{"name":"Legal notices"},{"name":"Legal referral packets"},{"name":"Legal referrals"},{"name":"Mitchell lama affidavits"},{"name":"Mitchell lama programs"},{"name":"Mitchell lama waitlist entries"},{"name":"Mitchell lama waitlist offers"},{"name":"NSPIRE scores"},{"name":"NYC open data syncs"},{"name":"Program submissions"},{"name":"Property insurance premiums"},{"name":"Property jurisdictions"},{"name":"Regulatory agreement covenants"},{"name":"Regulatory agreement obligations"},{"name":"Regulatory agreements"},{"name":"Rent reporting batch items"},{"name":"Rent reporting batches"},{"name":"Rent reporting enrollments"},{"name":"Rent reporting settings"},{"name":"Reserve eligibility rules"},{"name":"Unit legal rents"},{"name":"Vendor compliance overrides"},{"name":"Vendor insurance policies"},{"name":"Amenities"},{"name":"Amenity reservations"},{"name":"Announcement audiences"},{"name":"Announcement recipients"},{"name":"Announcements"},{"name":"Architectural request comments"},{"name":"Architectural requests"},{"name":"Board approvals"},{"name":"Board meeting attendees"},{"name":"Board meetings"},{"name":"Board members"},{"name":"Board votes"},{"name":"Building violations"},{"name":"Commercial space details"},{"name":"Dashboard layouts"},{"name":"Guest passes"},{"name":"Home guide entries"},{"name":"Homeowner account owners"},{"name":"Homeowner accounts"},{"name":"Homeowner special payoffs"},{"name":"Owner onboardings"},{"name":"Packages"},{"name":"Park homes"},{"name":"Resale request documents"},{"name":"Resale requests"},{"name":"Reservable amenities"},{"name":"Resident event rsvps"},{"name":"Resident events"},{"name":"Survey answer options"},{"name":"Survey answers"},{"name":"Survey invitations"},{"name":"Survey question options"},{"name":"Survey questions"},{"name":"Survey responses"},{"name":"Surveys"},{"name":"Trust audit packages"},{"name":"Violation appeals"},{"name":"Violation fines"},{"name":"Violation hearings"},{"name":"Violation notices"},{"name":"Violation photos"},{"name":"Violation reports"},{"name":"Violation types"},{"name":"Violations"},{"name":"Visitor logs"},{"name":"Asset service links"},{"name":"Assets"},{"name":"Emergency contacts"},{"name":"Fixed assets"},{"name":"Incident updates"},{"name":"Incidents"},{"name":"Inspection items"},{"name":"Inspection photos"},{"name":"Inspection template items"},{"name":"Inspection templates"},{"name":"Inspections"},{"name":"Inventory items"},{"name":"Inventory locations"},{"name":"Inventory stock levels"},{"name":"Inventory transactions"},{"name":"Keys"},{"name":"Labor entries"},{"name":"Maintenance categories"},{"name":"Maintenance category tips"},{"name":"Maintenance intake photos"},{"name":"Maintenance policies"},{"name":"Maintenance priority goals"},{"name":"Maintenance self help outcomes"},{"name":"Maintenance self help settings"},{"name":"Material catalog items"},{"name":"Material entries"},{"name":"Material list items"},{"name":"Material lists"},{"name":"On call"},{"name":"On call overrides"},{"name":"On call schedule members"},{"name":"On call schedules"},{"name":"On call shifts"},{"name":"Owner work orders"},{"name":"Preventive maintenance schedules"},{"name":"Renovation notices"},{"name":"Renovation relocations"},{"name":"Renovation units"},{"name":"Service request availability"},{"name":"Service request comments"},{"name":"Service request photos"},{"name":"Service requests"},{"name":"Staff labor rates"},{"name":"Tenant work orders"},{"name":"Unit turn tasks"},{"name":"Unit turns"},{"name":"Work order appointments"},{"name":"Work order assignments"},{"name":"Work order estimate lines"},{"name":"Work order estimates"},{"name":"Work order events"},{"name":"Work order internal notes"},{"name":"Work order photos"},{"name":"Work order ratings"},{"name":"Work order vendor responses"},{"name":"Work orders"},{"name":"Abandoned home case events"},{"name":"Abandoned home cases"},{"name":"Application applicants"},{"name":"Application decisions"},{"name":"Application employment"},{"name":"Application income"},{"name":"Application invitations"},{"name":"Application pets"},{"name":"Application residence history"},{"name":"Application risk factors"},{"name":"Application vehicles"},{"name":"Collections accounts"},{"name":"Collections letters"},{"name":"Collections recoveries"},{"name":"Collections referral policies"},{"name":"Collections runs"},{"name":"Collections settings"},{"name":"Commercial lease terms"},{"name":"Court hearings"},{"name":"Eviction case defendants"},{"name":"Eviction case events"},{"name":"Eviction cases"},{"name":"Home purchase contract events"},{"name":"Home purchase contracts"},{"name":"Home purchase installments"},{"name":"Lead events"},{"name":"Lead sources"},{"name":"Leads"},{"name":"Lease amendment term changes"},{"name":"Lease amendments"},{"name":"Lease beds"},{"name":"Lease critical dates"},{"name":"Lease guaranties"},{"name":"Lease notes"},{"name":"Lease options"},{"name":"Lease rent schedules"},{"name":"Lease rent share plans"},{"name":"Lease rent share proposal lines"},{"name":"Lease rent share proposals"},{"name":"Lease rent shares"},{"name":"Lease rentable items"},{"name":"Lease security instruments"},{"name":"Lease tenants"},{"name":"Lease utility setups"},{"name":"Leases"},{"name":"Listing holds"},{"name":"Listing photos"},{"name":"Listing syndications"},{"name":"Listings"},{"name":"Market rent history"},{"name":"Move events"},{"name":"Move out notices"},{"name":"Offerings"},{"name":"Percentage rent terms"},{"name":"Renewal offer terms"},{"name":"Renewal offers"},{"name":"Rent comparability studies"},{"name":"Rent comparability study rents"},{"name":"Rent escalation steps"},{"name":"Rent escalations"},{"name":"Rent freeze benefits"},{"name":"Rent guidelines orders"},{"name":"Rent limits"},{"name":"Rentable item waitlist entries"},{"name":"Rentable items"},{"name":"Rental applications"},{"name":"Roommate group members"},{"name":"Roommate groups"},{"name":"Roommate move outs"},{"name":"Roommate profiles"},{"name":"Screening agency disclosures"},{"name":"Screening criteria"},{"name":"Screening provider accounts"},{"name":"Screening provider properties"},{"name":"Screening requests"},{"name":"Showing reply menus"},{"name":"Showing response links"},{"name":"Showings"},{"name":"Adopted signatures"},{"name":"Call logs"},{"name":"Communication endpoints"},{"name":"Communication settings"},{"name":"Communication suppressions"},{"name":"Contact emails"},{"name":"Conversation participants"},{"name":"Conversations"},{"name":"Document links"},{"name":"Document settings"},{"name":"Document template fields"},{"name":"Document template versions"},{"name":"Document templates"},{"name":"Documents"},{"name":"Esign envelopes"},{"name":"Esign events"},{"name":"Esign fields"},{"name":"Generated documents"},{"name":"Inbound emails"},{"name":"Interactions"},{"name":"Investor documents"},{"name":"Mail batches"},{"name":"Mail piece events"},{"name":"Mail pieces"},{"name":"Notification preferences"},{"name":"Notification quiet hours"},{"name":"Notification templates"},{"name":"Notifications"},{"name":"Ops meetings"},{"name":"Program unit designations"},{"name":"Vendor document requests"},{"name":"Contact addresses"},{"name":"Contact change requests"},{"name":"Contact notes"},{"name":"Contact phones"},{"name":"Contact relationships"},{"name":"Contact tags"},{"name":"Contacts"},{"name":"Investor commitments"},{"name":"Investor contributions"},{"name":"Investor positions"},{"name":"Investors"},{"name":"Owner approvals"},{"name":"Owner contributions"},{"name":"Owner profile changes"},{"name":"Owner report schedules"},{"name":"Owners"},{"name":"Pets"},{"name":"Portfolio group members"},{"name":"Property ownerships"},{"name":"Tenant improvement allowances"},{"name":"Tenant sales reports"},{"name":"Vehicles"},{"name":"Vendor availability windows"},{"name":"Vendor contracts"},{"name":"Vendor control changes"},{"name":"Vendor profile changes"},{"name":"Vendor property preferences"},{"name":"Vendor rfp invitations"},{"name":"Vendor rfps"},{"name":"Vendor trades"},{"name":"Vendors"},{"name":"Academic terms"},{"name":"Addresses"},{"name":"Beds"},{"name":"Buildings"},{"name":"Entity holdings"},{"name":"Entity properties"},{"name":"Floor plans"},{"name":"Identity verifications"},{"name":"Investment entities"},{"name":"Investment share classes"},{"name":"Portfolio groups"},{"name":"Portfolios"},{"name":"Properties"},{"name":"Property assignments"},{"name":"Property entity assignments"},{"name":"Property photos"},{"name":"Property reserve transactions"},{"name":"Property reserves"},{"name":"Property resident utilities"},{"name":"Property settings"},{"name":"Property system events"},{"name":"Property systems"},{"name":"Property valuations"},{"name":"Unclaimed property"},{"name":"Unclaimed property reports"},{"name":"Unclaimed property rules"},{"name":"Unit photos"},{"name":"Unit vacancy blockers"},{"name":"Units"},{"name":"Utility account responsibilities"},{"name":"Utility accounts"},{"name":"Utility allowances"},{"name":"Utility exception reviews"},{"name":"Utility meters"},{"name":"Utility providers"},{"name":"Utility rate tiers"},{"name":"Utility rates"},{"name":"Utility unit weights"},{"name":"Utility usage spike reviews"}],"x-tagGroups":[{"name":"Organization and automation","tags":["Access requests","Actions","Agent proposals","Agent runs","Agents","Calendar event attendees","Calendar events","Custom field definitions","Custom field options","Custom field value options","Custom field values","Event types","Events","Feature flags","Integration account mappings","Integration dimension mappings","Integration external accounts","Integrations","Me","Message attachments","Message recipients","Messages","Meter readings","Org ip allowlist entries","Org security settings","Org sso domains","Organization feature interests","Organization onboarding","Reminders","Report schedule recipients","Report schedules","Reports","Saved reports","Search","Tag links","Tags","Tasks","Webhook endpoints","Workflow actions","Workflow automations","Workflow run steps","Workflow runs"]},{"name":"Accounting","tags":["ACH export entries","ACH exports","Accounting entities","Accounting export settings","Accounting period entity locks","Accounting periods","Application risk assessments","Assessment run items","Assessment runs","Assessment schedules","Assessment unit amounts","Association reserve funding plans","Autopay enrollments","Autopay runs","Bank account ACH settings","Bank accounts","Bank feed accounts","Bank feed connections","Bank reconciliations","Bank transaction matches","Bank transactions","Bank transfer lines","Bank transfers","Bill check settings","Bill correction payments","Bill corrections","Bill lines","Bills","Budget assumptions","Budget forecasts","Budget lines","Budget variance notes","Budgets","CAM estimates","CAM participant exclusions","CAM participant terms","CAM pool GL accounts","CAM pool participants","CAM pools","CAM reconciliation expenses","CAM reconciliation line periods","CAM reconciliation lines","CAM reconciliations","CAM statements","Capital call allocations","Capital calls","Capital project budget lines","Capital project change orders","Capital project commitments","Capital project cost entries","Capital project draw lines","Capital project draws","Capital projects","Categorization rules","Charge types","Charges","Checks","Close settings","Close task templates","Close tasks","Corporate card statements","Corporate card transactions","Corporate cards","Cost codes","Credit allocations","Credits","Deposit alternative claims","Deposit alternative enrollments","Deposit alternative product properties","Deposit alternative products","Deposit deduction prices","Deposit disposition draft lines","Deposit disposition drafts","Deposit interest payments","Deposit interest positions","Deposit interest settings","Deposit items","Deposits","Depreciation schedules","Disputes","Distribution waterfalls","Fixed asset tax books","GL account tree groups","GL account trees","GL accounts","HAP payment item recoveries","HAP payment items","HAP payments","Home purchase contract charges","Home purchase contract credits","Homeowner assessment prepayments","Homeowner autopay enrollments","Homeowner autopay runs","Investor accreditations","Investor distributions","Investor tax K1S","Journal entries","Journal entry drafts","Journal lines","Key checkouts","Late fee assessments","Late fee policies","Late fee runs","Lease balance transfers","Lease payment overrides","Lease payment restrictions","Listing monthly fees","Loan hedges","Loan reserve draws","Lockbox batches","Lockbox item lines","Lockbox items","Management agreement owners","Management agreement properties","Management agreements","Management fee adjustments","Management fee items","Management fee reversals","Management fee rules","Management fee runs","Management fee settings","Mitchell lama surcharge bands","Mitchell lama surcharge charges","Move checklist template items","Move event checklist items","NSF events","NSF fee policies","Opening balance batches","Opening balance lines","Outreach batches","Outreach items","Outside payment exports","Outstanding item resolutions","Owner distribution holds","Owner distribution lines","Owner distribution properties","Owner distributions","Owner statement lines","Owner statement properties","Owner statements","Owner tax settings","Owner tax summaries","Payables approval rules","Payee bank accounts","Payer customers","Payment batch items","Payment batches","Payment fee policies","Payment methods","Payment plan installments","Payment plans","Payment restriction exceptions","Payment routing rules","Payment transaction events","Payment transactions","Positive pay export batches","Positive pay export items","Positive pay settings","Prepaid schedule months","Prepaid schedules","Pricing approval limits","Pricing recommendations","Prior period adjustments","Processor accounts","Processor payout items","Processor payouts","Property bank accounts","Property loan escrows","Property loans","Property tax appeals","Property tax benefits","Property tax years","Purchase order lines","Purchase order rejections","Purchase orders","Receipt allocations","Receipt instrument receipts","Receipt instruments","Receipt refunds","Receipts","Recurring bill lines","Recurring bills","Recurring charges","Recurring journal lines","Recurring journal runs","Recurring journals","Recurring repair alerts","Refunds","Resale fee caps","Scheduled payments","Security deposit deductions","Security deposit dispositions","Syndication feeds","Task checklist items","Tax form 1099 file downloads","Tax forms 1099","Tax profiles","Ti disbursements","Trust reconciliation snapshot lines","Trust reconciliation snapshots","Utility bill lease shares","Utility billing allocations","Utility billing policies","Utility billing run bills","Utility billing runs","Utility bills received","Vendor credit applications","Vendor credit lines","Vendor credits","Vendor payment allocations","Vendor payments","Waterfall allocations","Waterfall runs","Waterfall tiers","Work approval limits","Write off lines","Write off requests","Write offs"]},{"name":"Compliance and affordable housing","tags":["Affordable waitlist entries","Association committee members","Association committees","Association election ballots","Association election options","Association elections","Association resale offerings","Association reserve components","Association reserve studies","Association unit allocations","Associations","Building energy years","Certification assets","Certification deductions","Certification income sources","Certification members","Commercial insurance certificates","Commercial insurance requirements","Compliance audit findings","Compliance items","Compliance reminders","Compliance requirements","EIV household flags","EIV import households","EIV import members","EIV imports","EIV member incomes","EIV report reviews","Entity income allocations","HAP abatements","HAP contract renewals","HAP contract units","HAP contracts","HAP rent schedule lines","HAP rent schedules","Household certifications","Housing programs","Income limit areas","Income limits","Income verification requests","Income verification results","Insurance certificates","Insurance policies","Insurance requirements","Jurisdiction rules","LIHTC noncompliance findings","Legal notices","Legal referral packets","Legal referrals","Mitchell lama affidavits","Mitchell lama programs","Mitchell lama waitlist entries","Mitchell lama waitlist offers","NSPIRE scores","NYC open data syncs","Program submissions","Property insurance premiums","Property jurisdictions","Regulatory agreement covenants","Regulatory agreement obligations","Regulatory agreements","Rent reporting batch items","Rent reporting batches","Rent reporting enrollments","Rent reporting settings","Reserve eligibility rules","Unit legal rents","Vendor compliance overrides","Vendor insurance policies"]},{"name":"Associations and community","tags":["Amenities","Amenity reservations","Announcement audiences","Announcement recipients","Announcements","Architectural request comments","Architectural requests","Board approvals","Board meeting attendees","Board meetings","Board members","Board votes","Building violations","Commercial space details","Dashboard layouts","Guest passes","Home guide entries","Homeowner account owners","Homeowner accounts","Homeowner special payoffs","Owner onboardings","Packages","Park homes","Resale request documents","Resale requests","Reservable amenities","Resident event rsvps","Resident events","Survey answer options","Survey answers","Survey invitations","Survey question options","Survey questions","Survey responses","Surveys","Trust audit packages","Violation appeals","Violation fines","Violation hearings","Violation notices","Violation photos","Violation reports","Violation types","Violations","Visitor logs"]},{"name":"Maintenance","tags":["Asset service links","Assets","Emergency contacts","Fixed assets","Incident updates","Incidents","Inspection items","Inspection photos","Inspection template items","Inspection templates","Inspections","Inventory items","Inventory locations","Inventory stock levels","Inventory transactions","Keys","Labor entries","Maintenance categories","Maintenance category tips","Maintenance intake photos","Maintenance policies","Maintenance priority goals","Maintenance self help outcomes","Maintenance self help settings","Material catalog items","Material entries","Material list items","Material lists","On call","On call overrides","On call schedule members","On call schedules","On call shifts","Owner work orders","Preventive maintenance schedules","Renovation notices","Renovation relocations","Renovation units","Service request availability","Service request comments","Service request photos","Service requests","Staff labor rates","Tenant work orders","Unit turn tasks","Unit turns","Work order appointments","Work order assignments","Work order estimate lines","Work order estimates","Work order events","Work order internal notes","Work order photos","Work order ratings","Work order vendor responses","Work orders"]},{"name":"Leasing","tags":["Abandoned home case events","Abandoned home cases","Application applicants","Application decisions","Application employment","Application income","Application invitations","Application pets","Application residence history","Application risk factors","Application vehicles","Collections accounts","Collections letters","Collections recoveries","Collections referral policies","Collections runs","Collections settings","Commercial lease terms","Court hearings","Eviction case defendants","Eviction case events","Eviction cases","Home purchase contract events","Home purchase contracts","Home purchase installments","Lead events","Lead sources","Leads","Lease amendment term changes","Lease amendments","Lease beds","Lease critical dates","Lease guaranties","Lease notes","Lease options","Lease rent schedules","Lease rent share plans","Lease rent share proposal lines","Lease rent share proposals","Lease rent shares","Lease rentable items","Lease security instruments","Lease tenants","Lease utility setups","Leases","Listing holds","Listing photos","Listing syndications","Listings","Market rent history","Move events","Move out notices","Offerings","Percentage rent terms","Renewal offer terms","Renewal offers","Rent comparability studies","Rent comparability study rents","Rent escalation steps","Rent escalations","Rent freeze benefits","Rent guidelines orders","Rent limits","Rentable item waitlist entries","Rentable items","Rental applications","Roommate group members","Roommate groups","Roommate move outs","Roommate profiles","Screening agency disclosures","Screening criteria","Screening provider accounts","Screening provider properties","Screening requests","Showing reply menus","Showing response links","Showings"]},{"name":"Communications","tags":["Adopted signatures","Call logs","Communication endpoints","Communication settings","Communication suppressions","Contact emails","Conversation participants","Conversations","Document links","Document settings","Document template fields","Document template versions","Document templates","Documents","Esign envelopes","Esign events","Esign fields","Generated documents","Inbound emails","Interactions","Investor documents","Mail batches","Mail piece events","Mail pieces","Notification preferences","Notification quiet hours","Notification templates","Notifications","Ops meetings","Program unit designations","Vendor document requests"]},{"name":"People","tags":["Contact addresses","Contact change requests","Contact notes","Contact phones","Contact relationships","Contact tags","Contacts","Investor commitments","Investor contributions","Investor positions","Investors","Owner approvals","Owner contributions","Owner profile changes","Owner report schedules","Owners","Pets","Portfolio group members","Property ownerships","Tenant improvement allowances","Tenant sales reports","Vehicles","Vendor availability windows","Vendor contracts","Vendor control changes","Vendor profile changes","Vendor property preferences","Vendor rfp invitations","Vendor rfps","Vendor trades","Vendors"]},{"name":"Portfolio","tags":["Academic terms","Addresses","Beds","Buildings","Entity holdings","Entity properties","Floor plans","Identity verifications","Investment entities","Investment share classes","Portfolio groups","Portfolios","Properties","Property assignments","Property entity assignments","Property photos","Property reserve transactions","Property reserves","Property resident utilities","Property settings","Property system events","Property systems","Property valuations","Unclaimed property","Unclaimed property reports","Unclaimed property rules","Unit photos","Unit vacancy blockers","Units","Utility account responsibilities","Utility accounts","Utility allowances","Utility exception reviews","Utility meters","Utility providers","Utility rate tiers","Utility rates","Utility unit weights","Utility usage spike reviews"]}],"security":[{"apiKey":[]},{"oauth":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"pmk_<env>_<hex>"},"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://api.usedarcy.com/oauth/authorize","tokenUrl":"https://api.usedarcy.com/oauth/token","refreshUrl":"https://api.usedarcy.com/oauth/token","scopes":{}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}},"required":["error"]}}},"paths":{"/v1/me":{"get":{"operationId":"get_api_key","summary":"Describe this API key","description":"The organization this key works in (id, slug, name, time zone), the key's id, name and environment (test or live), the scopes it was granted, the permissions it can use now (its scopes that its creator still holds) and the staff user it acts as. Call this first to learn which other tools this key may use.\n\nAny key may call it.","tags":["Me"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/search":{"get":{"operationId":"search","summary":"Search people, properties, units, leases and work orders","description":"Finds records by name, email, phone, address, unit number, tenant name or work order number (#123). Returns matches grouped by kind (contact, property, unit, lease, work_order), best first, each with id, title, subtitle and, for contacts, roles (tenant, former_tenant, owner, vendor, applicant) plus owner_id and vendor_id. Use it to turn a name the user mentions into an id for the get_* and list_* tools. Only records the key can see are returned.\n\nNeeds one of: contacts.read, owners.read, properties.read, leasing.read, residents.read, maintenance.read.","tags":["Search"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200,"description":"Search text, at least 2 characters."},"description":"Search text, at least 2 characters."},{"name":"per_kind","in":"query","required":false,"schema":{"default":5,"description":"Most matches per kind, 1-20 (default 5).","type":"integer","minimum":1,"maximum":20},"description":"Most matches per kind, 1-20 (default 5)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","owners.read","properties.read","leasing.read","residents.read","maintenance.read"]}},"/v1/properties":{"get":{"operationId":"list_properties","summary":"List properties","description":"Properties the key can see, oldest first. Filter by status or type; archived properties are left out unless include_archived is true.\n\nNeeds one of: properties.read.","tags":["Properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_status","in":"query","required":false,"schema":{"description":"e.g. active, inactive","type":"string"},"description":"e.g. active, inactive"},{"name":"property_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/properties/{id}":{"get":{"operationId":"get_property","summary":"Get a property","description":"One property by id.\n\nNeeds one of: properties.read.","tags":["Properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"patch":{"operationId":"update_properties_row","summary":"Update a property","description":"A managed real estate asset: a single-family home, a duplex, an apartment complex, a condo... Each property is its own self-balancing fund in the ledger. Units are always rows in units, even for a single-family home (one unit). Owners via property_ownerships; staff (managers, agents, techs) via property_assignments.\n\nChanges the given fields of one row of properties and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"code":{"anyOf":[{"type":"string","maxLength":100000,"description":"Short unique reference used in reports and imports, e.g. MAPLE or 123MAIN."},{"type":"null"}]},"property_type":{"type":"string","enum":["single_family","multi_family","apartment_complex","condo","townhome","duplex","mobile_home","manufactured_home_community","student","senior","mixed_use","other","office","retail","shopping_center","industrial","flex","medical_office","self_storage","commercial_other","association"],"description":"property type"},"marketing_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Name used on listings if different from name."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"address_line1":{"type":"string","maxLength":100000,"description":"address line1"},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"type":"string","maxLength":100000,"description":"city"},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"State, province or region code, e.g. CA. Drives jurisdiction rules (deposit limits, notice periods)."},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"county":{"anyOf":[{"type":"string","maxLength":100000,"description":"county"},{"type":"null"}]},"country_code":{"type":"string","maxLength":100000,"description":"country code"},"latitude":{"anyOf":[{"type":"number","description":"latitude"},{"type":"null"}]},"longitude":{"anyOf":[{"type":"number","description":"longitude"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","maxLength":100000,"description":"IANA timezone if different from the organization's."},{"type":"null"}]},"year_built":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year built"},{"type":"null"}]},"year_renovated":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year renovated"},{"type":"null"}]},"building_sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total rentable/building area in square feet."},{"type":"null"}]},"lot_size_sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"lot size sqft"},{"type":"null"}]},"stories":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"stories"},{"type":"null"}]},"parcel_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Assessor parcel number (APN) for tax and compliance."},{"type":"null"}]},"acquired_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"acquired on"},{"type":"null"}]},"acquisition_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"acquisition price cents"},{"type":"null"}]},"management_started_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day the organization managed the property (for fees, statements, reports)."},{"type":"null"}]},"management_ended_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day of management, if management ended."},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":100000,"description":"email"},{"type":"null"}]},"website_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"website url"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"accounting_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Accounting entity whose books this property's fund currently belongs to (the property_entity_assignments row covering today). Maintained by the ledger: defaults to the management_company entity on insert, changed only through public.assign_property_accounting_entity. History in property_entity_assig"},"onboarding_kind":{"anyOf":[{"type":"string","enum":["acquisition","management_transition","software_migration","existing"],"description":"How the property came onto the platform; decides which documents onboarding asks for next."},{"type":"null"}]},"accounting_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day the property's books are kept here: the cutoff between historical activity and live transactions."},{"type":"null"}]},"unknown_fields":{"type":"array","items":{"type":"string","maxLength":100000},"description":"Columns the person marked \"I don't know yet\" at setup, so a blank is never mistaken for a verified value (for example owner, unit_count, accounting_start_on)."},"nyc_bbl":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC borough-block-lot, 10 digits (borough 1-5, block 5, lot 4). Used when no building of the property has its own."},{"type":"null"}]},"nyc_bin":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC Department of Buildings building identification number, 7 digits. Keys the DOB violations sync."},{"type":"null"}]},"hpd_building_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC HPD BuildingID. Keys the HPD violations sync (before the BBL)."},{"type":"null"}]},"hpd_registration_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC HPD multiple dwelling registration id."},{"type":"null"}]},"nyc_synced_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the nightly NYC Open Data job last finished this property (every dataset tried; per-dataset errors are in nyc_open_data_syncs)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/units":{"get":{"operationId":"list_units","summary":"List units","description":"Units the key can see, oldest first. Filter by property or status (vacant, occupied, notice, ...). market_rent_cents is integer cents.\n\nNeeds one of: properties.read.","tags":["Units"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"post":{"operationId":"create_units_row","summary":"Create a unit","description":"A rentable dwelling within a property (apartment, house, condo unit). A single-family property has exactly one unit. Occupancy truth comes from leases: a unit is occupied when it has a current lease; status is the operational state kept in step by leasing and maintenance workflows, with history in unit_status_history.\n\nInserts one row of units in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Units"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"unit_number":{"type":"string","maxLength":100000,"description":"Unit label as residents know it, e.g. 101, 2B, Main. Unique within property and building."},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"Set only when the unit has its own street address (scattered-site or duplex halves); null = property/building address."},{"type":"null"}]},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"floor_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"floor number"},{"type":"null"}]},"bedrooms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = studio. Null = take from floor plan."},{"type":"null"}]},"bathrooms":{"anyOf":[{"type":"number","description":"Full baths 1, half baths 0.5. Null = take from floor plan."},{"type":"null"}]},"sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sqft"},{"type":"null"}]},"market_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current asking/market rent per month. Changes are recorded in market_rent_history. Lease rent is on the lease."},{"type":"null"}]},"ready_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit is expected to be rent-ready (make_ready / down)."},{"type":"null"}]},"is_furnished":{"type":"boolean","description":"is furnished"},"is_ada_accessible":{"type":"boolean","description":"is ada accessible"},"is_affordable":{"type":"boolean","description":"Unit is set aside under an affordable housing program (LIHTC, Section 8 project-based)."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"space_use":{"type":"string","maxLength":100000,"description":"What the space is used for: residential (a dwelling), commercial (office, retail, industrial) or other (nonresidential space that is not commercial, such as a community room). Leases keep their own lease_use."},"legal_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Registered legal regulated rent of a rent-stabilized or rent-controlled unit (the most the unit may be rented for); null when the unit is not regulated."},{"type":"null"}]},"rent_regulation":{"type":"string","maxLength":100000,"description":"New York rent regulation of the unit: market (not regulated), stabilized (Rent Stabilization Law: renewals capped by the Rent Guidelines Board order, registered with DHCR every April 1) or controlled (rent control, maximum base rent)."},"rent_registration_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"DHCR building registration number the unit is registered under (printed on the annual apartment registration); null when not registered."},{"type":"null"}]}},"required":["property_id","unit_number"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/units/{id}":{"get":{"operationId":"get_unit","summary":"Get a unit","description":"One unit by id.\n\nNeeds one of: properties.read.","tags":["Units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"patch":{"operationId":"update_units_row","summary":"Update a unit","description":"A rentable dwelling within a property (apartment, house, condo unit). A single-family property has exactly one unit. Occupancy truth comes from leases: a unit is occupied when it has a current lease; status is the operational state kept in step by leasing and maintenance workflows, with history in unit_status_history.\n\nChanges the given fields of one row of units and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"unit_number":{"type":"string","maxLength":100000,"description":"Unit label as residents know it, e.g. 101, 2B, Main. Unique within property and building."},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"Set only when the unit has its own street address (scattered-site or duplex halves); null = property/building address."},{"type":"null"}]},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"floor_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"floor number"},{"type":"null"}]},"bedrooms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = studio. Null = take from floor plan."},{"type":"null"}]},"bathrooms":{"anyOf":[{"type":"number","description":"Full baths 1, half baths 0.5. Null = take from floor plan."},{"type":"null"}]},"sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sqft"},{"type":"null"}]},"market_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current asking/market rent per month. Changes are recorded in market_rent_history. Lease rent is on the lease."},{"type":"null"}]},"ready_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit is expected to be rent-ready (make_ready / down)."},{"type":"null"}]},"is_furnished":{"type":"boolean","description":"is furnished"},"is_ada_accessible":{"type":"boolean","description":"is ada accessible"},"is_affordable":{"type":"boolean","description":"Unit is set aside under an affordable housing program (LIHTC, Section 8 project-based)."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"space_use":{"type":"string","maxLength":100000,"description":"What the space is used for: residential (a dwelling), commercial (office, retail, industrial) or other (nonresidential space that is not commercial, such as a community room). Leases keep their own lease_use."},"legal_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Registered legal regulated rent of a rent-stabilized or rent-controlled unit (the most the unit may be rented for); null when the unit is not regulated."},{"type":"null"}]},"rent_regulation":{"type":"string","maxLength":100000,"description":"New York rent regulation of the unit: market (not regulated), stabilized (Rent Stabilization Law: renewals capped by the Rent Guidelines Board order, registered with DHCR every April 1) or controlled (rent control, maximum base rent)."},"rent_registration_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"DHCR building registration number the unit is registered under (printed on the annual apartment registration); null when not registered."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/units/{id}/status":{"post":{"operationId":"set_unit_status","summary":"Change a unit's status","description":"Moves a unit to a new status (for example vacant to ready) through the same workflow as the web app, which records the change in the unit's history.\n\nNeeds one of: properties.write.","tags":["Units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"New unit status"},"reason":{"type":"string","maxLength":500},"ready_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/contacts":{"get":{"operationId":"list_contacts","summary":"List contacts","description":"People and companies in the org's address book (tenants, applicants, owners, vendors and others), oldest first. Filter by contact_kind (person or company) or free text q, matched against name, email and phone. Archived contacts are left out unless include_archived is true. To find out whether a contact is a tenant, owner or vendor, use search or list_leases.\n\nNeeds one of: contacts.read.","tags":["Contacts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"contact_kind","in":"query","required":false,"schema":{"type":"string","enum":["person","company"]}},{"name":"q","in":"query","required":false,"schema":{"description":"Text to find in display name, email or phone.","type":"string","minLength":1,"maxLength":200},"description":"Text to find in display name, email or phone."},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read"]},"post":{"operationId":"create_contact","summary":"Create a contact","description":"Adds a person (first_name and/or last_name) or a company (company_name) to the address book and returns the new contact. It does not message the contact or make them a tenant, owner or vendor.\n\nNeeds one of: contacts.write.","tags":["Contacts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_kind":{"type":"string","enum":["person","company"]},"first_name":{"type":"string","minLength":1,"maxLength":200},"last_name":{"type":"string","minLength":1,"maxLength":200},"company_name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":1,"maxLength":50},"preferred_contact_method":{"type":"string","enum":["email","sms","phone","mail","portal"]},"tag_names":{"description":"Tags to add; missing tags are created.","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"notes":{"type":"string","maxLength":5000}},"required":["contact_kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contacts/{id}":{"get":{"operationId":"get_contact","summary":"Get a contact","description":"One contact by id: names, email, phone, contact preferences and opt-outs.\n\nNeeds one of: contacts.read.","tags":["Contacts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read"]},"patch":{"operationId":"update_contacts_row","summary":"Update a contact","description":"Every person or company the organization deals with: tenants, occupants, applicants, prospects, guarantors, owners, vendors and emergency contacts. Roles are derived from the tables that reference the contact (lease_tenants, application_applicants, leads, owners, vendors, emergency_contacts); one contact may hold several roles. Internal staff notes live in contact_notes (never visible to the contact or other portal users).\n\nChanges the given fields of one row of contacts and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Contacts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_kind":{"type":"string","enum":["person","company"],"description":"person = an individual (uses first/last name); company = a business, trust or agency (uses company_name). A person may also carry a company_name (their business)."},"first_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"first name"},{"type":"null"}]},"middle_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"middle name"},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"last name"},{"type":"null"}]},"name_suffix":{"anyOf":[{"type":"string","maxLength":100000,"description":"name suffix"},{"type":"null"}]},"preferred_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"preferred name"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"company name"},{"type":"null"}]},"display_name":{"type":"string","maxLength":100000,"description":"Name shown everywhere and used for search. Set automatically from preferred/first + last name for people, company_name for companies, unless provided."},"primary_email":{"anyOf":[{"type":"string","maxLength":100000,"description":"Denormalized copy of the primary row in contact_emails, maintained by trigger. Do not write directly."},{"type":"null"}]},"primary_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"Denormalized copy (E.164) of the primary row in contact_phones, maintained by trigger. Do not write directly."},{"type":"null"}]},"preferred_contact_method":{"anyOf":[{"type":"string","enum":["email","sms","phone","mail","portal"],"description":"preferred contact method"},{"type":"null"}]},"preferred_language":{"type":"string","maxLength":100000,"description":"BCP 47 language tag for communications, e.g. en, es, zh-Hant."},"employer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"employer name"},{"type":"null"}]},"job_title":{"anyOf":[{"type":"string","maxLength":100000,"description":"job title"},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":100000,"description":"website"},{"type":"null"}]},"is_do_not_contact":{"type":"boolean","description":"True when the contact asked not to be contacted except for legally required notices."},"email_opted_out_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"email opted out at"},{"type":"null"}]},"sms_opted_in_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the contact gave express consent to receive SMS (TCPA). Null = no consent recorded."},{"type":"null"}]},"sms_opted_out_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the contact replied STOP or otherwise revoked SMS consent. Later than sms_opted_in_at means opted out."},{"type":"null"}]},"is_marketing_opted_in":{"type":"boolean","description":"is marketing opted in"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Null = active. Archived contacts are hidden from pickers but kept for history."},{"type":"null"}]},"voice_messages_consented_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the contact agreed to receive prerecorded / artificial-voice (text-to-speech) calls (TCPA prior express consent). Voice messages and non-transactional voice notifications are only placed to contacts with consent; pressing 9 during such a call clears it and suppresses the number."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/owners":{"get":{"operationId":"list_owners","summary":"List owners","description":"Property owners, oldest first, with their name, email and phone and `ownerships`: the properties they own today with ownership_pct (100 = 100%). Filter by owner_status (active, inactive). Amounts are integer cents.\n\nNeeds one of: owners.read, properties.read.","tags":["Owners"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"owner_status","in":"query","required":false,"schema":{"type":"string","enum":["active","inactive"]}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","properties.read"]}},"/v1/owners/{id}":{"get":{"operationId":"get_owner","summary":"Get an owner","description":"One owner by id, with distribution and statement settings and the properties they own today (`ownerships`).\n\nNeeds one of: owners.read, properties.read.","tags":["Owners"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","properties.read"]},"patch":{"operationId":"update_owners_row","summary":"Update an owner","description":"Property owners (individuals, LLCs, trusts) whose properties the organization manages. Name and contact details live on the linked contact; tax identity in tax_profiles; internal staff notes about the owner in contact_notes on owners.contact_id (staff only, never shown in the owner portal). An owner's properties are found through property_ownerships; the manager of each property through property_assignments (a manager is per property, not per owner).\n\nChanges the given fields of one row of owners and returns it. Fields left out stay as they are.\n\nNeeds one of: owners.write.","tags":["Owners"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"is_management_company":{"type":"boolean","description":"This owner record is the organization itself (self-managing landlord, or company-owned units)."},"distribution_method":{"type":"string","enum":["ach","check","hold"],"description":"How the owner prefers to receive distributions: ach, check, or hold (keep funds in trust)."},"is_distribution_hold":{"type":"boolean","description":"Distributions are paused for this owner (dispute, pending sale). distribution_hold_reason explains why."},"distribution_hold_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"distribution hold reason"},{"type":"null"}]},"minimum_distribution_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Do not distribute when the computed amount is below this."},"default_reserve_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Default cash reserve kept back per property when distributing; property_reserves (00011) overrides per property and date."},"statement_delivery":{"type":"string","enum":["portal","email","mail","none"],"description":"statement delivery"},"maintenance_approval_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Work orders or bills above this amount need the owner's approval (owner_approvals, 00008). Null = use property/org setting."},{"type":"null"}]},"is_1099_eligible":{"type":"boolean","description":"Rents collected for this owner are reportable on Form 1099-MISC by the manager."},"can_view_tenant_details":{"type":"boolean","description":"Owner portal shows tenant names and ledgers (otherwise only aggregate financials)."},"owner_since_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"owner since on"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"entity_type":{"anyOf":[{"type":"string","enum":["individual","llc","trust","partnership","corporation","other"],"description":"individual, or the kind of entity (LLC, trust, partnership, corporation). Null until the owner or staff says. Set by the owner's tax details (00124)."},{"type":"null"}]},"signer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"For an entity: the person who signs for it (agreement, W-9)."},{"type":"null"}]},"signer_title":{"anyOf":[{"type":"string","maxLength":100000,"description":"For an entity: the signer's title (Managing member, Trustee, General partner)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/vendors":{"get":{"operationId":"list_vendors","summary":"List vendors","description":"Vendors (contractors and suppliers), oldest first, with name, email, phone, status, compliance status, license and rates in integer cents. Filter by vendor_status (onboarding, active, inactive, do_not_use) or free text q on the name. Use a vendor's id with assign_work_order.\n\nNeeds one of: contacts.read, payables.read, maintenance.read.","tags":["Vendors"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"vendor_status","in":"query","required":false,"schema":{"type":"string","enum":["onboarding","active","inactive","do_not_use"]}},{"name":"q","in":"query","required":false,"schema":{"description":"Text to find in the vendor's name.","type":"string","minLength":1,"maxLength":200},"description":"Text to find in the vendor's name."},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read","maintenance.read"]}},"/v1/vendors/{id}":{"get":{"operationId":"get_vendor","summary":"Get a vendor","description":"One vendor by id, with contact details, compliance requirements and status, license and rates (integer cents).\n\nNeeds one of: contacts.read, payables.read, maintenance.read.","tags":["Vendors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read","maintenance.read"]},"patch":{"operationId":"update_vendors_row","summary":"Update a vendor","description":"Contractors and suppliers the organization pays (plumbers, landscapers, utilities, insurance carriers). Name, emails, phones and addresses live on the linked contact; tax identity in tax_profiles.\n\nChanges the given fields of one row of vendors and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write, payables.write.","tags":["Vendors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"is_internal":{"type":"boolean","description":"In-house maintenance team modelled as a vendor so labor can be billed to properties."},"payment_terms_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Default days from bill date to due date (Net 30 = 30)."},"default_payment_method":{"type":"string","enum":["ach","check","card","echeck","cash","other"],"description":"default payment method"},"default_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Expense account pre-filled on new bills from this vendor (public.gl_accounts, 00006 adds the composite FK)."},{"type":"null"}]},"default_bill_memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"default bill memo"},{"type":"null"}]},"is_1099_eligible":{"type":"boolean","description":"Payments to this vendor are reportable on Form 1099 (false for corporations and exempt payees)."},"form_1099_type":{"type":"string","enum":["nec","misc"],"description":"Which 1099 the payments go on: nec (services) or misc (rents, other)."},"requires_w9":{"type":"boolean","description":"A current W-9 (tax_profiles) is required for compliance."},"requires_insurance":{"type":"boolean","description":"A verified, unexpired general liability policy is required for compliance."},"requires_workers_comp":{"type":"boolean","description":"A verified, unexpired workers compensation policy is required for compliance."},"license_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"license number"},{"type":"null"}]},"license_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"license region"},{"type":"null"}]},"license_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"license expires on"},{"type":"null"}]},"hourly_rate_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"hourly rate cents"},{"type":"null"}]},"after_hours_rate_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"after hours rate cents"},{"type":"null"}]},"trip_charge_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"trip charge cents"},{"type":"null"}]},"markup_rate":{"anyOf":[{"type":"number","description":"Default maintenance markup the manager adds when billing this vendor's work to owners; 0.10 = 10%."},{"type":"null"}]},"is_emergency_available":{"type":"boolean","description":"is emergency available"},"service_area":{"anyOf":[{"type":"string","maxLength":100000,"description":"service area"},{"type":"null"}]},"compliance_checked_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When compliance_status was last derived; the status is as of this timestamp's date. Set it (e.g. to a past date) to re-derive the status as of that date."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"dba_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Name the vendor does business as, when it differs from the business name. The vendor keeps it current from the portal."},{"type":"null"}]},"remit_to_address_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Where checks to this vendor are mailed (printed on vendor checks). A vendor change goes through office approval (public.decide_vendor_profile_change)."},{"type":"null"}]},"pays_outside":{"type":"boolean","description":"Bills of this vendor are approved here and paid in another system (AvidXchange); public.pay_bills refuses them and the payment is recorded from that system's file."},"outside_vendor_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"The vendor's id in the outside payment system, written to the payment file and matched in the paid invoices file."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","payables.write"]}},"/v1/leases":{"get":{"operationId":"list_leases","summary":"List leases","description":"Leases the key can see, oldest first, each with `tenants`: the contacts on the lease with their role (primary, co_tenant, occupant, guarantor, cosigner), whether they are financially responsible, and move-in/move-out dates (removed_on is set once they leave the lease). Filter by property, unit or status; current leases are active, notice_given and month_to_month. rent_cents and deposits are integer cents. For balances, use run_report.\n\nNeeds one of: leasing.read, residents.read.","tags":["Leases"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","pending_signature","active","notice_given","month_to_month","expired","terminated","renewed","closed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]}},"/v1/leases/{id}":{"get":{"operationId":"get_lease","summary":"Get a lease","description":"One lease by id, with its terms, dates, rent and deposits (integer cents) and its tenants.\n\nNeeds one of: leasing.read, residents.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]},"patch":{"operationId":"update_leases_row","summary":"Update a lease","description":"A rental agreement for one unit. Tenants are in lease_tenants; rent history in lease_rent_schedules; status changes in lease_status_history. Renewals are new lease rows linked by renewal_of_lease_id. Two leases in a live status (pending_signature, active, notice_given, month_to_month, expired) can never overlap on the same unit; draft, terminated and closed leases are exempt.\n\nChanges the given fields of one row of leases and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Property of the unit (denormalized; a composite FK guarantees it matches the unit)."},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"lease_type":{"type":"string","enum":["fixed_term","month_to_month"],"description":"fixed_term (has end_on) or month_to_month (end_on null). A fixed-term lease that runs past end_on without renewal becomes status month_to_month (holdover) while keeping lease_type fixed_term."},"start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day of the lease term (financial responsibility starts)."},"end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day of the scheduled fixed term (inclusive); null for month-to-month leases."},{"type":"null"}]},"actual_end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day the lease is actually in force when it differs from the schedule: set by a move-out notice, early termination, a renewal that supersedes it, or move-out. Null = end_on applies (open-ended while month_to_month)."},{"type":"null"}]},"move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Day the tenants physically moved in (may differ from start_on)."},{"type":"null"}]},"move_out_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Day the tenants physically vacated and returned keys."},{"type":"null"}]},"rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly base rent as of today (the current lease_rent_schedules row): a derived convenience copy kept in sync from lease_rent_schedules (the authoritative, effective-dated history). Do not update directly; insert a rent schedule row or call schedule_rent_change."},"deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Contractual security deposit amount. Charged and held through receivables / the ledger (SECURITY_DEPOSITS_HELD), not here."},"pet_deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Contractual pet deposit amount (refundable)."},"rent_due_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of month rent is due (29-31 fall back to the month's last day)."},"is_first_month_prorated":{"type":"boolean","description":"First month's rent is prorated from start_on when start_on is not the due day."},"notice_period_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days of written notice required to vacate (drives the earliest lease end date accepted by give_notice for month-to-month tenancies)."},"rolls_to_month_to_month":{"type":"boolean","description":"At end_on with no renewal and no notice, the lease converts to month_to_month instead of expiring."},"renewal_of_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The prior lease this lease renews (same unit, usually same tenants). Each lease is renewed at most once. The renewal is created as a draft by accept_renewal_offer; activate_lease ends the prior lease the day before it starts, and on its start date the prior lease becomes status renewed with its bala"},{"type":"null"}]},"transferred_from_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease of the same tenants on another unit of the same property that this lease replaced (unit transfer, public.transfer_lease_unit). The prior lease ends as terminated / unit_transfer and its balances are carried over like a renewal."},{"type":"null"}]},"application_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Rental application this lease was created from."},{"type":"null"}]},"activated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"activated at"},{"type":"null"}]},"terminated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"terminated at"},{"type":"null"}]},"termination_reason":{"anyOf":[{"type":"string","enum":["early_termination","eviction","mutual_agreement","abandonment","death","military_orders","domestic_violence","landlord_sale","unit_transfer","other"],"description":"termination reason"},{"type":"null"}]},"lease_use":{"type":"string","enum":["residential","commercial","mixed"],"description":"residential, commercial or mixed (retail below apartments on one lease). Commercial and mixed leases carry commercial_lease_terms (00018)."},"is_by_the_bed":{"type":"boolean","description":"True for an individual lease of one or more beds (lease_beds) in a shared unit: several by-the-bed leases may run on the same unit at once, but never alongside a whole-unit lease. Added by 00026."},"academic_term_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Academic term a student lease was sold for. Added by 00026."},{"type":"null"}]},"pets_allowed":{"type":"boolean","description":"The lease allows the residents to keep pets. A pet deposit (pet_deposit_cents) and pet rent (a monthly PET_RENT recurring charge) apply only when true. Assistance animals (service and emotional support animals) are not pets: they are allowed whatever this says, and no pet deposit or pet rent is char"},"has_pets":{"anyOf":[{"type":"boolean","description":"Answer to \"Any pets?\" for the household on this lease: true, false, or null when nobody asked yet. The animals are public.pets rows of the lease's people. Not the same as pets_allowed, which is the lease's permission."},{"type":"null"}]},"tenant_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"Short code of the tenancy shown on rent rolls and aging (t0000001, per organization, assigned on insert when not given; an import may keep the previous system's code). Unique per organization."},{"type":"null"}]},"is_preferential_rent":{"type":"boolean","description":"The lease rent is a preferential rent: below the unit's legal regulated rent. Since HSTPA 2019 it holds for the whole tenancy: renewal leases carry it and renewal increases apply to it, not to the legal rent."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/leads":{"get":{"operationId":"list_leads","summary":"List leads","description":"Prospective tenants (leasing leads), oldest first, with the prospect's name, email and phone, what they are looking for (move-in date, budget in integer cents, bedrooms) and where they are in the funnel (new, contacted, touring, applied, leased, lost). Filter by status or property.\n\nNeeds one of: leasing.read.","tags":["Leads"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["new","contacted","touring","applied","leased","lost"]}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"post":{"operationId":"create_lead","summary":"Capture a lead","description":"Records an inquiry from a prospective tenant and returns the lead. Give the prospect's name, email or phone (or an existing contact_id) and, if known, the property, unit or listing. A repeat inquiry from the same prospect at the same property is added to their open lead, and the same external_lead_id from one source returns the existing lead. It does not send the prospect anything.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","minLength":1,"maxLength":200},"last_name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":1,"maxLength":50},"contact_id":{"description":"An existing contact, instead of name, email and phone.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listing_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lead_source_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source_channel":{"description":"Where the inquiry came from; picks the org's lead source for it.","type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"]},"desired_move_in_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"},"budget_max_cents":{"description":"integer cents","type":"integer","minimum":0,"maximum":9007199254740991},"bedrooms_min":{"type":"integer","minimum":0,"maximum":20},"message":{"type":"string","maxLength":5000},"external_lead_id":{"description":"Your id for the inquiry, so a resend does not create a second lead.","type":"string","maxLength":200},"assigned_user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/leads/{id}":{"get":{"operationId":"get_lead","summary":"Get a lead","description":"One lead by id.\n\nNeeds one of: leasing.read.","tags":["Leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"patch":{"operationId":"update_leads_row","summary":"Update a lead","description":"A prospective tenant's inquiry (the CRM funnel record). The person is a contact; interest can be a property, a unit, a floor plan or a listing (all optional, for general inquiries). Status moves new → contacted → touring → applied → leased or lost; every change is logged in lead_events.\n\nChanges the given fields of one row of leads and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},{"type":"null"}]},"lead_source_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead source id"},{"type":"null"}]},"lost_reason":{"anyOf":[{"type":"string","enum":["unresponsive","price_too_high","location","unit_unavailable","chose_competitor","did_not_qualify","timing","amenities","pets_not_allowed","duplicate","spam","other"],"description":"Why the lead was lost; required exactly when status = lost."},{"type":"null"}]},"lost_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"lost notes"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Leasing agent (staff user) who owns follow-up."},{"type":"null"}]},"desired_move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"desired move in on"},{"type":"null"}]},"budget_min_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"budget min cents"},{"type":"null"}]},"budget_max_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum monthly rent the prospect stated (minor units)."},{"type":"null"}]},"bedrooms_min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fewest bedrooms wanted (0 = studio)."},{"type":"null"}]},"bedrooms_max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms max"},{"type":"null"}]},"bathrooms_min":{"anyOf":[{"type":"number","description":"bathrooms min"},{"type":"null"}]},"occupants_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"occupants count"},{"type":"null"}]},"has_pets":{"anyOf":[{"type":"boolean","description":"has pets"},{"type":"null"}]},"pets_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"pets description"},{"type":"null"}]},"desired_lease_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"desired lease term months"},{"type":"null"}]},"message":{"anyOf":[{"type":"string","maxLength":100000,"description":"The prospect's original inquiry text."},{"type":"null"}]},"external_lead_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"Id of the inquiry at the listing channel (Zillow lead id etc.) for de-duplication."},{"type":"null"}]},"first_contacted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"first contacted at"},{"type":"null"}]},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Time of the most recent lead_event; maintained by trigger."},{"type":"null"}]},"next_follow_up_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the agent or the AI follow-up assistant should next reach out."},{"type":"null"}]},"is_ai_follow_up_enabled":{"type":"boolean","description":"Allow the AI assistant to send automated follow-ups (logged as lead_events with is_ai_generated)."},"converted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the lead reached status leased."},{"type":"null"}]},"lost_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"lost at"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Lead (and its follow-up) hidden from the default pipeline list until this time (lists filter snoozed_until <= now()). Set only through public.set_snooze."},{"type":"null"}]},"snooze_until_activity":{"type":"boolean","description":"Snoozed until new activity: a lead event by anyone other than the snoozer (an inbound message, a logged call), or an inbound message on a linked conversation."},"merged_into_lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set when staff merged this lead into another (public.merge_leads, 00128); the lead is then closed as a duplicate."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/listings":{"get":{"operationId":"list_listings","summary":"List listings","description":"Vacancy advertisements, oldest first: one unit (unit_id) or a floor plan (floor_plan_id), with asking rent, deposit, application fee and pet rent in integer cents, the pet policy, lease terms offered, and `syndications`: each listing channel (zillow, apartments_com, ...) with its status. Active listings are public. Filter by property, unit or status.\n\nNeeds one of: marketing.read, leasing.read.","tags":["Listings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","active","paused","pending","leased","archived"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.read","leasing.read"]},"post":{"operationId":"create_listings_row","summary":"Create a listing","description":"A vacancy advertisement: either one specific unit (unit_id) or a floor plan with several available units (floor_plan_id), exactly one. Source of truth for public listing pages and syndication feeds. A unit has at most one active/paused listing.\n\nInserts one row of listings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: marketing.write.","tags":["Listings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"is_ai_generated_description":{"type":"boolean","description":"True when description was drafted by the AI listing writer (ai_model says which model); staff may have edited it since."},"asking_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advertised monthly rent (minor units). For floor-plan listings, the \"from\" price."},"asking_rent_max_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Upper end of an advertised price range (floor-plan listings); null = single price."},{"type":"null"}]},"deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advertised security deposit. The actual deposit is set on the lease."},"application_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee charged per adult applicant when applying to this listing."},"available_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit can be moved into; null = available now. For a unit listing it follows the unit's open turn (private.unit_turns_sync_listings, 00074): the target ready date while the turn is open, the actual ready date once rent-ready, unless leasing set a later date by hand."},{"type":"null"}]},"lease_term_months_offered":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Fixed lease lengths offered, in months (e.g. {6,12,18}). Month-to-month is offers_month_to_month."},"offers_month_to_month":{"type":"boolean","description":"offers month to month"},"pets_policy":{"type":"string","enum":["not_allowed","allowed","case_by_case"],"description":"Headline pet policy; allows_cats / allows_dogs / max_pets / pet_weight_limit_lbs refine it when allowed."},"allows_cats":{"type":"boolean","description":"allows cats"},"allows_dogs":{"type":"boolean","description":"allows dogs"},"max_pets":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max pets"},{"type":"null"}]},"pet_weight_limit_lbs":{"anyOf":[{"type":"number","description":"pet weight limit lbs"},{"type":"null"}]},"pet_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pet deposit cents"},{"type":"null"}]},"pet_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advertised monthly pet rent per pet."},{"type":"null"}]},"utilities_included":{"anyOf":[{"type":"string","maxLength":100000,"description":"utilities included"},{"type":"null"}]},"parking_details":{"anyOf":[{"type":"string","maxLength":100000,"description":"parking details"},{"type":"null"}]},"concession_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Advertised special, e.g. \"1 month free on 13-month lease\". Actual concessions are credits in receivables."},{"type":"null"}]},"is_self_tour_enabled":{"type":"boolean","description":"Prospects may book self_guided showings (smart lock / lockbox) for this listing."},"virtual_tour_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"virtual tour url"},{"type":"null"}]},"video_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"video url"},{"type":"null"}]},"leasing_agent_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff user who handles inquiries and showings. Not readable signed out (anon holds SELECT on the marketing columns only, 00149)."},{"type":"null"}]},"public_slug":{"anyOf":[{"type":"string","maxLength":100000,"description":"URL handle of the public listing page on the org website."},{"type":"null"}]},"unlisted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the listing was last taken down (leased, paused or archived)."},{"type":"null"}]},"views_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"views count"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","title","asking_rent_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/listings/{id}":{"get":{"operationId":"get_listing","summary":"Get a listing","description":"One listing by id, with its prices in integer cents and its syndication channels.\n\nNeeds one of: marketing.read, leasing.read.","tags":["Listings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.read","leasing.read"]},"patch":{"operationId":"update_listings_row","summary":"Update a listing","description":"A vacancy advertisement: either one specific unit (unit_id) or a floor plan with several available units (floor_plan_id), exactly one. Source of truth for public listing pages and syndication feeds. A unit has at most one active/paused listing.\n\nChanges the given fields of one row of listings and returns it. Fields left out stay as they are.\n\nNeeds one of: marketing.write.","tags":["Listings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"is_ai_generated_description":{"type":"boolean","description":"True when description was drafted by the AI listing writer (ai_model says which model); staff may have edited it since."},"asking_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advertised monthly rent (minor units). For floor-plan listings, the \"from\" price."},"asking_rent_max_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Upper end of an advertised price range (floor-plan listings); null = single price."},{"type":"null"}]},"deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advertised security deposit. The actual deposit is set on the lease."},"application_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee charged per adult applicant when applying to this listing."},"available_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit can be moved into; null = available now. For a unit listing it follows the unit's open turn (private.unit_turns_sync_listings, 00074): the target ready date while the turn is open, the actual ready date once rent-ready, unless leasing set a later date by hand."},{"type":"null"}]},"lease_term_months_offered":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Fixed lease lengths offered, in months (e.g. {6,12,18}). Month-to-month is offers_month_to_month."},"offers_month_to_month":{"type":"boolean","description":"offers month to month"},"pets_policy":{"type":"string","enum":["not_allowed","allowed","case_by_case"],"description":"Headline pet policy; allows_cats / allows_dogs / max_pets / pet_weight_limit_lbs refine it when allowed."},"allows_cats":{"type":"boolean","description":"allows cats"},"allows_dogs":{"type":"boolean","description":"allows dogs"},"max_pets":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max pets"},{"type":"null"}]},"pet_weight_limit_lbs":{"anyOf":[{"type":"number","description":"pet weight limit lbs"},{"type":"null"}]},"pet_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pet deposit cents"},{"type":"null"}]},"pet_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advertised monthly pet rent per pet."},{"type":"null"}]},"utilities_included":{"anyOf":[{"type":"string","maxLength":100000,"description":"utilities included"},{"type":"null"}]},"parking_details":{"anyOf":[{"type":"string","maxLength":100000,"description":"parking details"},{"type":"null"}]},"concession_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Advertised special, e.g. \"1 month free on 13-month lease\". Actual concessions are credits in receivables."},{"type":"null"}]},"is_self_tour_enabled":{"type":"boolean","description":"Prospects may book self_guided showings (smart lock / lockbox) for this listing."},"virtual_tour_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"virtual tour url"},{"type":"null"}]},"video_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"video url"},{"type":"null"}]},"leasing_agent_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff user who handles inquiries and showings. Not readable signed out (anon holds SELECT on the marketing columns only, 00149)."},{"type":"null"}]},"public_slug":{"anyOf":[{"type":"string","maxLength":100000,"description":"URL handle of the public listing page on the org website."},{"type":"null"}]},"unlisted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the listing was last taken down (leased, paused or archived)."},{"type":"null"}]},"views_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"views count"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/floor_plans":{"get":{"operationId":"list_floor_plans","summary":"List floor plans","description":"Floor plans (unit layouts) of the properties, oldest first, with bedrooms, bathrooms, square feet, market rent and deposit in integer cents. Archived plans are left out. Filter by property.\n\nNeeds one of: properties.read.","tags":["Floor plans"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"post":{"operationId":"create_floor_plans_row","summary":"Create a floor plan","description":"Unit types of a property (e.g. \"2x2 Willow\"). Units reference a floor plan for default beds/baths/sqft and marketing; unit columns override.\n\nInserts one row of floor plans in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Floor plans"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"bedrooms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = studio."},"bathrooms":{"type":"number","description":"Full baths count 1, half baths 0.5 (e.g. 1.5)."},"sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sqft"},{"type":"null"}]},"market_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current asking rent for this floor plan per month; history in market_rent_history."},{"type":"null"}]},"deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deposit cents"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"image_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"Floor plan drawing in Supabase Storage (bucket property-photos)."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/showings":{"get":{"operationId":"list_showings","summary":"List showings","description":"Tours of a property or unit for leads, oldest first: type (in_person, self_guided, virtual), status (requested, scheduled, confirmed, completed, no_show, canceled), scheduled start and end, the agent, and the outcome (interest level, feedback, agent notes). Filter by lead, property, status, or a scheduled_start_at window.\n\nNeeds one of: leasing.read.","tags":["Showings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"lead_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["requested","scheduled","confirmed","completed","no_show","canceled"]}},{"name":"starts_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601 timestamp"},"description":"ISO 8601 timestamp"},{"name":"starts_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601 timestamp"},"description":"ISO 8601 timestamp"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/showings/{id}":{"get":{"operationId":"get_showing","summary":"Get a showing","description":"One showing (tour) by id.\n\nNeeds one of: leasing.read.","tags":["Showings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"patch":{"operationId":"update_showings_row","summary":"Update a showing","description":"A tour of a property/unit by a lead: in person with an agent, self-guided (smart lock / lockbox), or virtual (video call). An agent cannot have two scheduled/confirmed showings that overlap.\n\nChanges the given fields of one row of showings and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Showings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},{"type":"null"}]},"showing_type":{"type":"string","enum":["in_person","self_guided","virtual"],"description":"showing type"},"scheduled_start_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled start at"},"scheduled_end_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled end at"},"agent_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff member conducting the tour; required for in_person once scheduled; null for self_guided."},{"type":"null"}]},"meeting_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"Video link for virtual tours."},{"type":"null"}]},"access_instructions":{"anyOf":[{"type":"string","maxLength":100000,"description":"Always empty since 00128 (check showings_no_access_codes): the prospect can read this row. The instructions stay in listing_access_instructions and go out as a notification secret within the booking window."},{"type":"null"}]},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"confirmed at"},{"type":"null"}]},"checked_in_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"checked in at"},{"type":"null"}]},"cancel_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"cancel reason"},{"type":"null"}]},"interest_level":{"anyOf":[{"type":"string","enum":["low","medium","high"],"description":"Agent's read of the prospect's interest after the tour."},{"type":"null"}]},"feedback_rating":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Prospect's 1-5 rating of the tour / unit."},{"type":"null"}]},"prospect_feedback":{"anyOf":[{"type":"string","maxLength":100000,"description":"prospect feedback"},{"type":"null"}]},"agent_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"agent notes"},{"type":"null"}]},"confirmed_via":{"anyOf":[{"type":"string","maxLength":100000,"description":"How the tour was confirmed: the reminder link, a text reply, or staff (00128)."},{"type":"null"}]},"no_show_marked_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Set when the leasing-showings job marked the tour a no-show (no check-in or outcome 30 minutes after the end). Cleared when staff record an outcome (00128)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/showings/{id}/outcome":{"post":{"operationId":"record_showing_outcome","summary":"Record a showing outcome","description":"Marks a tour completed, no_show or canceled, with the prospect's interest level, a 1-5 rating, their feedback and agent notes, logs it on the lead's timeline and returns the showing. It does not send the prospect anything. Use it after the tour, or when the prospect cancels by phone. Confirming a tour is done in the app, because a confirmed tour sends the prospect reminders.\n\nNeeds one of: leasing.write.","tags":["Showings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["completed","no_show","canceled"]},"interest_level":{"type":"string","enum":["low","medium","high"]},"feedback_rating":{"type":"integer","minimum":1,"maximum":5},"prospect_feedback":{"type":"string","maxLength":5000},"agent_notes":{"type":"string","maxLength":5000},"cancel_reason":{"type":"string","maxLength":500}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/leads/{lead_id}/events":{"get":{"operationId":"list_lead_events","summary":"List a lead's timeline","description":"The timeline of one lead, oldest first: status changes, notes, calls, emails and texts (channel, direction, subject, body), tours, applications and scheduled follow-ups (scheduled_for). Use it to see what has happened with a prospect before you suggest the next step.\n\nNeeds one of: leasing.read.","tags":["Leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"post":{"operationId":"log_lead_activity","summary":"Log lead activity","description":"Records a note, call, voicemail, email or text that already happened on the lead's timeline and returns the event. It only records: nothing is sent to the prospect. A note needs a body. occurred_at defaults to now and cannot be in the future.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event_type":{"type":"string","enum":["note","call_outbound","call_inbound","voicemail","email_sent","email_received","sms_sent","sms_received","other"]},"body":{"type":"string","maxLength":10000},"subject":{"type":"string","maxLength":500},"direction":{"description":"Default from event_type.","type":"string","enum":["inbound","outbound","internal"]},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601 timestamp"}},"required":["event_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/leads/{lead_id}/follow_up":{"post":{"operationId":"schedule_lead_follow_up","summary":"Schedule a lead follow-up","description":"Sets when staff should next follow up with an open lead (leads.next_follow_up_at), logs it on the timeline with an optional note and returns the event. It is a reminder for staff: nothing is sent to the prospect.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"due_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601 timestamp"},"note":{"type":"string","maxLength":5000}},"required":["due_at"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/rental_applications":{"get":{"operationId":"list_rental_applications","summary":"List rental applications","description":"Rental applications, oldest first, with the property, unit and listing, the primary applicant's name and contact details, every party (applicant, co_applicant, guarantor, occupant) and whether each consented to screening, the fee (integer cents) and fee_status, and the current decision. Screening results, risk scores, income and identity details are not included. Filter by status, property, listing or lead; the review queue is submitted, screening, under_review and needs_info.\n\nNeeds one of: leasing.read.","tags":["Rental applications"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","submitted","screening","under_review","needs_info","approved","conditionally_approved","denied","withdrawn","closed","converted"]}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"listing_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lead_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/rental_applications/{id}":{"get":{"operationId":"get_rental_application","summary":"Get a rental application","description":"One rental application by id, with its parties, fee (integer cents) and current decision.\n\nNeeds one of: leasing.read.","tags":["Rental applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"patch":{"operationId":"update_rental_applications_row","summary":"Update a rental application","description":"An application to rent a unit (or any unit of a floor plan) at a property, by one household: applicants, co-applicants, guarantors and occupants are in application_applicants. Status machine in application_status; history in application_status_history. Converted to a lease by convert_application_to_lease.\n\nChanges the given fields of one row of rental applications and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Rental applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Unit applied for; may be null at submission for floor-plan applications and is required before conversion to a lease."},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},{"type":"null"}]},"lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},{"type":"null"}]},"application_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee per adult applicant. Payment is a payment_transaction (purpose application_fee) in 00007; fee_status mirrors it."},"desired_move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"desired move in on"},{"type":"null"}]},"lease_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Requested fixed lease term in months."},{"type":"null"}]},"wants_month_to_month":{"type":"boolean","description":"wants month to month"},"quoted_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly rent quoted to the applicant at application time."},{"type":"null"}]},"occupants_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"occupants count"},{"type":"null"}]},"has_pets":{"type":"boolean","description":"has pets"},"is_smoker":{"anyOf":[{"type":"boolean","description":"is smoker"},{"type":"null"}]},"has_prior_eviction_disclosed":{"anyOf":[{"type":"boolean","description":"has prior eviction disclosed"},{"type":"null"}]},"has_prior_felony_disclosed":{"anyOf":[{"type":"boolean","description":"has prior felony disclosed"},{"type":"null"}]},"referral_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"referral text"},{"type":"null"}]},"custom_answers":{"anyOf":[{"description":"Answers to org-defined extra application questions (unstructured form answers, keyed by question id). Standard facts live in real columns and child tables."},{"type":"null"}]},"decided_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"decided at"},{"type":"null"}]},"withdrawn_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"withdrawn at"},{"type":"null"}]},"withdrawn_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"withdrawn reason"},{"type":"null"}]},"converted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"converted at"},{"type":"null"}]},"converted_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease created from this application; set exactly when status = converted."},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When an incomplete draft or an unconverted approval lapses."},{"type":"null"}]},"review_waiting_since":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the application last reached the office for review (submitted, screening or under review, from any other status). Maintained by private.rental_applications_before_write (00128)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/renewal_offers":{"get":{"operationId":"list_renewal_offers","summary":"List renewal offers","description":"Lease renewal offers, oldest first, each with `terms`: the options offered (term in months, rent and concession in integer cents, which one is recommended). Status is draft, sent, countered, accepted, declined, expired or withdrawn; a counter has counter_rent_cents and counter_term_months. Filter by lease or status.\n\nNeeds one of: leasing.read, residents.read.","tags":["Renewal offers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","sent","countered","accepted","declined","expired","withdrawn"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]}},"/v1/renewal_offers/{id}":{"get":{"operationId":"get_renewal_offer","summary":"Get a renewal offer","description":"One renewal offer by id, with its terms (rent in integer cents) and the tenant's response.\n\nNeeds one of: leasing.read, residents.read.","tags":["Renewal offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]},"patch":{"operationId":"update_renewal_offers_row","summary":"Update a renewal offer","description":"A renewal proposal sent to the tenants of a lease, with one or more term options (renewal_offer_terms). Tenants accept one option (accept_renewal_offer creates the renewal lease), decline, or counter (counter_* columns; AI negotiation assistant may draft replies).\n\nChanges the given fields of one row of renewal offers and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Renewal offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"proposed_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day of the renewal term (normally the day after the current lease end)."},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day the tenant can accept."},{"type":"null"}]},"message":{"anyOf":[{"type":"string","maxLength":100000,"description":"message"},{"type":"null"}]},"is_ai_drafted":{"type":"boolean","description":"Offer pricing / message drafted by the AI assistant."},"pricing_recommendation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"pricing recommendation id"},{"type":"null"}]},"responded_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"responded at"},{"type":"null"}]},"responded_by_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"responded by contact id"},{"type":"null"}]},"accepted_term_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The renewal_offer_terms option the tenant accepted."},{"type":"null"}]},"counter_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"counter rent cents"},{"type":"null"}]},"counter_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"counter term months"},{"type":"null"}]},"response_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"response notes"},{"type":"null"}]},"renewal_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease created when the offer was accepted."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/move_events":{"get":{"operationId":"list_move_events","summary":"List move-ins and move-outs","description":"Move-ins and move-outs, oldest first: lease, unit, scheduled and completed dates, the arrival window, keys and remotes handed over or returned, key pickup, the forwarding address and the coordinator. Filter by lease, property, event_type, status, or a scheduled_on date range.\n\nNeeds one of: leasing.read, residents.read.","tags":["Move events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"event_type","in":"query","required":false,"schema":{"type":"string","enum":["move_in","move_out"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["scheduled","in_progress","completed","canceled"]}},{"name":"scheduled_from","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"},"description":"ISO date, YYYY-MM-DD"},{"name":"scheduled_to","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"},"description":"ISO date, YYYY-MM-DD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]}},"/v1/move_events/{id}":{"get":{"operationId":"get_move_event","summary":"Get a move-in or move-out","description":"One move-in or move-out by id.\n\nNeeds one of: leasing.read, residents.read.","tags":["Move events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]},"patch":{"operationId":"update_move_events_row","summary":"Update a move event","description":"The move-in or move-out of a lease (one of each per lease) with its checklist (move_event_checklist_items). Inspections and deposit disposition link to the lease.\n\nChanges the given fields of one row of move events and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Move events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"event_type":{"type":"string","enum":["move_in","move_out"],"description":"event type"},"scheduled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"scheduled on"},{"type":"null"}]},"keys_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Keys handed over (move_in) or returned (move_out)."},{"type":"null"}]},"remotes_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"remotes count"},{"type":"null"}]},"forwarding_address_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Forwarding address captured at move-out (for the deposit refund / disposition letter)."},{"type":"null"}]},"coordinator_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"coordinator user id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"arrival_starts_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Move-in: start of the window when the resident picks up keys (scheduled_on is its date in the org's time zone)."},{"type":"null"}]},"arrival_ends_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Move-in: end of the key pickup window."},{"type":"null"}]},"key_pickup_place":{"anyOf":[{"type":"string","maxLength":100000,"description":"Move-in: where the resident gets their keys (\"Leasing office, 200 Summer St\", \"Lockbox at the front door\")."},{"type":"null"}]},"key_pickup_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"Move-in: what to bring or do at key pickup (photo ID, lockbox instructions). Shown to the resident."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/move_out_notices":{"get":{"operationId":"list_move_out_notices","summary":"List move-out notices","description":"Notices to vacate, oldest first: who gave notice and when it was received, the intended move-out date against the lease end date, the reason, the forwarding address and whether staff acknowledged it or the tenant rescinded it. Filter by lease or status (received, acknowledged, rescinded, completed).\n\nNeeds one of: leasing.read, residents.read.","tags":["Move out notices"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["received","acknowledged","rescinded","completed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]}},"/v1/move_out_notices/{id}":{"get":{"operationId":"get_move_out_notice","summary":"Get a move-out notice","description":"One notice to vacate by id.\n\nNeeds one of: leasing.read, residents.read.","tags":["Move out notices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","residents.read"]}},"/v1/work_orders":{"get":{"operationId":"list_work_orders","summary":"List work orders","description":"Maintenance work orders, oldest first, with number, title, priority, status, the assigned staff user or vendor, schedule and cost limits (integer cents). Filter by property, unit, status, priority or vendor. Open work orders are every status except completed, verified and canceled.\n\nNeeds one of: maintenance.read.","tags":["Work orders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["new","assigned","scheduled","in_progress","on_hold","awaiting_parts","awaiting_approval","completed","verified","canceled"]}},{"name":"priority","in":"query","required":false,"schema":{"type":"string","enum":["low","normal","high","emergency"]}},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_work_order","summary":"Create a work order","description":"Opens a maintenance work order at a property (optionally a unit) and returns it. Assigning a staff user or vendor at creation also needs maintenance.dispatch; otherwise use assign_work_order later. Cost limits are integer cents.\n\nNeeds one of: maintenance.write.","tags":["Work orders"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":10000},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"category_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priority":{"description":"Default normal.","type":"string","enum":["low","normal","high","emergency"]},"billing_responsibility":{"description":"Who pays for the work (default owner).","type":"string","enum":["owner","tenant","management","warranty","insurance"]},"has_permission_to_enter":{"type":"boolean"},"entry_notes":{"type":"string","maxLength":2000},"has_pets":{"type":"boolean"},"due_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601 timestamp"},"estimated_cost_cents":{"description":"integer cents","type":"integer","minimum":0,"maximum":9007199254740991},"not_to_exceed_cents":{"description":"integer cents","type":"integer","minimum":0,"maximum":9007199254740991},"assigned_user_id":{"description":"Staff user to assign (needs maintenance.dispatch).","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendor_id":{"description":"Vendor to assign (needs maintenance.dispatch).","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendor_instructions":{"type":"string","maxLength":5000},"internal_notes":{"description":"Staff-only note; vendors and residents never see it.","type":"string","maxLength":5000},"compliance_override_reason":{"description":"Why to assign a vendor whose compliance documents are not current.","type":"string","maxLength":1000}},"required":["property_id","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/work_orders/{id}":{"get":{"operationId":"get_work_order","summary":"Get a work order","description":"One work order by id.\n\nNeeds one of: maintenance.read.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"patch":{"operationId":"update_work_orders_row","summary":"Update a work order","description":"A unit of maintenance work at a property/unit, assigned to a staff technician and/or a vendor, moving through the work_order_status machine. Costs: labor_entries, material_entries, vendor bills (bill_lines.work_order_id, 00010). Timeline in work_order_events. Tenants read it through tenant_work_orders and owners through owner_work_orders (no internal fields). Staff-only notes live in work_order_internal_notes, because vendors can read work_orders rows. Clients may edit descriptive columns directly; status, assignee, vendor, NTE, cost and approval columns change only through the R\n\nChanges the given fields of one row of work orders and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, maintenance.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Per-org sequential work order number (WO #) shown to users and vendors."},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease of the tenant affected (copied from the service request); grants that lease's tenants read access via tenant_work_orders."},{"type":"null"}]},"service_request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},{"type":"null"}]},"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"preventive_maintenance_schedule_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"preventive maintenance schedule id"},{"type":"null"}]},"preventive_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Occurrence due date when generated from a preventive maintenance schedule (one work order per schedule, unit and due date)."},{"type":"null"}]},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Inspection whose findings caused this work order."},{"type":"null"}]},"unit_turn_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Make-ready turn this work order belongs to."},{"type":"null"}]},"source":{"type":"string","enum":["service_request","staff","preventive_maintenance","inspection","unit_turn","owner_request","import"],"description":"source"},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"In-house staff (technician) responsible. Technicians see and update only work orders assigned to them unless they have property access with dispatch permission."},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Outside vendor dispatched. The vendor's portal users see and update the work order."},{"type":"null"}]},"vendor_instructions":{"anyOf":[{"type":"string","maxLength":100000,"description":"Instructions sent to the vendor with the dispatch."},{"type":"null"}]},"not_to_exceed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"NTE: maximum the vendor may spend without further approval."},{"type":"null"}]},"estimated_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Expected cost (accepted estimate total or dispatcher estimate)."},{"type":"null"}]},"billing_responsibility":{"type":"string","enum":["owner","tenant","management","warranty","insurance"],"description":"Who pays: owner (default), tenant (chargeback), management, warranty, insurance."},"has_permission_to_enter":{"type":"boolean","description":"has permission to enter"},"entry_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"entry notes"},{"type":"null"}]},"has_pets":{"type":"boolean","description":"has pets"},"scheduled_start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled start at"},{"type":"null"}]},"scheduled_end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled end at"},{"type":"null"}]},"response_due_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"SLA: first response due (from category sla_response_hours, or priority default emergency 1h / high 4h / normal 24h / low 48h)."},{"type":"null"}]},"due_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"SLA: completion due (from category sla_completion_hours, or priority default emergency 24h / high 72h / normal 7d / low 14d). Breach = public.is_sla_breached(work_orders)."},{"type":"null"}]},"first_responded_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"First assignment or first status change away from new; SLA response time = first_responded_at - created_at."},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"started at"},{"type":"null"}]},"cancel_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"cancel reason"},{"type":"null"}]},"hold_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"Why the work order is on_hold or awaiting_parts. Required when it moves into either status (private.work_orders_status_rules, 00074)."},{"type":"null"}]},"requires_owner_approval":{"type":"boolean","description":"The work needs owner sign-off (amount over the owner approval threshold or requested ad hoc). See owner_approvals."},"resolution_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"What was done (internal and vendor-visible)."},{"type":"null"}]},"tenant_visible_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"Notes the tenant may read in the portal."},{"type":"null"}]},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Hidden from default work order lists until this time (then it simply reappears: lists filter snoozed_until <= now()). Null = not snoozed by time. Set only through public.set_snooze."},{"type":"null"}]},"snooze_until_activity":{"type":"boolean","description":"Snoozed until there is new activity (a timeline event by someone other than the snoozer, or an inbound message on a linked conversation), with no time. Any activity also ends a timed snooze."},"sort_rank":{"type":"number","description":"Manual queue position within the org (ascending = top). Fractional: a move takes the midpoint of its new neighbours, so other rows never renumber. New work orders go to the bottom. Changed only through public.move_work_order."},"vendor_trade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor trade the job needs (vendor_trades), 00070. Copied from the service request when the work order is made from one and none is given; staff edit it like the category."},{"type":"null"}]},"reopen_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many times this work order was reopened after being completed, verified or canceled (public.reopen_work_order). Each reopen is also a status_changed event and a work_order_status_history row whose reason starts \"Reopened:\"."},"last_reopened_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the work order was last reopened (public.reopen_work_order); null if never."},{"type":"null"}]},"last_reopen_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"Reason given at the latest reopen (a callback, the fix did not hold, canceled by mistake). Earlier reasons are in work_order_status_history.reason."},{"type":"null"}]},"wait_reason":{"anyOf":[{"type":"string","enum":["parts","access","proposal","approval","vendor","resident","weather","other"],"description":"Why the work order is waiting (set while status is on_hold, awaiting_parts or awaiting_approval; cleared when it moves on)."},{"type":"null"}]},"wait_owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff user responsible for clearing the wait."},{"type":"null"}]},"wait_follow_up_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Next follow-up date for the wait."},{"type":"null"}]},"incident_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Parent incident this work order is part of (same property)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.write"]}},"/v1/work_orders/{id}/status":{"post":{"operationId":"set_work_order_status","summary":"Change a work order's status","description":"Moves a work order to a new status through the same workflow as the web app and returns the work order. Only allowed moves succeed: on_hold and awaiting_parts need a reason; completed needs a note of what was done when the work order is tied to a resident (a service request or a lease), and the resident sees it; scheduling, owner approval and reopening a closed work order have their own steps in the web app and are refused here.\n\nNeeds one of: maintenance.write, maintenance.dispatch.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["new","assigned","scheduled","in_progress","on_hold","awaiting_parts","awaiting_approval","completed","verified","canceled"]},"note":{"description":"Note for the work order's timeline. For completed, what was done: required on a resident's work order, and the resident sees it.","type":"string","maxLength":5000},"reason":{"description":"Required for on_hold and awaiting_parts.","type":"string","maxLength":1000}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","maintenance.dispatch"]}},"/v1/work_orders/{id}/assign":{"post":{"operationId":"assign_work_order","summary":"Assign a work order","description":"Assigns a work order to a staff user and/or a vendor (dispatch) and returns the work order. A vendor whose compliance documents are not current needs compliance_override_reason. not_to_exceed_cents is integer cents.\n\nNeeds one of: maintenance.dispatch.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assigned_user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"not_to_exceed_cents":{"description":"integer cents","type":"integer","minimum":0,"maximum":9007199254740991},"vendor_instructions":{"type":"string","maxLength":5000},"note":{"description":"Note for the work order's timeline.","type":"string","maxLength":5000},"compliance_override_reason":{"type":"string","maxLength":1000}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/service_requests":{"get":{"operationId":"list_service_requests","summary":"List service requests","description":"Maintenance requests submitted by residents or staff, oldest first, with title, description, priority and status (submitted, triaged, converted, closed, canceled). A converted request has linked_work_order_id. Filter by property, unit, status or priority.\n\nNeeds one of: maintenance.read.","tags":["Service requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["submitted","triaged","converted","closed","canceled"]}},{"name":"priority","in":"query","required":false,"schema":{"type":"string","enum":["low","normal","high","emergency"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/service_requests/{id}":{"get":{"operationId":"get_service_request","summary":"Get a service request","description":"One service request by id.\n\nNeeds one of: maintenance.read.","tags":["Service requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"patch":{"operationId":"update_service_requests_row","summary":"Update a service request","description":"A maintenance request as reported (by a tenant in the portal, or by staff from a call/email). Triage turns it into one or more work_orders. AI triage fields hold the model's suggestions; the human decision is category_id/priority.\n\nChanges the given fields of one row of service requests and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.write.","tags":["Service requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"request_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Per-org sequential request number shown to tenants and staff."},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Tenant's lease the request was submitted under (null for common-area requests by staff)."},{"type":"null"}]},"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"source":{"type":"string","enum":["tenant_portal","staff","phone","email","sms","ai_assistant","owner_portal"],"description":"source"},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"type":"string","maxLength":100000,"description":"description"},"location_in_unit":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where in the unit (e.g. \"master bathroom sink\")."},{"type":"null"}]},"priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},"has_permission_to_enter":{"type":"boolean","description":"Tenant authorizes entry when nobody is home."},"entry_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"Access instructions (alarm code, lockbox, call first)."},{"type":"null"}]},"has_pets":{"type":"boolean","description":"Pets present in the unit that the technician should know about."},"pet_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"pet notes"},{"type":"null"}]},"triaged_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"triaged at"},{"type":"null"}]},"close_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"close reason"},{"type":"null"}]},"cancel_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"cancel reason"},{"type":"null"}]},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Hidden from the request inbox and triage queue until this time (lists filter snoozed_until <= now()). Set only through public.set_snooze."},{"type":"null"}]},"snooze_until_activity":{"type":"boolean","description":"Snoozed until new activity: a new photo, a status change by someone else, or an inbound message on a linked conversation."},"linked_work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An existing work order this request was attached to in triage (a duplicate report of work already under way), set by public.link_service_request_to_work_order. Work orders created from the request point back through work_orders.service_request_id instead."},{"type":"null"}]},"vendor_trade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor trade the job needs (vendor_trades), set by staff, e.g. by approving a photo intake proposal (00070). Null = not decided; the category's default trade is the usual guess. Work orders made from the request inherit it."},{"type":"null"}]},"incident_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Parent incident this resident request belongs to (same property). The request keeps its own status."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/inspections":{"get":{"operationId":"list_inspections","summary":"List inspections","description":"Unit and common-area inspections (move-in, move-out, annual, safety, ...), oldest first, with status, schedule, inspector, overall condition and pass result. Filter by property, unit, lease, type or status. Use get_inspection for the checklist items.\n\nNeeds one of: maintenance.read, compliance.read.","tags":["Inspections"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"inspection_type","in":"query","required":false,"schema":{"type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["scheduled","in_progress","completed","canceled"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","compliance.read"]}},"/v1/inspections/{id}":{"get":{"operationId":"get_inspection","summary":"Get an inspection","description":"One inspection by id with its checklist items in order (area, item, condition, notes, repair estimate and tenant chargeback in integer cents, linked work order).\n\nNeeds one of: maintenance.read, compliance.read.","tags":["Inspections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","compliance.read"]},"patch":{"operationId":"update_inspections_row","summary":"Update an inspection","description":"A property or unit inspection (move-in, move-out, annual, quarterly, drive-by, safety, HUD/REAC, insurance, custom) with its result. Line results in inspection_items, photos in inspection_photos. Repairs found become work orders.\n\nChanges the given fields of one row of inspections and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"inspection_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Per-org sequential inspection number shown to users."},"inspection_type":{"type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"],"description":"inspection type"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease the inspection documents (move-in/move-out condition reports used for deposit dispositions)."},{"type":"null"}]},"inspection_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection template id"},{"type":"null"}]},"compared_to_inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Baseline inspection to compare against, e.g. the move-in inspection for a move-out inspection."},{"type":"null"}]},"scheduled_start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled start at"},{"type":"null"}]},"scheduled_end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled end at"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"started at"},{"type":"null"}]},"inspector_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspector user id"},{"type":"null"}]},"inspector_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Third-party inspection company when not done by staff."},{"type":"null"}]},"inspector_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Free-text inspector name for outside inspectors (HUD, insurance carrier, city) who are not users or vendors."},{"type":"null"}]},"overall_condition":{"anyOf":[{"type":"string","enum":["excellent","good","fair","poor","damaged","missing","na"],"description":"Inspector's overall rating of the unit/property."},{"type":"null"}]},"is_passed":{"anyOf":[{"type":"boolean","description":"Pass/fail outcome for regulatory inspections (HUD, safety, insurance); null when not applicable."},{"type":"null"}]},"summary_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"summary notes"},{"type":"null"}]},"is_tenant_present":{"anyOf":[{"type":"boolean","description":"is tenant present"},{"type":"null"}]},"tenant_signature_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"Storage path of the tenant's signature image acknowledging the condition report. Must start with the org id and a slash (<org_id>/...), the storage RLS prefix, so a path can never point into another organization's files."},{"type":"null"}]},"cancel_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"cancel reason"},{"type":"null"}]},"tenant_signature_method":{"anyOf":[{"type":"string","enum":["portal","in_person"],"description":"How the tenant signed (portal or in_person); set with tenant_signed_at by sign_inspection_as_tenant / sign_inspection_in_person."},{"type":"null"}]},"is_common_area":{"type":"boolean","description":"The inspection covers shared spaces (lobby, halls, laundry, grounds), not a unit: of the property, of one building (building_id), or of the property's association (association_id). Created with public.create_common_area_inspection."},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Common-area inspection of one building of the property; null = the whole property."},{"type":"null"}]},"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Common-area inspection done for the property's owners association."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/unit_turns":{"get":{"operationId":"list_unit_turns","summary":"List unit turns","description":"Make-ready turns between a move-out and the next move-in, oldest first, with status, move-out date, target and actual ready dates, coordinator and budget (integer cents). Filter by property, unit or status. Use get_unit_turn for its checklist tasks.\n\nNeeds one of: maintenance.read.","tags":["Unit turns"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","in_progress","on_hold","ready","canceled"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_unit_turn","summary":"Open a unit turn","description":"Opens a make-ready turn for a unit with the default checklist (inspection, trash out, repairs, paint, flooring, cleaning, re-key, final walk) and returns it with its tasks. A unit has at most one open turn: when the move-out already opened one for move_out_lease_id, that turn's dates, budget and coordinator are updated instead. budget_cents is integer cents.\n\nNeeds one of: maintenance.write.","tags":["Unit turns"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"move_out_lease_id":{"description":"The lease that is moving out of the unit.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"move_out_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"},"target_ready_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"},"budget_cents":{"description":"integer cents","type":"integer","minimum":0,"maximum":9007199254740991},"coordinator_user_id":{"description":"Staff user who runs the turn (default: the key's user).","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seed_default_tasks":{"description":"Add the default checklist (default true).","type":"boolean"}},"required":["unit_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/unit_turns/{id}":{"get":{"operationId":"get_unit_turn","summary":"Get a unit turn","description":"One unit turn by id with its checklist tasks in order (title, status pending/in_progress/done/skipped, assignee or vendor, due date, linked work order, estimated and actual cost in integer cents).\n\nNeeds one of: maintenance.read.","tags":["Unit turns"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"patch":{"operationId":"update_unit_turns_row","summary":"Update a unit turn","description":"Make-ready board: one row per vacancy turn of a unit, from move-out to rent-ready, with its checklist in unit_turn_tasks. At most one open turn per unit.\n\nChanges the given fields of one row of unit turns and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.write.","tags":["Unit turns"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"move_out_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease that ended and caused the turn."},{"type":"null"}]},"next_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Incoming lease the unit is being prepared for, if already signed."},{"type":"null"}]},"move_out_inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"move out inspection id"},{"type":"null"}]},"move_out_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move out on"},{"type":"null"}]},"target_ready_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit should be rent-ready; the board flags turns past this date."},{"type":"null"}]},"ready_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit was actually rent-ready. Days vacant to ready = ready_on - move_out_on."},{"type":"null"}]},"coordinator_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"coordinator user id"},{"type":"null"}]},"budget_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Planned spend for the turn; compare with sum(unit_turn_tasks.actual_cost_cents)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/material_catalog_items":{"get":{"operationId":"list_material_catalog_items","summary":"List material catalog items","description":"The organization's catalog of materials staff order from suppliers (paint, flooring, fixtures, ...), oldest first, with supplier vendor, SKU, unit of measure and unit price (integer cents). property_id null means the item applies to every property. Filter by vendor, property or category.\n\nNeeds one of: maintenance.read.","tags":["Material catalog items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"category","in":"query","required":false,"schema":{"description":"e.g. flooring, paint, fixtures","type":"string"},"description":"e.g. flooring, paint, fixtures"},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_material_catalog_items_row","summary":"Create a material catalog item","description":"Products the organization buys for maintenance and unit turns: the supplier (a vendor), the exact product link, the price and when someone last checked it. property_id null = every property; set = only that property.\n\nInserts one row of material catalog items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Material catalog items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The one property that uses this product; null for every property."},{"type":"null"}]},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Supplier the product is ordered from (Home Depot, Lowe's, a supply house). Purchase orders go to this vendor."},"name":{"type":"string","maxLength":100000,"description":"name"},"category":{"type":"string","enum":["flooring","paint","fixtures","appliances","hardware","cleaning","other"],"description":"category"},"product_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"The exact product page at the supplier (https only)."},{"type":"null"}]},"supplier_sku":{"anyOf":[{"type":"string","maxLength":100000,"description":"The supplier's item or model number."},{"type":"null"}]},"unit_of_measure":{"type":"string","maxLength":100000,"description":"What one unit of quantity is (gallon, box, each). Prices and quantities are per this unit."},"unit_price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Price per unit of measure, before tax and delivery."},"price_checked_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When someone last confirmed the price at the supplier. The apps flag prices older than 30 days."},"gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Expense account for purchase order lines; null = the repairs account for the category (private.material_gl_account)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["vendor_id","name","unit_price_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/material_entries":{"get":{"operationId":"list_material_entries","summary":"List material entries","description":"Materials used on or ordered for work orders, oldest first: description, quantity, unit cost, total cost and billable amount (integer cents), the stock item and location they came from, and the supplier vendor. Filter by work order or vendor.\n\nNeeds one of: maintenance.read.","tags":["Material entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"work_order_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/inventory_stock_levels":{"get":{"operationId":"list_inventory_stock_levels","summary":"List inventory stock levels","description":"Stock on hand for each inventory item at each storage location, ordered by item then location, with the reorder point and whether the location is at or below it. Filter by item or location, or set below_reorder_point to find what to restock.\n\nNeeds one of: maintenance.read.","tags":["Inventory stock levels"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"inventory_item_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"inventory_location_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"below_reorder_point","in":"query","required":false,"schema":{"description":"Only rows at or below the reorder point.","type":["boolean","string"]},"description":"Only rows at or below the reorder point."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/preventive_maintenance_schedules":{"get":{"operationId":"list_preventive_maintenance_schedules","summary":"List preventive maintenance schedules","description":"Recurring preventive maintenance (filter changes, inspections, servicing) that generates work orders, oldest first, with frequency, next due date, lead days, assigned vendor or staff user and cost limits (integer cents). Filter by property, asset or is_active.\n\nNeeds one of: maintenance.read.","tags":["Preventive maintenance schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"asset_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"is_active","in":"query","required":false,"schema":{"type":["boolean","string"]}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_preventive_maintenance_schedules_row","summary":"Create a preventive maintenance schedule","description":"Recurring maintenance (HVAC service, filter changes, gutter cleaning, fire extinguisher checks).\n\nInserts one row of preventive maintenance schedules in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Preventive maintenance schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"template_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description copied onto each generated work order (checklist / scope)."},{"type":"null"}]},"priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},"frequency":{"type":"string","enum":["daily","weekly","monthly","yearly"],"description":"Recurrence unit (RRULE FREQ): daily, weekly, monthly, yearly. Quarterly = monthly with interval_count 3."},"interval_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Recurrence interval (RRULE INTERVAL): every N frequency units."},"by_month_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"For monthly/yearly: day of month the occurrence falls on (RRULE BYMONTHDAY), clamped to the last day of short months. Null = keep the day of next_due_on."},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"next_due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Due date of the next occurrence not yet generated."},"lead_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Generate the work order this many days before the due date."},"applies_to_each_unit":{"type":"boolean","description":"If true, each occurrence creates one work order per unit of the property (e.g. smoke detector tests); unit_id must be null."},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"not_to_exceed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"not to exceed cents"},{"type":"null"}]},"estimated_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated cost cents"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"last_generated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"last generated on"},{"type":"null"}]},"last_generated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last generated at"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","title","frequency","next_due_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/on_call_schedules":{"get":{"operationId":"list_on_call_schedules","summary":"List on-call schedules","description":"After-hours on-call rotations, oldest first, with the property or portfolio group they cover, rotation, start date and daily handoff time (HH:MM, organization time zone). Use get_on_call_now for who is on call right now.\n\nNeeds one of: maintenance.read, settings.write.","tags":["On call schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"is_active","in":"query","required":false,"schema":{"type":["boolean","string"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]},"post":{"operationId":"create_on_call_schedules_row","summary":"Create an on call schedule","description":"An on-call rotation: org-wide (no property or group), for one property, or for a portfolio group. The most specific active schedule decides who is on call for a property.\n\nInserts one row of on call schedules in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"portfolio_group_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"portfolio group id"},{"type":"null"}]},"rotation":{"type":"string","maxLength":100000,"description":"weekly: on_call_schedule_members take turns, one week each, and the next member is the backup. custom: on_call_shifts name the primary and backup per date range."},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"The first on-call day. A weekly rotation hands off every 7 days from this date."},"handoff_time":{"type":"string","maxLength":100000,"description":"When the on-call day starts, in the org time zone. An on-call day runs from this time to the same time the next day."},"is_active":{"type":"boolean","description":"is active"}},"required":["name","starts_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call_shifts":{"get":{"operationId":"list_on_call_shifts","summary":"List on-call shifts","description":"Assigned on-call shifts (a date range with a primary and an optional backup staff user), oldest first. Filter by schedule, or by on_date to get the shifts that cover a day.\n\nNeeds one of: maintenance.read, settings.write.","tags":["On call shifts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"schedule_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"on_date","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ISO date, YYYY-MM-DD"},"description":"ISO date, YYYY-MM-DD"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]},"post":{"operationId":"create_on_call_shifts_row","summary":"Create an on call shift","description":"A custom rotation's shifts: who is primary and backup for the on-call days starts_on to ends_on. Where shifts overlap, the newest wins.\n\nInserts one row of on call shifts in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call shifts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},"primary_user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"primary user id"},"backup_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"backup user id"},{"type":"null"}]}},"required":["schedule_id","starts_on","ends_on","primary_user_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call/now":{"get":{"operationId":"get_on_call_now","summary":"Who is on call now","description":"The primary and backup staff member (user id and name) on call right now for every active on-call schedule, with the on-call day in the organization's time zone. Use it to find who handles an after-hours emergency.\n\nNeeds one of: maintenance.read, settings.write.","tags":["On call"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]}},"/v1/packages":{"get":{"operationId":"list_packages","summary":"List packages","description":"Packages the front desk received for residents, oldest first, with recipient, carrier, tracking number, storage location, status (received, notified, picked_up, returned_to_sender, lost) and pickup details. Filter by property, unit, recipient contact or status. Packages waiting for pickup have status received or notified.\n\nNeeds one of: residents.read.","tags":["Packages"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"recipient_contact_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["received","notified","picked_up","returned_to_sender","lost"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/assets":{"get":{"operationId":"list_assets","summary":"List assets","description":"Equipment at properties (appliances, HVAC, water heaters, ...), oldest first, with location, manufacturer, model and serial number, install date, warranty, expected life, condition and status. Costs are integer cents. Filter by property, unit, asset type or status.\n\nNeeds one of: properties.read.","tags":["Assets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"asset_type","in":"query","required":false,"schema":{"description":"e.g. appliance, hvac, water_heater","type":"string"},"description":"e.g. appliance, hvac, water_heater"},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["in_service","out_of_service","retired"]}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"post":{"operationId":"create_assets_row","summary":"Create an asset","description":"Appliances and equipment at a property (refrigerators, HVAC units, water heaters, roofs, elevators) with warranty and lifecycle data. Work orders and preventive maintenance reference assets.\n\nInserts one row of assets in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write, properties.write.","tags":["Assets"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"asset_type":{"type":"string","enum":["appliance","hvac","water_heater","plumbing","electrical","roofing","elevator","fire_safety","security","pool_equipment","flooring","window_door","vehicle","furniture","tool","other"],"description":"asset type"},"name":{"type":"string","maxLength":100000,"description":"What it is, e.g. \"Refrigerator\", \"Rooftop unit 3\"."},"location_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where it is, e.g. \"Kitchen\", \"Roof, north side\"."},{"type":"null"}]},"manufacturer":{"anyOf":[{"type":"string","maxLength":100000,"description":"manufacturer"},{"type":"null"}]},"model_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"model number"},{"type":"null"}]},"serial_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"serial number"},{"type":"null"}]},"asset_tag":{"anyOf":[{"type":"string","maxLength":100000,"description":"Barcode/QR label affixed by the manager."},{"type":"null"}]},"installed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"installed on"},{"type":"null"}]},"purchased_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"purchased on"},{"type":"null"}]},"purchase_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"purchase price cents"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor that sold or installed the asset."},{"type":"null"}]},"warranty_provider":{"anyOf":[{"type":"string","maxLength":100000,"description":"warranty provider"},{"type":"null"}]},"warranty_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"warranty expires on"},{"type":"null"}]},"warranty_details":{"anyOf":[{"type":"string","maxLength":100000,"description":"warranty details"},{"type":"null"}]},"expected_life_years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Useful life used to forecast replacement (capex planning)."},{"type":"null"}]},"replacement_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"replacement cost cents"},{"type":"null"}]},"condition":{"anyOf":[{"type":"string","enum":["new","good","fair","poor","failed"],"description":"condition"},{"type":"null"}]},"retired_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"retired on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","asset_type","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.write"]}},"/v1/tasks":{"get":{"operationId":"list_tasks","summary":"List tasks","description":"Staff to-dos the key's user can see, oldest first, with status, priority, due date, assignee and the record each is about (property, unit, lease, work order, lead, ...). Filter by status, priority, assignee, property or work order. Open tasks are open, in_progress and waiting.\n\nAny key may call it.","tags":["Tasks"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","in_progress","waiting","completed","canceled"]}},{"name":"priority","in":"query","required":false,"schema":{"type":"string","enum":["low","normal","high","urgent"]}},{"name":"assignee_user_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"work_order_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/tasks/{id}/complete":{"post":{"operationId":"complete_task","summary":"Complete a task","description":"Marks a task completed with an optional note and cancels its pending reminders. Returns the task. A recurring task also gets its next occurrence, returned as next_task_id (null when the series has ended).\n\nAny key may call it.","tags":["Tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"description":"What was done.","type":"string","maxLength":5000}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/work_orders/{id}/events":{"get":{"operationId":"list_work_order_events","summary":"List a work order's timeline","description":"The timeline of one work order, oldest first: creation, status changes, assignments, scheduling and notes, with who acted and whether the resident or vendor can see each entry.\n\nNeeds one of: maintenance.read.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/keys":{"get":{"operationId":"list_keys","summary":"List keys","description":"Physical keys, fobs and lockboxes kept for properties and units, oldest first, with type, label, key number, number of copies and storage location. Codes are never returned. Filter by property or unit.\n\nNeeds one of: properties.read.","tags":["Keys"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"post":{"operationId":"create_keys_row","summary":"Create a key","description":"Physical keys, fobs, remotes and access codes for a property or unit, and how many copies the office holds. Who has a copy is tracked in key_checkouts.\n\nInserts one row of keys in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Keys"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"key_type":{"type":"string","enum":["unit_door","mailbox","master","common_area","garage_remote","fob","access_card","lockbox","gate_code","other"],"description":"key type"},"label":{"type":"string","maxLength":100000,"description":"label"},"key_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stamped key number / fob id."},{"type":"null"}]},"copies_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"copies total"},"storage_location":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where the office copy is kept, e.g. \"Key box hook 14\"."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","key_type","label"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/key_checkouts":{"get":{"operationId":"list_key_checkouts","summary":"List key checkouts","description":"Who has taken keys out (a contact such as a vendor, or a staff user), oldest first, with quantity, checkout time, due-back time and return time. Set outstanding to true for keys not returned yet. Filter by key.\n\nNeeds one of: properties.read.","tags":["Key checkouts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"key_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"outstanding","in":"query","required":false,"schema":{"type":["boolean","string"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"post":{"operationId":"create_key_checkouts_row","summary":"Create a key checkout","description":"Key custody log: a key issued to a contact (tenant, vendor) or a staff user, and when it came back. Open checkouts have returned_at null.\n\nInserts one row of key checkouts in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write, properties.write.","tags":["Key checkouts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"key id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Tenant, vendor or other contact holding the key. Exactly one of contact_id / user_id."},{"type":"null"}]},"user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff user holding the key. Exactly one of contact_id / user_id."},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"quantity"},"checked_out_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"checked out at"},"due_back_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"due back at"},{"type":"null"}]},"returned_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"returned at"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["key_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.write"]}},"/v1/leases/{lease_id}/ledger":{"get":{"operationId":"list_lease_ledger","summary":"Get a lease's ledger","description":"The tenant ledger of one lease in date order: every charge, payment, credit, write-off and reversal with a running balance. amount_cents is signed integer cents (+ raises what the tenant owes, - lowers it); balance_cents after a line is what the tenant owes at that point (negative = credit or prepaid). The last line's balance_cents is the current lease balance. line_type is charge, payment, deposit_applied, credit, write_off, balance_transfer, payment_refund, payment_returned, payment_voided or a *_reversal. Paged by line_number.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"lease_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/charges":{"get":{"operationId":"list_charges","summary":"List charges","description":"Charges to tenants (rent, fees, deposits, utilities), oldest first, each with amount, paid, credited, written-off and remaining amounts (integer cents), status and days past due. Use open_only=true for what tenants still owe (delinquency, aging). Filter by lease, property, unit, status or due date. For one lease's full history with a running balance, use list_lease_ledger.\n\nNeeds one of: receivables.read.","tags":["Charges"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","partially_paid","paid","written_off","reversed"]}},{"name":"open_only","in":"query","required":false,"schema":{"description":"Only charges with a remaining amount above zero.","type":["boolean","string"]},"description":"Only charges with a remaining amount above zero."},{"name":"from","in":"query","required":false,"schema":{"description":"Earliest due date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Earliest due date (inclusive)."},{"name":"to","in":"query","required":false,"schema":{"description":"Latest due date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Latest due date (inclusive)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipts":{"get":{"operationId":"list_receipts","summary":"List receipts","description":"Money received from tenants (payments by check, ACH, card, cash and deposits applied at move-out), oldest first, with amount, allocated to charges, refunded and unapplied (prepaid) amounts in integer cents. status is posted, reversed (returned: NSF or chargeback) or voided. Filter by lease, property, method, status or received date.\n\nNeeds one of: receivables.read.","tags":["Receipts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["posted","reversed","voided"]}},{"name":"from","in":"query","required":false,"schema":{"description":"Earliest received date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Earliest received date (inclusive)."},{"name":"to","in":"query","required":false,"schema":{"description":"Latest received date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Latest received date (inclusive)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/bills":{"get":{"operationId":"list_bills","summary":"List bills","description":"Vendor invoices (accounts payable), oldest first, with total, paid, credited and open amounts (integer cents) and days past due. Only approved and partially_paid bills have an open amount to pay; drafts and pending_approval bills are not posted yet. Use open_only=true for unpaid bills. Filter by vendor, property, status or due date. get_bill adds the coded lines.\n\nNeeds one of: payables.read.","tags":["Bills"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","pending_approval","approved","partially_paid","paid","void"]}},{"name":"open_only","in":"query","required":false,"schema":{"description":"Only bills with an open amount above zero.","type":["boolean","string"]},"description":"Only bills with an open amount above zero."},{"name":"from","in":"query","required":false,"schema":{"description":"Earliest due date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Earliest due date (inclusive)."},{"name":"to","in":"query","required":false,"schema":{"description":"Latest due date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Latest due date (inclusive)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/bills/{id}":{"get":{"operationId":"get_bill","summary":"Get a bill","description":"One vendor bill by id with its balances and `lines`: GL account, property, unit, work order, description and amount_cents of each line.\n\nNeeds one of: payables.read.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]},"delete":{"operationId":"delete_bills_row","summary":"Delete a bill","description":"Vendor invoices (accounts payable). Coded line by line in bill_lines (GL account, property, unit, work order). Posted to the ledger when approved (Dr expense / Cr AP); paid through vendor_payments. Open amount and aging are derived (view bill_balances). Drafts are editable by staff with payables.write; everything after that goes through RPCs.\n\nDeletes one row of bills. The database refuses it where other records still need the row.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/vendor_payments":{"get":{"operationId":"list_vendor_payments","summary":"List vendor payments","description":"Payments to vendors (check, ACH, card, wire), oldest first, with amount_cents (integer cents), date, method, status, check number and `bills`: the bills each payment paid and how much went to each. Filter by vendor, bank account, status or payment date.\n\nNeeds one of: payables.read.","tags":["Vendor payments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"bank_account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["processing","posted","sent_to_bank","cleared","failed","voided"]}},{"name":"from","in":"query","required":false,"schema":{"description":"Earliest payment date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Earliest payment date (inclusive)."},{"name":"to","in":"query","required":false,"schema":{"description":"Latest payment date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Latest payment date (inclusive)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/gl_accounts":{"get":{"operationId":"list_gl_accounts","summary":"List GL accounts","description":"The chart of accounts, oldest first: number, name, type, subtype, normal balance, flags (header, trust, cash, active) and `export_mappings`: the account code and name each GL account exports to in a connected accounting system. Balances are not stored here; use run_report (trial balance) for them. Filter by account type or active.\n\nNeeds one of: gl.read.","tags":["GL accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"account_type","in":"query","required":false,"schema":{"type":"string","enum":["asset","liability","equity","income","expense"]}},{"name":"is_active","in":"query","required":false,"schema":{"type":["boolean","string"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]},"post":{"operationId":"create_gl_accounts_row","summary":"Create a gl account","description":"Per-organization chart of accounts (general ledger accounts), hierarchical via parent_id. accounts the code posts to are found by system_code. Balances are never stored: sum journal_lines.amount_cents.\n\nInserts one row of gl accounts in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.setup.","tags":["GL accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Header (summary) account this account rolls up into. Parent has the same account_type and is_header = true."},{"type":"null"}]},"number":{"type":"string","maxLength":100000,"description":"Account number shown to users and used for ordering (e.g. 1010). Unique per org."},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"account_type":{"type":"string","enum":["asset","liability","equity","income","expense"],"description":"account type"},"account_subtype":{"type":"string","enum":["bank","undeposited_funds","processor_clearing","accounts_receivable","other_receivable","prepaid_expense","other_current_asset","fixed_asset","accumulated_depreciation","other_asset","due_to_from","accounts_payable","security_deposits_held","prepaid_rent","owner_reserves_held","sales_tax_payable","accrued_liability","other_current_liability","long_term_liability","owner_equity","owner_contributions","owner_distributions","retained_earnings","opening_balance_equity","rental_income","fee_income","other_income","contra_income","operating_expense","repairs_maintenance","utilities","bad_debt","financing_expense","depreciation_expense","non_operating_expense","other"],"description":"Finer classification driving behaviour and reports; must be valid for account_type (see type comment for the NOI rule)."},"normal_balance":{"type":"string","enum":["debit","credit"],"description":"debit for asset/expense, credit for liability/equity/income; flipped when is_contra. Enforced by a check constraint."},"is_contra":{"type":"boolean","description":"Contra account: normal balance opposite to its type (Concessions and Vacancy loss against income, Owner distributions against equity, Accumulated depreciation against assets)."},"system_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stable code the application posts to (AR_TENANTS, RENT_INCOME, PREPAID_RENT, ...). Unique per org; resolve with ledger.account_id(org_id, system_code). Null for user-created accounts."},{"type":"null"}]},"is_system":{"type":"boolean","description":"Seeded by the platform; system_code and nature cannot be changed by users."},"is_header":{"type":"boolean","description":"Summary account that only groups children. Journal lines cannot be posted to it; its balance is the sum of its descendants."},"is_trust":{"type":"boolean","description":"Holds client (owner/tenant) money in trust. Every journal line on a trust account must carry property_id (the fund)."},"is_cash":{"type":"boolean","description":"Cash or cash equivalent (bank accounts, undeposited funds, processor clearing). Used by cash-flow reports."},"requires_property":{"type":"boolean","description":"Journal lines on this account must carry property_id (true for all trust accounts and per-property accounts like AR_TENANTS, owner equity, DUE_TO_MANAGEMENT)."},"allows_manual_entries":{"type":"boolean","description":"False for subledger control accounts (AR, AP, undeposited funds, processor clearing, deposits held, prepaid rent) that only domain functions may post to; manual journal entries to them are rejected except opening balances."},"is_active":{"type":"boolean","description":"Inactive accounts accept no new postings (reversals and year-end closing still allowed)."},"tax_line":{"anyOf":[{"type":"string","maxLength":100000,"description":"Tax form mapping for owner tax reports, e.g. schedule_e_line_14 (repairs)."},{"type":"null"}]},"statement_section":{"anyOf":[{"type":"string","maxLength":100000,"description":"Section of the property operating statement (budget_comparison, statement_12_month): residential_income, commercial_income, other_income, vacancy_concessions, payroll, repairs_maintenance, general_administrative, management_fee, contract_services, utilities, taxes, insurance, debt_service, escrows_r"},{"type":"null"}]}},"required":["number","name","account_type","account_subtype","normal_balance"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/accounting_export_settings":{"get":{"operationId":"get_accounting_export_settings","summary":"Get the accounting export setup","description":"The accounting system the organization exports journals to (export_target) and how it set up its chart (chart_choice: keep = own chart with codes mapped by hand, renumber = accounts use the other system's numbers, import = the other system's chart was imported). Both are null when accounting export is not set up.\n\nNeeds one of: gl.read.","tags":["Accounting export settings"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/bank_accounts":{"get":{"operationId":"list_bank_accounts","summary":"List bank accounts","description":"The organization's bank accounts (operating, trust, security deposit, reserve, escrow), oldest first, with institution, last four digits, the GL account that holds the book balance and the property for a property's own account. Full account and routing numbers are never returned. Filter by purpose, property or active.\n\nNeeds one of: banking.read, gl.read.","tags":["Bank accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"purpose","in":"query","required":false,"schema":{"type":"string","enum":["operating","trust","security_deposit","reserve","escrow"]}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"is_active","in":"query","required":false,"schema":{"type":["boolean","string"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read"]}},"/v1/budgets":{"get":{"operationId":"list_budgets","summary":"List budgets","description":"Property operating budgets by fiscal year and version, oldest first, with total_cents (sum of all lines, integer cents). The approved version (is_active) is the one budget-vs-actual and owners use. Filter by property, fiscal year or status. get_budget adds the monthly lines.\n\nNeeds one of: gl.read, owners.read.","tags":["Budgets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"fiscal_year","in":"query","required":false,"schema":{"type":"integer","minimum":2000,"maximum":2200}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","approved","archived"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","owners.read"]},"post":{"operationId":"create_budgets_row","summary":"Create a budget","description":"Versioned operating budget for a property and fiscal year: version 1 is the original, each revision (revise_budget) is a new draft version copied from an earlier one. At most one version per property-year is active (approved); approving a version archives the previously approved one. Owners see the active budget; budget vs actual compares budget_lines with journal_lines.\n\nInserts one row of budgets in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write, owners.write.","tags":["Budgets"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Property the budget covers; null for a budget on a set of books (accounting_entity_id)."},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"fiscal_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fiscal year the budget covers (organizations.fiscal_year_start_month defines its months)."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Version number within the property and fiscal year (1 = original budget, 2 = first revision...). Assigned automatically on insert when not given."},"revised_from_budget_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Version this revision was copied from (public.revise_budget); null for an original."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set when the budget's property is an association's property (trigger private.budgets_set_association): an association budget. Its twelve months start at associations.fiscal_year_start_month of the fiscal year (a year that starts after January ends in fiscal_year), and the board sees the approved one"},{"type":"null"}]},"accounting_entity_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set instead of property_id for a budget on a set of books: the management company's own books, or a fund or owner entity's level costs (A31). Budget vs actual reads it against the company books (management company) or the entity's journal lines."},{"type":"null"}]},"budget_kind":{"type":"string","maxLength":100000,"description":"operating = the operating budget (version flow draft, approved, archived); underwriting = the acquisition model (pro forma) for the property and year, kept as a draft and never approved, so budget vs actual never reads it. reports.underwriting_vs_actual compares the books with the newest underwritin"},"variance_threshold_pct":{"anyOf":[{"type":"number","description":"Variances at or above this percent of budget are highlighted (green when favorable, red when unfavorable) and need an explanation; null = the app default."},{"type":"null"}]}},"required":["name","fiscal_year","version"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/budgets/{id}":{"get":{"operationId":"get_budget","summary":"Get a budget","description":"One budget by id with `lines`: the amount_cents (integer cents) per GL account and month (month_on is the first day of the month).\n\nNeeds one of: gl.read, owners.read.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","owners.read"]},"patch":{"operationId":"update_budgets_row","summary":"Update a budget","description":"Versioned operating budget for a property and fiscal year: version 1 is the original, each revision (revise_budget) is a new draft version copied from an earlier one. At most one version per property-year is active (approved); approving a version archives the previously approved one. Owners see the active budget; budget vs actual compares budget_lines with journal_lines.\n\nChanges the given fields of one row of budgets and returns it. Fields left out stay as they are.\n\nNeeds one of: gl.write, owners.write.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Property the budget covers; null for a budget on a set of books (accounting_entity_id)."},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"fiscal_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fiscal year the budget covers (organizations.fiscal_year_start_month defines its months)."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Version number within the property and fiscal year (1 = original budget, 2 = first revision...). Assigned automatically on insert when not given."},"revised_from_budget_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Version this revision was copied from (public.revise_budget); null for an original."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set when the budget's property is an association's property (trigger private.budgets_set_association): an association budget. Its twelve months start at associations.fiscal_year_start_month of the fiscal year (a year that starts after January ends in fiscal_year), and the board sees the approved one"},{"type":"null"}]},"accounting_entity_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set instead of property_id for a budget on a set of books: the management company's own books, or a fund or owner entity's level costs (A31). Budget vs actual reads it against the company books (management company) or the entity's journal lines."},{"type":"null"}]},"budget_kind":{"type":"string","maxLength":100000,"description":"operating = the operating budget (version flow draft, approved, archived); underwriting = the acquisition model (pro forma) for the property and year, kept as a draft and never approved, so budget vs actual never reads it. reports.underwriting_vs_actual compares the books with the newest underwritin"},"variance_threshold_pct":{"anyOf":[{"type":"number","description":"Variances at or above this percent of budget are highlighted (green when favorable, red when unfavorable) and need an explanation; null = the app default."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]},"delete":{"operationId":"delete_budgets_row","summary":"Delete a budget","description":"Versioned operating budget for a property and fiscal year: version 1 is the original, each revision (revise_budget) is a new draft version copied from an earlier one. At most one version per property-year is active (approved); approving a version archives the previously approved one. Owners see the active budget; budget vs actual compares budget_lines with journal_lines.\n\nDeletes one row of budgets. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write, owners.write.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/owner_statements":{"get":{"operationId":"list_owner_statements","summary":"List owner statements","description":"Owner statements, oldest first: the owner's share for the period of beginning cash, income, expenses, management fees, contributions, distributions, ending cash, reserve and available cash (cash basis, integer cents). status is draft (not visible to the owner), final or sent. Filter by owner, status or period end date. get_owner_statement adds the figures per property.\n\nNeeds one of: owners.read.","tags":["Owner statements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","final","sent"]}},{"name":"from","in":"query","required":false,"schema":{"description":"Earliest period end date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Earliest period end date (inclusive)."},{"name":"to","in":"query","required":false,"schema":{"description":"Latest period end date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Latest period end date (inclusive)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_statements/{id}":{"get":{"operationId":"get_owner_statement","summary":"Get an owner statement","description":"One owner statement by id with `properties`: the same figures per property with the owner's ownership_pct (integer cents).\n\nNeeds one of: owners.read.","tags":["Owner statements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distributions":{"get":{"operationId":"list_owner_distributions","summary":"List owner distributions","description":"Owner distribution runs, oldest first: the as-of date, the distribution date, status (draft, posted, voided) and total_cents (integer cents). Filter by status, distribution date, or an owner or property with a line in the run. get_owner_distribution adds the amount paid to each owner per property.\n\nNeeds one of: owners.read.","tags":["Owner distributions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","posted","voided"]}},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"from","in":"query","required":false,"schema":{"description":"Earliest distribution date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Earliest distribution date (inclusive)."},{"name":"to","in":"query","required":false,"schema":{"description":"Latest distribution date (inclusive).","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Latest distribution date (inclusive)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distributions/{id}":{"get":{"operationId":"get_owner_distribution","summary":"Get an owner distribution","description":"One owner distribution run by id with `lines`: owner, property, ownership_pct, amount_cents (integer cents), method and status of each payment.\n\nNeeds one of: owners.read.","tags":["Owner distributions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_agreements":{"get":{"operationId":"list_management_agreements","summary":"List management agreements","description":"Property management agreements with owners, oldest first: status, term, renewal and notice terms, the owner's repair pre-approval limit (maintenance_approval_limit_cents, integer cents), and the `owners` and `properties` they cover. Fee terms are not included. Filter by status, owner or property.\n\nNeeds one of: owners.read.","tags":["Management agreements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","active","expired","terminated"]}},{"name":"owner_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/purchase_orders":{"get":{"operationId":"list_purchase_orders","summary":"List purchase orders","description":"Purchase orders to vendors, oldest first, with ordered, billed (on non-void bills) and remaining amounts in integer cents. Filter by vendor, property, work order or status. get_purchase_order adds the lines.\n\nNeeds one of: payables.read.","tags":["Purchase orders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"work_order_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","pending_approval","approved","partially_billed","billed","closed","void"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/purchase_orders/{id}":{"get":{"operationId":"get_purchase_order","summary":"Get a purchase order","description":"One purchase order by id with `lines`: GL account, description, quantity, unit cost and the ordered, billed and remaining cents of each line.\n\nNeeds one of: payables.read.","tags":["Purchase orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/associations":{"get":{"operationId":"list_associations","summary":"List associations","description":"HOA and condo associations the key can see, oldest first, with their assessment, late fee, violation and resale settings. Money fields are integer cents; *_pct fields are percentages. Use property_id to find the association that governs a property.\n\nNeeds one of: associations.read.","tags":["Associations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/associations/{id}":{"get":{"operationId":"get_association","summary":"Get an association","description":"One association by id, with the same fields as list_associations.\n\nNeeds one of: associations.read.","tags":["Associations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]},"patch":{"operationId":"update_associations_row","summary":"Update an association","description":"An HOA, condo or co-op association the organization manages. Each association is exactly one property (property_id, 1:1) whose fund holds the association's own books; its units are the property's units. Managers are assigned through property_assignments like any property.\n\nChanges the given fields of one row of associations and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Associations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The property row that represents this association (its fund in the ledger, its units, its bank accounts and its manager assignments)."},"association_type":{"type":"string","enum":["hoa","condo","coop","townhome","master","sub_association","commercial_condo"],"description":"association type"},"legal_name":{"type":"string","maxLength":100000,"description":"Registered name of the association corporation, used on statements and notices."},"tax_id_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"Last four digits of the association's EIN."},{"type":"null"}]},"state_entity_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"state entity number"},{"type":"null"}]},"incorporated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"incorporated on"},{"type":"null"}]},"declaration_recorded_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the CC&Rs / condominium declaration was recorded with the county."},{"type":"null"}]},"declaration_recording_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"declaration recording reference"},{"type":"null"}]},"fiscal_year_start_month":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Association fiscal year start month (1-12), used for its budget, reserve funding and financial packages; may differ from the organization's."},"assessment_frequency":{"type":"string","enum":["monthly","quarterly","semiannual","annual","one_time"],"description":"Default billing frequency of regular dues (assessments)."},"assessment_due_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of the month regular assessments fall due."},"default_allocation_method":{"type":"string","enum":["equal","allocation_pct","square_feet","custom"],"description":"How a budgeted assessment total is split across units by default: equal, by declaration allocation_pct, by square feet, or custom per-unit amounts."},"board_seat_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"board seat count"},{"type":"null"}]},"board_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"board term months"},{"type":"null"}]},"quorum_pct":{"anyOf":[{"type":"number","description":"Percent of homeowner votes required for a membership meeting quorum (100 = 100%)."},{"type":"null"}]},"architectural_review_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days the architectural committee has to decide a complete request; past this, is_architectural_auto_approve decides whether it is deemed approved."},{"type":"null"}]},"is_architectural_auto_approve":{"type":"boolean","description":"is architectural auto approve"},"violation_cure_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Default days a homeowner has to cure a violation after notice."},"late_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat late fee charged once per homeowner account per month when late-fee-eligible charges (assessments) are past due beyond late_fee_grace_days. Null with late_fee_pct null = no late fees."},{"type":"null"}]},"late_fee_pct":{"anyOf":[{"type":"number","description":"Late fee as a percentage of the overdue late-fee-eligible balance (100 = 100%), added to late_fee_cents."},{"type":"null"}]},"late_fee_max_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on one month's late fee per account (state statutes often cap HOA late fees). Null = no cap."},{"type":"null"}]},"late_fee_grace_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after a charge's due date before it counts as late for public.assess_homeowner_late_fees."},"resale_certificate_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"resale certificate fee cents"},{"type":"null"}]},"transfer_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"transfer fee cents"},{"type":"null"}]},"working_capital_months":{"anyOf":[{"type":"number","description":"Months of regular assessment collected from a buyer at closing as a working capital contribution."},{"type":"null"}]},"master_association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"For a sub-association: the master association it belongs to."},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":100000,"description":"website"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"appeal_pauses_fines":{"type":"boolean","description":"While an appeal waits, the violation gets no new fine, fine notice or legal notice."},"board_sees_owner_names":{"type":"boolean","description":"Whether the board financials show owner names in the delinquency view. Default false: directors see unit labels only. Staff with associations.write turn it on when the association's governing documents or board policy allow it."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/homeowner_accounts":{"get":{"operationId":"list_homeowner_accounts","summary":"List homeowner accounts","description":"Homeowner accounts (one per unit ownership) in an association, oldest first, with the owners and balance_cents: integer cents owed today (positive) or credit (negative). Use it to find who owns a unit or which homeowners owe assessments. Read only.\n\nNeeds one of: associations.read.","tags":["Homeowner accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","closed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/homeowner_accounts/{id}":{"get":{"operationId":"get_homeowner_account","summary":"Get a homeowner account","description":"One homeowner account by id, with its owners and balance_cents (integer cents owed today; negative is a credit).\n\nNeeds one of: associations.read.","tags":["Homeowner accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]},"patch":{"operationId":"update_homeowner_accounts_row","summary":"Update a homeowner account","description":"One period of ownership of one association unit: the homeowner's receivable account (homeowner ledger). Assessments, fines and fees are charges with homeowner_account_id; payments are receipts with homeowner_account_id. A sale closes the seller's account and opens a new one for the buyer (previous_homeowner_account_id). Periods for a unit never overlap.\n\nChanges the given fields of one row of homeowner accounts and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Homeowner accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"ownership_starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ownership starts on"},"ownership_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ownership ends on"},{"type":"null"}]},"previous_homeowner_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The seller's account this one succeeded on transfer of title."},{"type":"null"}]},"is_owner_occupied":{"type":"boolean","description":"False when the owner rents the unit out (renter details can be kept as contacts / leases if the org also manages the rental)."},"statement_delivery":{"type":"string","enum":["email","mail","email_and_mail","portal_only"],"description":"How statements, coupons and notices are delivered to this account."},"mailing_address_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mailing address for statements and legal notices when it differs from the unit address (absentee owners)."},{"type":"null"}]},"is_collections_hold":{"type":"boolean","description":"True to stop late fees and collection letters (dispute, payment plan, bankruptcy)."},"deed_recorded_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"deed recorded on"},{"type":"null"}]},"purchase_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"purchase price cents"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/violations":{"get":{"operationId":"list_violations","summary":"List violations","description":"Covenant violations, oldest first, with the violation type name, status and cure dates. Filter by association, unit, homeowner account or status. Fines and notices are not included.\n\nNeeds one of: associations.read.","tags":["Violations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","notice_sent","cure_period","hearing_scheduled","fined","cured","closed","dismissed","escalated_legal"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]},"post":{"operationId":"report_violation","summary":"Report a violation","description":"Records a new open violation on a unit in an association, for the homeowner account that owned the unit on observed_on. The cure date comes from the violation type or the association. It sends no notice and assesses no fine; staff do that in the web app. Returns the violation.\n\nNeeds one of: associations.write.","tags":["Violations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"violation_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"From list_violation_types"},"description":{"type":"string","minLength":1,"maxLength":4000},"observed_on":{"description":"ISO date, YYYY-MM-DD (default today)","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"source":{"default":"inspection","type":"string","enum":["inspection","drive_by","homeowner_complaint","board","staff","other"]},"location_detail":{"type":"string","maxLength":500}},"required":["unit_id","violation_type_id","description"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/violation_types":{"get":{"operationId":"list_violation_types","summary":"List violation types","description":"The org's violation types (rules a homeowner can break), oldest first, with default cure days and fine amounts in integer cents. A type with no association_id applies to every association. Use it to pick violation_type_id for report_violation.\n\nNeeds one of: associations.read.","tags":["Violation types"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Types for this association, including the org-wide ones.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Types for this association, including the org-wide ones."},{"name":"include_inactive","in":"query","required":false,"schema":{"description":"Include inactive types (default false).","type":["boolean","string"]},"description":"Include inactive types (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]},"post":{"operationId":"create_violation_types_row","summary":"Create a violation type","description":"Configurable violation categories (trash cans visible, unapproved paint, parking, noise) with the governing-document citation, cure period and fine schedule. association_id null = available to all associations of the org.\n\nInserts one row of violation types in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Violation types"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"governing_document_section":{"anyOf":[{"type":"string","maxLength":100000,"description":"Citation printed on letters, e.g. \"CC&R Art. 7 §7.3\"."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"default_cure_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default cure days"},{"type":"null"}]},"first_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fine for the first uncured occurrence after the cure period."},{"type":"null"}]},"repeat_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fine for each repeat occurrence within the look-back period."},{"type":"null"}]},"daily_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Continuing fine per day the violation stays uncured (if the governing documents allow)."},{"type":"null"}]},"max_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on total fines for one violation case."},{"type":"null"}]},"fine_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"fine charge type id"},{"type":"null"}]},"notice_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Letter template used for notices of this type."},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/architectural_requests":{"get":{"operationId":"list_architectural_requests","summary":"List architectural requests","description":"Architectural review (ARC) requests from homeowners, oldest first: the project, status, review due date and decision. estimated_cost_cents is integer cents. Filter by association, unit or status.\n\nNeeds one of: associations.read.","tags":["Architectural requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","submitted","under_review","more_info_requested","approved","approved_with_conditions","denied","withdrawn","completed","expired"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/architectural_requests/{id}":{"get":{"operationId":"get_architectural_request","summary":"Get an architectural request","description":"One architectural review (ARC) request by id.\n\nNeeds one of: associations.read.","tags":["Architectural requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/board_meetings":{"get":{"operationId":"list_board_meetings","summary":"List board meetings","description":"Association board meetings, oldest first: type, status, time, place and whether notice went out and minutes are approved. Filter by association or status.\n\nNeeds one of: associations.read.","tags":["Board meetings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["scheduled","in_progress","held","canceled","postponed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]},"post":{"operationId":"create_board_meetings_row","summary":"Create a board meeting","description":"Board and membership meetings of an association: notice, agenda, quorum and minutes (documents). Executive sessions are hidden from homeowners.\n\nInserts one row of board meetings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Board meetings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"meeting_type":{"type":"string","enum":["regular","special","annual","executive_session","emergency","budget","organizational"],"description":"meeting type"},"title":{"type":"string","maxLength":100000,"description":"title"},"scheduled_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled at"},"ended_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ended at"},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"location"},{"type":"null"}]},"virtual_meeting_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"virtual meeting url"},{"type":"null"}]},"is_open_to_members":{"type":"boolean","description":"Homeowners may attend and see the agenda / minutes (false for executive sessions)."},"quorum_present":{"anyOf":[{"type":"boolean","description":"quorum present"},{"type":"null"}]},"agenda_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"agenda document id"},{"type":"null"}]},"minutes_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"minutes document id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["association_id","title","scheduled_at"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/association_elections":{"get":{"operationId":"list_association_elections","summary":"List association elections","description":"Association elections and votes, oldest first: type, status, voting window and quorum. Use get_association_election_results for the tally. Individual ballots are never returned.\n\nNeeds one of: associations.read.","tags":["Association elections"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","open","closed","certified","canceled"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/association_elections/{id}/results":{"get":{"operationId":"get_association_election_results","summary":"Get election results","description":"The election and its tally per option: votes, weighted_votes, total ballots, turnout weight against eligible weight, and quorum_met. For a secret ballot the per-option counts are null until the election is closed. Individual ballots and choices are never returned.\n\nNeeds one of: associations.read.","tags":["Association elections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/resale_requests":{"get":{"operationId":"list_resale_requests","summary":"List resale requests","description":"Confirmed resale certificate and estoppel requests from title companies, agents and owners, oldest first: requester, closing date, fee_cents (integer cents), status and due date. Filter by association or status.\n\nNeeds one of: associations.read.","tags":["Resale requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"association_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["awaiting_payment","received","in_progress","ready","sent","canceled"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/reservable_amenities":{"get":{"operationId":"list_reservable_amenities","summary":"List reservable amenities","description":"Amenities residents can book (clubhouse, pool, guest suite), oldest first, with hours, booking limits, rules, and fee_cents and deposit_cents in integer cents. Filter by property.\n\nNeeds one of: properties.read, associations.read, residents.read.","tags":["Reservable amenities"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"include_inactive","in":"query","required":false,"schema":{"description":"Include inactive amenities (default false).","type":["boolean","string"]},"description":"Include inactive amenities (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","associations.read","residents.read"]},"post":{"operationId":"create_reservable_amenities_row","summary":"Create a reservable amenity","description":"Bookable shared spaces at any property (association clubhouse, pool cabana, apartment guest suite, party room) with booking rules, fee and refundable deposit.\n\nInserts one row of reservable amenities in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Reservable amenities"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"capacity":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"capacity"},{"type":"null"}]},"fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Booking fee: flat per reservation, or per hour when fee_is_hourly."},"fee_is_hourly":{"type":"boolean","description":"fee is hourly"},"deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Refundable damage deposit charged with the booking."},"fee_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"fee charge type id"},{"type":"null"}]},"deposit_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"deposit charge type id"},{"type":"null"}]},"min_duration_minutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min duration minutes"},{"type":"null"}]},"max_duration_minutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max duration minutes"},{"type":"null"}]},"max_advance_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How far ahead residents may book."},{"type":"null"}]},"opens_at":{"anyOf":[{"type":"string","maxLength":100000,"description":"Daily opening time (property local time); null = no restriction."},{"type":"null"}]},"closes_at":{"anyOf":[{"type":"string","maxLength":100000,"description":"closes at"},{"type":"null"}]},"requires_approval":{"type":"boolean","description":"requires approval"},"rules":{"anyOf":[{"type":"string","maxLength":100000,"description":"rules"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"cancel_notice_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"A resident may cancel a booking until this many hours before it starts (00133); staff may cancel any future booking."}},"required":["property_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/amenity_reservations":{"get":{"operationId":"list_amenity_reservations","summary":"List amenity reservations","description":"Amenity bookings, oldest first: amenity, resident, time, status and fee_cents and deposit_cents in integer cents. Filter by amenity, status or a starts_at window. Read only.\n\nNeeds one of: associations.read, leasing.read, residents.read.","tags":["Amenity reservations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"reservable_amenity_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["requested","approved","denied","canceled","completed","no_show"]}},{"name":"starts_from","in":"query","required":false,"schema":{"description":"Bookings that start on or after this date (YYYY-MM-DD)","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Bookings that start on or after this date (YYYY-MM-DD)"},{"name":"starts_before","in":"query","required":false,"schema":{"description":"Bookings that start before this date (YYYY-MM-DD)","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Bookings that start before this date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","leasing.read","residents.read"]}},"/v1/resident_events":{"get":{"operationId":"list_resident_events","summary":"List resident events","description":"Community events for residents, oldest first: time, place, capacity, RSVP deadline and status. An event with no property_id is for the whole org. Filter by property or status.\n\nNeeds one of: residents.read.","tags":["Resident events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["scheduled","canceled","completed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]},"post":{"operationId":"create_resident_events_row","summary":"Create a resident event","description":"Community event residents can RSVP to (pool party, move-in social, food truck). property_id null = residents of every property.\n\nInserts one row of resident events in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: residents.write.","tags":["Resident events"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.properties (the property this resident event belongs to or points at)."},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"Title of the resident event."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the resident event."},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"Location of the resident event."},{"type":"null"}]},"starts_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the resident event was starts (timestamp); null if not yet."},"ends_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the resident event was ends (timestamp); null if not yet."},{"type":"null"}]},"capacity":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum attendees counting guests (going RSVPs + their guests); null = unlimited."},{"type":"null"}]},"rsvp_deadline_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the resident event was rsvp deadline (timestamp); null if not yet."},{"type":"null"}]},"max_guests_per_rsvp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Max guests per rsvp of the resident event."}},"required":["title","starts_at"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/announcements":{"get":{"operationId":"list_announcements","summary":"List announcements","description":"Announcements staff sent or scheduled to residents, oldest first: title, body, channels, status and recipient_count. Read only: the API cannot send or schedule an announcement.\n\nNeeds one of: communications.read.","tags":["Announcements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","scheduled","sending","sent","canceled"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]},"post":{"operationId":"create_announcements_row","summary":"Create an announcement","description":"Broadcast notices to many tenants/owners/vendors (water shut-off, policy change, holiday hours). Audiences in announcement_audiences; send_announcement() materializes announcement_recipients and enqueues a notification per recipient on each channel.\n\nInserts one row of announcements in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: communications.broadcast.","tags":["Announcements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"body":{"type":"string","maxLength":100000,"description":"body"},"body_html":{"anyOf":[{"type":"string","maxLength":100000,"description":"body html"},{"type":"null"}]},"channels":{"type":"array","items":{"type":"string","enum":["in_app","push","email","sms","voice"]},"description":"Channels to deliver on (in_app shows on the portal feed; push/email/sms go through notification_deliveries)."},"priority":{"type":"string","enum":["low","normal","high","urgent"],"description":"priority"},"is_emergency":{"type":"boolean","description":"Emergency broadcasts ignore quiet hours and non-transactional opt-outs (not SMS STOP)."},"requires_acknowledgement":{"type":"boolean","description":"Recipients must tap \"acknowledge\" in the portal (announcement_recipients.acknowledged_at)."},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When to send; send_announcement before this time schedules it and private.dispatch_scheduled_announcements sends it."},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the announcement stops showing on portal home screens."},{"type":"null"}]},"recipient_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Snapshot: number of announcement_recipients materialized at send time."},{"type":"null"}]},"author_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"author user id"},{"type":"null"}]}},"required":["title","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]}},"/v1/guest_passes":{"get":{"operationId":"list_guest_passes","summary":"List guest passes","description":"Gate and visitor passes residents or staff created, oldest first: guest, vehicle, validity window and status. Access codes are never returned. Filter by property, unit or status.\n\nNeeds one of: residents.read.","tags":["Guest passes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","used","revoked","expired"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/guest_passes/{id}/revoke":{"post":{"operationId":"revoke_guest_pass","summary":"Revoke a guest pass","description":"Revokes an active guest pass so the gate refuses it. A pass that is not active stays as it is. It sends no message to the resident or the guest. Returns the pass.\n\nNeeds one of: residents.write.","tags":["Guest passes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/surveys":{"get":{"operationId":"list_surveys","summary":"List surveys","description":"Resident surveys, oldest first, with counts only: question_count, invitation_count and response_count (submitted). Individual answers are not returned. Filter by property or status.\n\nNeeds one of: residents.read.","tags":["Surveys"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","active","closed"]}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived records (default false).","type":["boolean","string"]},"description":"Include archived records (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/compliance_items":{"get":{"operationId":"list_compliance_items","summary":"List compliance items","description":"Compliance items (licenses, permits, inspections, certificates, insurance, recertifications) for the org, a property, unit, vendor or lease, oldest first. Each has a status (compliant, expiring_soon, expired, missing, pending_review, waived, superseded) and an expires_on or due_on date. Use deadline_before to find what is due or expires by a date; superseded items are left out unless status asks for them.\n\nNeeds one of: compliance.read.","tags":["Compliance items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"item_type","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"property_id","in":"query","required":false,"schema":{"description":"Items whose property is this one, including its units and leases.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Items whose property is this one, including its units and leases."},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"deadline_before","in":"query","required":false,"schema":{"description":"Only items whose expires_on or due_on is on or before this date.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only items whose expires_on or due_on is on or before this date."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read"]},"post":{"operationId":"create_compliance_items_row","summary":"Create a compliance item","description":"One compliance obligation instance for exactly one record (scope: the org itself, a property, unit, vendor or lease): a certificate, license, insurance, inspection, registration, disclosure or permit with issue/expiry/due dates, status, the supporting document and the AI document-audit result. Generated from compliance_requirements or added ad hoc. Renewals create a new item that supersedes the old one.\n\nInserts one row of compliance items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write.","tags":["Compliance items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requirement_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"requirement id"},{"type":"null"}]},"scope":{"type":"string","enum":["org","property","unit","vendor","lease"],"description":"scope"},"item_type":{"type":"string","enum":["certificate","license","insurance","inspection","registration","disclosure","permit","tax_form","other"],"description":"item type"},"name":{"type":"string","maxLength":100000,"description":"name"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"scope_property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Derived (trigger): property of the record (unit/lease resolve to their property), for access and per-property reporting."},{"type":"null"}]},"issuer":{"anyOf":[{"type":"string","maxLength":100000,"description":"issuer"},{"type":"null"}]},"reference_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Certificate / license / permit / registration number."},{"type":"null"}]},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last valid day of the certificate/license/policy (inclusive)."},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Deadline to complete an action (inspection, filing, disclosure delivery) when there is no expiry."},{"type":"null"}]},"waived_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"waived reason"},{"type":"null"}]},"waived_until":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Waiver end date; null = indefinite."},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},{"type":"null"}]},"insurance_policy_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"insurance policy id"},{"type":"null"}]},"vendor_insurance_policy_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor COI (00003 vendor_insurance_policies) satisfying a vendor insurance requirement."},{"type":"null"}]},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"responsible user id"},{"type":"null"}]},"supersedes_item_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The previous item this renewal replaces (that item is now superseded)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"household_certification_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Affordable housing (00019): the certification whose next annual recertification this item tracks (scope lease, due_on = next_recertification_due_on)."},{"type":"null"}]}},"required":["scope","item_type","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/compliance_items/{id}":{"get":{"operationId":"get_compliance_item","summary":"Get a compliance item","description":"One compliance item by id.\n\nNeeds one of: compliance.read.","tags":["Compliance items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read"]}},"/v1/insurance_certificates":{"get":{"operationId":"list_insurance_certificates","summary":"List commercial insurance certificates","description":"Certificates of insurance that commercial tenants submitted against their lease's insurance requirements, oldest first, with limits in integer cents, dates and review status (pending_review, accepted, rejected). Filter by lease, property or status.\n\nNeeds one of: leasing.read.","tags":["Insurance certificates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/insurance_requirements":{"get":{"operationId":"list_insurance_requirements","summary":"List commercial insurance requirements","description":"The insurance each commercial lease requires (coverage type, minimum limits in integer cents, endorsements), oldest first, with its status (pending, compliant, insufficient, expired, waived), the accepted certificate and when that certificate expires. Use it to see which tenants are out of compliance.\n\nNeeds one of: leasing.read.","tags":["Insurance requirements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/cam_reconciliations":{"get":{"operationId":"list_cam_reconciliations","summary":"List CAM reconciliations","description":"Annual common area maintenance (CAM) reconciliations per pool, oldest first: the period, status (draft, calculated, approved, posted, voided) and totals in integer cents (actual and recoverable expenses, total due, estimates billed, net true-up: positive means tenants owe more).\n\nNeeds one of: receivables.read.","tags":["CAM reconciliations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"cam_pool_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_statements":{"get":{"operationId":"list_cam_statements","summary":"List CAM statements","description":"Per-tenant CAM reconciliation statements, oldest first, with their status (draft, reviewed, sent) and dates. Amounts live on the reconciliation (list_cam_reconciliations).\n\nNeeds one of: receivables.read.","tags":["CAM statements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"cam_reconciliation_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/utility_accounts":{"get":{"operationId":"list_utility_accounts","summary":"List utility accounts","description":"Utility service accounts (electric, gas, water, ...) for properties and units, oldest first: provider, meter, service address, status and whether the account is master metered or on autopay. The provider account number is never returned.\n\nNeeds one of: properties.read.","tags":["Utility accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"utility_type","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]},"post":{"operationId":"create_utility_accounts_row","summary":"Create an utility account","description":"A utility service account at a property (master / common area, unit_id null) or a unit. Who is responsible over time is utility_account_responsibilities; bills received are utility_bills_received.\n\nInserts one row of utility accounts in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Utility accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"utility_meter_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility meter id"},{"type":"null"}]},"utility_provider_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility provider id"},"utility_type":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"],"description":"utility type"},"account_number_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"Last 4 characters of the provider account number (masked). The full number lives only in the secrets vault (account_number_vault_ref)."},{"type":"null"}]},"service_address":{"anyOf":[{"type":"string","maxLength":100000,"description":"service address"},{"type":"null"}]},"opened_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opened on"},{"type":"null"}]},"is_master_metered":{"type":"boolean","description":"Serves several units through one meter; the cost is typically recovered by RUBS or submeters."},"is_autopay":{"type":"boolean","description":"is autopay"},"default_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Expense account bills on this account are coded to (e.g. 6410 Water & Sewer)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"auto_switch_on_move":{"type":"boolean","description":"A unit account that goes to the resident at move-in and back to the owner at move-out: public.sync_utility_account_holders keeps its responsibilities in step with the unit's leases."}},"required":["property_id","utility_provider_id","utility_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_billing_runs":{"get":{"operationId":"list_utility_billing_runs","summary":"List utility billing runs","description":"Utility rebilling (RUBS / submetering) runs per property and period, oldest first, with status (draft, calculated, approved, posted, voided) and totals in integer cents: total bill, common area, allocated, billed to residents, admin fees, absorbed and unrecovered.\n\nNeeds one of: receivables.read.","tags":["Utility billing runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"utility_type","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/hap_contracts":{"get":{"operationId":"list_hap_contracts","summary":"List HAP contracts","description":"Housing Assistance Payments contracts with housing authorities, oldest first. Project-based contracts cover many units of a property; a tenant-based (HCV) contract covers one lease. Includes the contract number, status, term dates, payment standard in integer cents and the housing authority contact that pays the subsidy.\n\nNeeds one of: affordable.read.","tags":["HAP contracts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/documents":{"get":{"operationId":"list_documents","summary":"List documents","description":"Document metadata the key can read, oldest first: title, category (lease, addendum, notice, insurance_certificate, invoice, legal, ...), file name and type, size in bytes, visibility, dates and links (the records each document is about). The file itself is not returned. Filter by category, property, or one linked record with record_type and record_id. Archived documents are left out unless include_archived is true.\n\nNeeds one of: documents.read.","tags":["Documents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"property_id","in":"query","required":false,"schema":{"description":"Documents linked to this property or to any of its records.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Documents linked to this property or to any of its records."},{"name":"record_type","in":"query","required":false,"schema":{"description":"With record_id: documents linked to this record.","type":"string","enum":["property","building","unit","lease","contact","owner","vendor","work_order","service_request","inspection","bill","owner_statement","management_agreement","eviction_case","task"]},"description":"With record_id: documents linked to this record."},{"name":"record_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"include_archived","in":"query","required":false,"schema":{"description":"Include archived documents (default false).","type":["boolean","string"]},"description":"Include archived documents (default false)."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]},"post":{"operationId":"create_documents_row","summary":"Create a document","description":"Every file the organization keeps: leases, notices, invoices, receipts, W-9s, insurance certificates, licenses, inspection reports, IDs, photos. Bytes live in Supabase Storage (storage_bucket/storage_path, path prefixed with org_id). What a document is about is in document_links. AI extraction (OCR text, structured fields for invoices, certificates, leases, property details) lands in extracted_text, ai_extraction and document_extracted_fields.\n\nInserts one row of documents in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: documents.write.","tags":["Documents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"category":{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"category"},"storage_bucket":{"type":"string","maxLength":100000,"description":"Storage bucket holding the bytes: documents (the library) or attachments (a message attachment filed as a document). Immutable after insert."},"storage_path":{"type":"string","maxLength":100000,"description":"Object path inside storage_bucket; always starts with \"<org_id>/\" (checked) and never changes after insert (trigger documents_guard_locked). Storage read policies grant an object only through a documents row in the same org."},"file_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"file name"},{"type":"null"}]},"mime_type":{"type":"string","maxLength":100000,"description":"mime type"},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"size bytes"},{"type":"null"}]},"page_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"page count"},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string","maxLength":100000,"description":"Lowercase hex SHA-256 of the file bytes: duplicate detection and tamper evidence for signed documents."},{"type":"null"}]},"visibility":{"type":"string","enum":["internal","shared_with_tenant","shared_with_owner","shared_with_vendor","shared_with_all_parties"],"description":"Portal sharing (see type comment). Staff visibility is governed by documents.read and property access."},"uploaded_by_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Contact on whose behalf a portal user uploaded the file (tenant renters insurance, vendor COI or invoice)."},{"type":"null"}]},"source":{"type":"string","enum":["upload","generated","signed","scanned","email","sms","import","integration"],"description":"How the file arrived: upload, generated (rendered from a template), signed (executed e-sign copy), scanned, email (inbound attachment), sms (MMS), import, integration."},"supersedes_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Previous version of this document (version chain)."},{"type":"null"}]},"document_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date printed on the document (invoice date, notice date, certificate issue date), as entered or extracted."},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Expiry printed on the document (certificate, license, ID), as entered or extracted."},{"type":"null"}]},"extracted_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Full OCR / text layer, for search and AI retrieval (embeddings in ai.embeddings)."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"setup_uploaded_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Set when the Add property wizard uploaded the file (public.mark_setup_upload). create_property_from_setup clears it when it files the document under the property. private.archive_abandoned_setup_uploads archives a document that is still set and unlinked after 24 hours."},{"type":"null"}]},"folder":{"anyOf":[{"type":"string","enum":["property_acquisition","ownership_entity","loans_financing","accounting_financials","residents_leasing","taxes_assessments","utilities","insurance","vendors_contracts","building_systems","capital_projects","compliance_regulatory","other"],"description":"Navigation folder; set from the category when empty (private.document_folder_for) and correctable by people. The original file and file_name never change."},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Standard name such as \"Stevenson Commons - Water Bill - 2026-09\", set from the property, category and document date when empty; people can edit it."},{"type":"null"}]}},"required":["title","storage_path","mime_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/documents/{id}":{"get":{"operationId":"get_document","summary":"Get a document's metadata","description":"One document's metadata and links by id. The file itself is not returned.\n\nNeeds one of: documents.read.","tags":["Documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]},"patch":{"operationId":"update_documents_row","summary":"Update a document","description":"Every file the organization keeps: leases, notices, invoices, receipts, W-9s, insurance certificates, licenses, inspection reports, IDs, photos. Bytes live in Supabase Storage (storage_bucket/storage_path, path prefixed with org_id). What a document is about is in document_links. AI extraction (OCR text, structured fields for invoices, certificates, leases, property details) lands in extracted_text, ai_extraction and document_extracted_fields.\n\nChanges the given fields of one row of documents and returns it. Fields left out stay as they are.\n\nNeeds one of: documents.write.","tags":["Documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"category":{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"category"},"storage_bucket":{"type":"string","maxLength":100000,"description":"Storage bucket holding the bytes: documents (the library) or attachments (a message attachment filed as a document). Immutable after insert."},"storage_path":{"type":"string","maxLength":100000,"description":"Object path inside storage_bucket; always starts with \"<org_id>/\" (checked) and never changes after insert (trigger documents_guard_locked). Storage read policies grant an object only through a documents row in the same org."},"file_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"file name"},{"type":"null"}]},"mime_type":{"type":"string","maxLength":100000,"description":"mime type"},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"size bytes"},{"type":"null"}]},"page_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"page count"},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string","maxLength":100000,"description":"Lowercase hex SHA-256 of the file bytes: duplicate detection and tamper evidence for signed documents."},{"type":"null"}]},"visibility":{"type":"string","enum":["internal","shared_with_tenant","shared_with_owner","shared_with_vendor","shared_with_all_parties"],"description":"Portal sharing (see type comment). Staff visibility is governed by documents.read and property access."},"uploaded_by_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Contact on whose behalf a portal user uploaded the file (tenant renters insurance, vendor COI or invoice)."},{"type":"null"}]},"source":{"type":"string","enum":["upload","generated","signed","scanned","email","sms","import","integration"],"description":"How the file arrived: upload, generated (rendered from a template), signed (executed e-sign copy), scanned, email (inbound attachment), sms (MMS), import, integration."},"supersedes_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Previous version of this document (version chain)."},{"type":"null"}]},"document_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date printed on the document (invoice date, notice date, certificate issue date), as entered or extracted."},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Expiry printed on the document (certificate, license, ID), as entered or extracted."},{"type":"null"}]},"extracted_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Full OCR / text layer, for search and AI retrieval (embeddings in ai.embeddings)."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"setup_uploaded_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Set when the Add property wizard uploaded the file (public.mark_setup_upload). create_property_from_setup clears it when it files the document under the property. private.archive_abandoned_setup_uploads archives a document that is still set and unlinked after 24 hours."},{"type":"null"}]},"folder":{"anyOf":[{"type":"string","enum":["property_acquisition","ownership_entity","loans_financing","accounting_financials","residents_leasing","taxes_assessments","utilities","insurance","vendors_contracts","building_systems","capital_projects","compliance_regulatory","other"],"description":"Navigation folder; set from the category when empty (private.document_folder_for) and correctable by people. The original file and file_name never change."},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Standard name such as \"Stevenson Commons - Water Bill - 2026-09\", set from the property, category and document date when empty; people can edit it."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/eviction_cases":{"get":{"operationId":"list_eviction_cases","summary":"List eviction cases","description":"Eviction cases, oldest first, as a status summary: the lease, unit and property, status, reason, court and case number, the dates of each step (notice served, filed, judgment, writ, lockout, possession, settled, dismissed, closed) and amounts in integer cents (balance at filing, claimed, awarded). Filter by status, property or lease.\n\nNeeds one of: legal.read.","tags":["Eviction cases"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"property_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"lease_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/eviction_cases/{id}":{"get":{"operationId":"get_eviction_case","summary":"Get an eviction case","description":"One eviction case's status summary by id.\n\nNeeds one of: legal.read.","tags":["Eviction cases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]},"patch":{"operationId":"update_eviction_cases_row","summary":"Update an eviction case","description":"An eviction / unlawful detainer case against a lease. Status machine (see eviction_status_transitions): pending -> notice_served -> filed -> hearing_scheduled -> judgment -> writ -> possession -> closed, with dismissed and settled branches. Change status only with advance_eviction_case(); every change is logged in eviction_case_events. Property and unit are copied from the lease.\n\nChanges the given fields of one row of eviction cases and returns it. Fields left out stay as they are.\n\nNeeds one of: legal.write.","tags":["Eviction cases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"reference_number":{"type":"string","maxLength":100000,"description":"Internal case number, e.g. EV-2026-0007 (generated per org)."},"reason":{"type":"string","enum":["nonpayment","holdover","breach","nuisance","illegal_activity","no_fault","other"],"description":"nonpayment of rent, holdover (stayed past the end of tenancy), breach of lease terms, nuisance, illegal_activity, no_fault (owner move-in, substantial rehab, etc.), other."},"reason_details":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason details"},{"type":"null"}]},"opened_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opened on"},"attorney_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Attorney handling the case (a contact)."},{"type":"null"}]},"attorney_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Law firm as a vendor, for paying its bills."},{"type":"null"}]},"court_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"court name"},{"type":"null"}]},"court_county":{"anyOf":[{"type":"string","maxLength":100000,"description":"court county"},{"type":"null"}]},"court_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"State / province of the court (e.g. CA)."},{"type":"null"}]},"case_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Court docket number assigned at filing."},{"type":"null"}]},"balance_at_filing_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tenant ledger balance when the case was filed, minor units (snapshot)."},{"type":"null"}]},"amount_claimed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Money damages requested in the complaint (rent, fees), minor units."},{"type":"null"}]},"amount_awarded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Money judgment awarded for rent and damages, minor units (excluding attorney fees and costs, which have their own columns)."},{"type":"null"}]},"attorney_fees_awarded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"attorney fees awarded cents"},{"type":"null"}]},"court_costs_awarded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"court costs awarded cents"},{"type":"null"}]},"notice_served_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice served on"},{"type":"null"}]},"filed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"filed on"},{"type":"null"}]},"judgment_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"judgment on"},{"type":"null"}]},"judgment_for":{"anyOf":[{"type":"string","enum":["landlord","tenant","split"],"description":"Who prevailed: landlord, tenant or split."},{"type":"null"}]},"writ_issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"writ issued on"},{"type":"null"}]},"lockout_scheduled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the sheriff / marshal is scheduled to execute the writ."},{"type":"null"}]},"possession_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the unit was recovered (tenant vacated or lockout executed)."},{"type":"null"}]},"settled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"settled on"},{"type":"null"}]},"settlement_terms":{"anyOf":[{"type":"string","maxLength":100000,"description":"settlement terms"},{"type":"null"}]},"dismissed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"dismissed on"},{"type":"null"}]},"close_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"close reason"},{"type":"null"}]},"is_tenant_represented":{"type":"boolean","description":"is tenant represented"},"is_on_hold":{"type":"boolean","description":"Paused (bankruptcy stay, rental assistance application pending, moratorium)."},"hold_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"hold reason"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/vendor_insurance_policies":{"get":{"operationId":"list_vendor_insurance_policies","summary":"List vendor insurance policies","description":"Insurance policies vendors have on file (general liability, workers' comp, auto, ...), oldest first, with carrier, limits in integer cents, effective and expiry dates, whether the org is additional insured, and review status (pending_review, verified, rejected). Use expires_before to find vendors whose coverage lapses.\n\nNeeds one of: contacts.read, payables.read, maintenance.read.","tags":["Vendor insurance policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"vendor_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"review_status","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"expires_before","in":"query","required":false,"schema":{"description":"Only policies that expire on or before this date.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only policies that expire on or before this date."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read","maintenance.read"]}},"/v1/agents":{"get":{"operationId":"list_agents","summary":"List AI agents","description":"The AI agents (Inbox, Collections, Renewals, Month-end close, Lease compliance check, ...) with key, name, description, whether the org has turned each on for scheduled runs, its cron schedule in the org's time zone and the permission needed to start a run. Agents only suggest: each run writes proposals that a person approves or rejects. Use a key with request_agent_run, list_agent_runs and list_agent_proposals.\n\nAny key may call it.","tags":["Agents"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/agent_runs":{"get":{"operationId":"list_agent_runs","summary":"List agent runs","description":"Runs of the AI agents, oldest first: trigger (schedule, event, manual, interactive), status (running, succeeded, failed, budget_reached, skipped, timed_out), timing, model usage, estimated cost in millicents (1/1000 of a cent), the number of proposals created and dropped, and the gaps the agent reported as insufficient data. Needs org admin access.\n\nNeeds one of: org.admin.","tags":["Agent runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"agent_key","in":"query","required":false,"schema":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/agent_runs/{id}":{"get":{"operationId":"get_agent_run","summary":"Get an agent run","description":"One agent run by id. Use list_agent_proposals with run_id for what it suggested.\n\nNeeds one of: org.admin.","tags":["Agent runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/agent_proposals":{"get":{"operationId":"list_agent_proposals","summary":"List agent proposals","description":"Suggestions the AI agents made that the key may see, oldest first: the action, its target record (target_type and target_id), a summary, the agent's rationale and confidence (0-1), the verifier's status and notes, the payload that approval would apply, and the decision. Status defaults to pending (waiting for a person). Use get_agent_proposal for the cited evidence and report figures.\n\nNeeds one of: banking.read, banking.write, communications.write, compliance.write, contacts.write, gl.close_period, gl.read, imports.run, leasing.write, maintenance.write, owners.write, payables.read, properties.write, receivables.read, receivables.write, reports.read, settings.write.","tags":["Agent proposals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"default":"pending","description":"pending (default), approved, rejected, expired, failed, applied, or all.","type":"string","maxLength":100},"description":"pending (default), approved, rejected, expired, failed, applied, or all."},{"name":"agent_key","in":"query","required":false,"schema":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*$"}},{"name":"run_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"action_type","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write","communications.write","compliance.write","contacts.write","gl.close_period","gl.read","imports.run","leasing.write","maintenance.write","owners.write","payables.read","properties.write","receivables.read","receivables.write","reports.read","settings.write"]}},"/v1/agent_proposals/{id}":{"get":{"operationId":"get_agent_proposal","summary":"Get an agent proposal with its evidence","description":"One agent proposal by id with its evidence (each cited record and the exact field values the agent used) and figures (each number checked against the app's report: agent_value, report_value, is_match). Money in field values and figures with unit cents is integer cents.\n\nNeeds one of: banking.read, banking.write, communications.write, compliance.write, contacts.write, gl.close_period, gl.read, imports.run, leasing.write, maintenance.write, owners.write, payables.read, properties.write, receivables.read, receivables.write, reports.read, settings.write.","tags":["Agent proposals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write","communications.write","compliance.write","contacts.write","gl.close_period","gl.read","imports.run","leasing.write","maintenance.write","owners.write","payables.read","properties.write","receivables.read","receivables.write","reports.read","settings.write"]}},"/v1/agents/{agent_key}/runs":{"post":{"operationId":"request_agent_run","summary":"Request an agent run","description":"Queues a Run now of one agent, as the Run now button does: the agent reads the data and writes proposals for a person to approve; it never changes data or sends anything itself. Scope it to property_ids, else the agent's configured scope. A request with the same parameters that is still waiting is reused. The scheduler starts it within about a minute. Returns the run request; its run_id is set once the run starts.\n\nNeeds one of: settings.write, imports.run.","tags":["Agents"],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_]*$","description":"Agent key from list_agents."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write","imports.run"]}},"/v1/agent_proposals/{id}/reject":{"post":{"operationId":"reject_agent_proposal","summary":"Reject an agent proposal","description":"Rejects one pending agent proposal, with an optional reason. Nothing is applied. Approving is done in the app, because an approved proposal can send a message or record money.\n\nNeeds one of: banking.read, banking.write, communications.write, compliance.write, contacts.write, gl.close_period, gl.read, imports.run, leasing.write, maintenance.write, owners.write, payables.read, properties.write, receivables.read, receivables.write, reports.read, settings.write.","tags":["Agent proposals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write","communications.write","compliance.write","contacts.write","gl.close_period","gl.read","imports.run","leasing.write","maintenance.write","owners.write","payables.read","properties.write","receivables.read","receivables.write","reports.read","settings.write"]}},"/v1/reports":{"get":{"operationId":"list_reports","summary":"List reports","description":"The reports this key may run (rent roll, aged receivables, owner statements, trial balance, occupancy, work orders and more), with key, title, category, description, the permission each needs and its parameters (name, Postgres type, required). Use a report's key and parameters with run_report. Prefer a report over adding up rows yourself: reports give the same figures as the app.\n\nNeeds one of: reports.read.","tags":["Reports"],"parameters":[{"name":"category","in":"query","required":false,"schema":{"description":"Only this category, e.g. financial, receivables, rent_roll_occupancy, maintenance.","type":"string","maxLength":100},"description":"Only this category, e.g. financial, receivables, rent_roll_occupancy, maintenance."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/reports/{key}":{"get":{"operationId":"run_report","summary":"Run a report","description":"Runs one report from list_reports and returns { data: rows, columns, truncated }. Pass each report parameter by its name from list_reports (for example as_of=2026-10-31, from, to, property_ids as a comma-separated list or array, owner_id); leave one out to use the report's default (for filters that means all). Amounts are integer cents. At most 5000 rows are returned; truncated is true when there were more, so narrow the parameters.\n\nNeeds one of: reports.read.","tags":["Reports"],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","maxLength":100,"pattern":"^[a-z_][a-z0-9_]*$","description":"Report key from list_reports, e.g. rent_roll."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/events":{"get":{"operationId":"list_events","summary":"List events","description":"Things that happened in the org (lease.created, application.submitted, work order and payment events, ...), oldest first, each with type, occurred_at, the ids of the records involved and a data object. Filter by type or since (occurred_at at or after an instant) to poll for new activity; list_event_types lists the types. These are the same events webhook endpoints receive.\n\nNeeds one of: integrations.write, workflows.write.","tags":["Events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"type","in":"query","required":false,"schema":{"description":"Event type, e.g. lease.created.","type":"string","maxLength":100},"description":"Event type, e.g. lease.created."},{"name":"since","in":"query","required":false,"schema":{"description":"Only events at or after this instant.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"description":"Only events at or after this instant."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write","workflows.write"]}},"/v1/event_types":{"get":{"operationId":"list_event_types","summary":"List event types","description":"Every event type a webhook endpoint can subscribe to and list_events can filter by, with its area and a description.\n\nNeeds one of: integrations.write, workflows.write.","tags":["Event types"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write","workflows.write"]}},"/v1/webhook_endpoints":{"get":{"operationId":"list_webhook_endpoints","summary":"List webhook endpoints","description":"The org's webhook endpoints, oldest first, with URL, status (active, failing, disabled), the event types each receives, the first characters of its signing secret and its recent delivery health.\n\nNeeds one of: integrations.write.","tags":["Webhook endpoints"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]},"post":{"operationId":"create_webhook_endpoint","summary":"Create a webhook endpoint","description":"Registers an HTTPS URL to receive the given event types (see list_event_types) and returns the endpoint with `secret`, the signing secret for verifying deliveries. The secret is returned only here, once: store it.\n\nNeeds one of: integrations.write.","tags":["Webhook endpoints"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri","description":"HTTPS URL that receives POSTed events."},"events":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Event types to send, e.g. [\"lease.created\"]."},"description":{"type":"string","maxLength":500}},"required":["url","events"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/webhook_endpoints/{id}":{"delete":{"operationId":"delete_webhook_endpoint","summary":"Delete a webhook endpoint","description":"Deletes a webhook endpoint and its signing secret; it receives no more events. Refused while an automation step still calls it.\n\nNeeds one of: integrations.write.","tags":["Webhook endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]},"get":{"operationId":"get_webhook_endpoints_row","summary":"Get a webhook endpoint","description":"Outbound webhook subscriptions: HTTPS URLs that receive signed POSTs for the event keys in webhook_endpoint_events. The signing secret lives in Supabase Vault (secret_vault_ref); deliveries are logged in webhook_deliveries. Auto-set to failing after repeated errors and disabled after many.\n\nOne row of webhook endpoints by id, with every column the API shows.\n\nNeeds one of: integrations.write.","tags":["Webhook endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/webhook_endpoints/{id}/deliveries":{"get":{"operationId":"list_webhook_deliveries","summary":"List a webhook endpoint's deliveries","description":"Delivery attempts to one webhook endpoint, oldest first: the event, status (pending, succeeded, failed, abandoned), attempts, the last HTTP status and error. Use it to debug a failing endpoint.\n\nNeeds one of: integrations.write.","tags":["Webhook endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","succeeded","failed","abandoned"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/abandoned_home_case_events":{"get":{"operationId":"list_abandoned_home_case_events","summary":"List abandoned home case events","description":"Timeline of an abandoned home case, insert-only: status changes (to_status set; from_status null on the opening row), holds and free notes (to_status null). Written only by the case RPCs.\n\nPages through the abandoned home case events table of the organization, oldest first. Filters: id, abandoned_home_case_id, from_status, to_status, event_on, actor_user_id.\n\nNeeds one of: legal.read.","tags":["Abandoned home case events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"abandoned_home_case_id","in":"query","required":false,"schema":{"description":"Only rows whose abandoned_home_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose abandoned_home_case_id equals this."},{"name":"from_status","in":"query","required":false,"schema":{"description":"Only rows whose from_status equals this.","type":"string","enum":["open","notice_posted","waiting_period","lien_filed","sale_scheduled","sold","title_to_park","removed","reclaimed","closed"]},"description":"Only rows whose from_status equals this."},{"name":"to_status","in":"query","required":false,"schema":{"description":"Only rows whose to_status equals this.","type":"string","enum":["open","notice_posted","waiting_period","lien_filed","sale_scheduled","sold","title_to_park","removed","reclaimed","closed"]},"description":"Only rows whose to_status equals this."},{"name":"event_on","in":"query","required":false,"schema":{"description":"Only rows whose event_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose event_on equals this."},{"name":"actor_user_id","in":"query","required":false,"schema":{"description":"Only rows whose actor_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose actor_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/abandoned_home_case_events/{id}":{"get":{"operationId":"get_abandoned_home_case_events_row","summary":"Get an abandoned home case event","description":"Timeline of an abandoned home case, insert-only: status changes (to_status set; from_status null on the opening row), holds and free notes (to_status null). Written only by the case RPCs.\n\nOne row of abandoned home case events by id, with every column the API shows.\n\nNeeds one of: legal.read.","tags":["Abandoned home case events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/abandoned_home_cases":{"get":{"operationId":"list_abandoned_home_cases","summary":"List abandoned home cases","description":"A park home left behind by its owner, from the evidence through notice, the waiting period and a lien to a sale, title to the park, removal, or the owner reclaiming it. State law varies: the case records the dates and steps staff enter and never decides that a step is legally sufficient. No money posts from a case. Change status only with advance_abandoned_home_case(); every change is logged in abandoned_home_case_events. Staff read with legal.read and write through the RPCs with legal.write on the property.\n\nPages through the abandoned home cases table of the organization, oldest first. Filters: id, property_id, unit_id, park_home_id, lease_id, owner_contact_id, status, opened_on, rent_unpaid, utilities_off, owner_unreachable, belongings_removed, mail_accumulating, notice_posted_on, notice_mailed_on, notice_method, notice_expires_on, lien_filed_on, sale_scheduled_on, sold_on, buyer_contact_id, title_transferred_on, removed_on, reclaimed_on, closed_on, assigned_user_id, is_on_hold, created_by.\n\nNeeds one of: legal.read.","tags":["Abandoned home cases"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"park_home_id","in":"query","required":false,"schema":{"description":"Only rows whose park_home_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose park_home_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"owner_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_contact_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","notice_posted","waiting_period","lien_filed","sale_scheduled","sold","title_to_park","removed","reclaimed","closed"]},"description":"Only rows whose status equals this."},{"name":"opened_on","in":"query","required":false,"schema":{"description":"Only rows whose opened_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose opened_on equals this."},{"name":"rent_unpaid","in":"query","required":false,"schema":{"description":"Only rows whose rent_unpaid equals this.","type":"boolean"},"description":"Only rows whose rent_unpaid equals this."},{"name":"utilities_off","in":"query","required":false,"schema":{"description":"Only rows whose utilities_off equals this.","type":"boolean"},"description":"Only rows whose utilities_off equals this."},{"name":"owner_unreachable","in":"query","required":false,"schema":{"description":"Only rows whose owner_unreachable equals this.","type":"boolean"},"description":"Only rows whose owner_unreachable equals this."},{"name":"belongings_removed","in":"query","required":false,"schema":{"description":"Only rows whose belongings_removed equals this.","type":"boolean"},"description":"Only rows whose belongings_removed equals this."},{"name":"mail_accumulating","in":"query","required":false,"schema":{"description":"Only rows whose mail_accumulating equals this.","type":"boolean"},"description":"Only rows whose mail_accumulating equals this."},{"name":"notice_posted_on","in":"query","required":false,"schema":{"description":"Only rows whose notice_posted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose notice_posted_on equals this."},{"name":"notice_mailed_on","in":"query","required":false,"schema":{"description":"Only rows whose notice_mailed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose notice_mailed_on equals this."},{"name":"notice_method","in":"query","required":false,"schema":{"description":"Only rows whose notice_method equals this.","type":"string","enum":["personal","substitute","posting_and_mailing","certified_mail","first_class_mail","email","portal","process_server","sheriff"]},"description":"Only rows whose notice_method equals this."},{"name":"notice_expires_on","in":"query","required":false,"schema":{"description":"Only rows whose notice_expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose notice_expires_on equals this."},{"name":"lien_filed_on","in":"query","required":false,"schema":{"description":"Only rows whose lien_filed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose lien_filed_on equals this."},{"name":"sale_scheduled_on","in":"query","required":false,"schema":{"description":"Only rows whose sale_scheduled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sale_scheduled_on equals this."},{"name":"sold_on","in":"query","required":false,"schema":{"description":"Only rows whose sold_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sold_on equals this."},{"name":"buyer_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose buyer_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose buyer_contact_id equals this."},{"name":"title_transferred_on","in":"query","required":false,"schema":{"description":"Only rows whose title_transferred_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose title_transferred_on equals this."},{"name":"removed_on","in":"query","required":false,"schema":{"description":"Only rows whose removed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose removed_on equals this."},{"name":"reclaimed_on","in":"query","required":false,"schema":{"description":"Only rows whose reclaimed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reclaimed_on equals this."},{"name":"closed_on","in":"query","required":false,"schema":{"description":"Only rows whose closed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose closed_on equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"is_on_hold","in":"query","required":false,"schema":{"description":"Only rows whose is_on_hold equals this.","type":"boolean"},"description":"Only rows whose is_on_hold equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/abandoned_home_cases/{id}":{"get":{"operationId":"get_abandoned_home_cases_row","summary":"Get an abandoned home case","description":"A park home left behind by its owner, from the evidence through notice, the waiting period and a lien to a sale, title to the park, removal, or the owner reclaiming it. State law varies: the case records the dates and steps staff enter and never decides that a step is legally sufficient. No money posts from a case. Change status only with advance_abandoned_home_case(); every change is logged in abandoned_home_case_events. Staff read with legal.read and write through the RPCs with legal.write on the property.\n\nOne row of abandoned home cases by id, with every column the API shows.\n\nNeeds one of: legal.read.","tags":["Abandoned home cases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/academic_terms":{"get":{"operationId":"list_academic_terms","summary":"List academic terms","description":"Academic term a student-housing property leases for (e.g. \"Academic Year 2027-28\"), with its lease dates and move-in / move-out days. property_id null = applies to every student property of the organization.\n\nPages through the academic terms table of the organization, oldest first. Filters: id, property_id, term_type, starts_on, ends_on, lease_starts_on, lease_ends_on, move_in_on, move_out_on, applications_open_on, created_by.\n\nNeeds one of: leasing.write.","tags":["Academic terms"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"term_type","in":"query","required":false,"schema":{"description":"Only rows whose term_type equals this.","type":"string","enum":["fall","spring","summer","academic_year","full_year","custom"]},"description":"Only rows whose term_type equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"lease_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose lease_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose lease_starts_on equals this."},{"name":"lease_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose lease_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose lease_ends_on equals this."},{"name":"move_in_on","in":"query","required":false,"schema":{"description":"Only rows whose move_in_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose move_in_on equals this."},{"name":"move_out_on","in":"query","required":false,"schema":{"description":"Only rows whose move_out_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose move_out_on equals this."},{"name":"applications_open_on","in":"query","required":false,"schema":{"description":"Only rows whose applications_open_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose applications_open_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/academic_terms/{id}":{"get":{"operationId":"get_academic_terms_row","summary":"Get an academic term","description":"Academic term a student-housing property leases for (e.g. \"Academic Year 2027-28\"), with its lease dates and move-in / move-out days. property_id null = applies to every student property of the organization.\n\nOne row of academic terms by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Academic terms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/access_requests":{"get":{"operationId":"list_access_requests","summary":"List access requests","description":"A request to enter one or more apartments in a time window, sent to their residents through an announcement (email, text, portal) and printable as a notice. Linked to the work order, inspection or violations it serves. Written through create_access_request.\n\nPages through the access requests table of the organization, oldest first. Filters: id, property_id, purpose, work_order_id, inspection_id, announcement_id, created_by.\n\nNeeds one of: maintenance.read.","tags":["Access requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["repair","inspection","violation","extermination","other"]},"description":"Only rows whose purpose equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"announcement_id","in":"query","required":false,"schema":{"description":"Only rows whose announcement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose announcement_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/access_requests/{id}":{"get":{"operationId":"get_access_requests_row","summary":"Get an access request","description":"A request to enter one or more apartments in a time window, sent to their residents through an announcement (email, text, portal) and printable as a notice. Linked to the work order, inspection or violations it serves. Written through create_access_request.\n\nOne row of access requests by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Access requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/accounting_entities":{"get":{"operationId":"list_accounting_entities","summary":"List accounting entities","description":"Separate sets of books inside one organization's ledger: the management company itself (exactly one per org, created automatically), owners, associations and investment funds. Every property belongs to one entity at a time (property_entity_assignments; current one in properties.accounting_entity_id) and every journal line is stamped with the entity of its fund, so balance sheets and P&Ls can be produced per entity. Each entity's lines balance within every journal entry (implied by the per-fund rule). Created and edited through create_accounting_entit\n\nPages through the accounting entities table of the organization, oldest first. Filters: id, kind, default_report_basis, owner_id, association_id, investment_entity_id, created_by.\n\nNeeds one of: gl.read.","tags":["Accounting entities"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["management_company","owner","association","investment_fund","other"]},"description":"Only rows whose kind equals this."},{"name":"default_report_basis","in":"query","required":false,"schema":{"description":"Only rows whose default_report_basis equals this.","type":"string","enum":["both","accrual","cash"]},"description":"Only rows whose default_report_basis equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/accounting_entities/{id}":{"get":{"operationId":"get_accounting_entities_row","summary":"Get an accounting entity","description":"Separate sets of books inside one organization's ledger: the management company itself (exactly one per org, created automatically), owners, associations and investment funds. Every property belongs to one entity at a time (property_entity_assignments; current one in properties.accounting_entity_id) and every journal line is stamped with the entity of its fund, so balance sheets and P&Ls can be produced per entity. Each entity's lines balance within every journal entry (implied by the per-fund rule). Created and edited through create_accounting_entit\n\nOne row of accounting entities by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Accounting entities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/accounting_period_entity_locks":{"get":{"operationId":"list_accounting_period_entity_locks","summary":"List accounting period entity locks","description":"The status of an accounting period for one set of books (accounting entity), on top of the organization-wide status in accounting_periods. The effective status is the stricter of the two. Written only by close_accounting_period_for_entity and reopen_accounting_period_for_entity; journal_lines_zzz_entity_period_lock refuses lines into a closed month of the entity.\n\nPages through the accounting period entity locks table of the organization, oldest first. Filters: id, accounting_period_id, accounting_entity_id, status, soft_closed_by, closed_by, reopened_by.\n\nNeeds one of: gl.read.","tags":["Accounting period entity locks"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"accounting_period_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_period_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_period_id equals this."},{"name":"accounting_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_entity_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","soft_closed","closed"]},"description":"Only rows whose status equals this."},{"name":"soft_closed_by","in":"query","required":false,"schema":{"description":"Only rows whose soft_closed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose soft_closed_by equals this."},{"name":"closed_by","in":"query","required":false,"schema":{"description":"Only rows whose closed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose closed_by equals this."},{"name":"reopened_by","in":"query","required":false,"schema":{"description":"Only rows whose reopened_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reopened_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/accounting_period_entity_locks/{id}":{"get":{"operationId":"get_accounting_period_entity_locks_row","summary":"Get an accounting period entity lock","description":"The status of an accounting period for one set of books (accounting entity), on top of the organization-wide status in accounting_periods. The effective status is the stricter of the two. Written only by close_accounting_period_for_entity and reopen_accounting_period_for_entity; journal_lines_zzz_entity_period_lock refuses lines into a closed month of the entity.\n\nOne row of accounting period entity locks by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Accounting period entity locks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/accounting_periods":{"get":{"operationId":"list_accounting_periods","summary":"List accounting periods","description":"Monthly accounting periods per organization. Posting is rejected into closed periods (and into any date on or before the last closed period); soft_closed periods accept postings only from users with gl.close_period. Periods are created automatically for a fiscal year when first needed. Closed periods always form a prefix of time (close in order, reopen in reverse order).\n\nPages through the accounting periods table of the organization, oldest first. Filters: id, starts_on, ends_on, status, soft_closed_by, closed_by, reopened_by.\n\nNeeds one of: gl.read.","tags":["Accounting periods"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","soft_closed","closed"]},"description":"Only rows whose status equals this."},{"name":"soft_closed_by","in":"query","required":false,"schema":{"description":"Only rows whose soft_closed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose soft_closed_by equals this."},{"name":"closed_by","in":"query","required":false,"schema":{"description":"Only rows whose closed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose closed_by equals this."},{"name":"reopened_by","in":"query","required":false,"schema":{"description":"Only rows whose reopened_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reopened_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/accounting_periods/{id}":{"get":{"operationId":"get_accounting_periods_row","summary":"Get an accounting period","description":"Monthly accounting periods per organization. Posting is rejected into closed periods (and into any date on or before the last closed period); soft_closed periods accept postings only from users with gl.close_period. Periods are created automatically for a fiscal year when first needed. Closed periods always form a prefix of time (close in order, reopen in reverse order).\n\nOne row of accounting periods by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Accounting periods"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/ach_export_entries":{"get":{"operationId":"list_ach_export_entries","summary":"List ach export entries","description":"One payment (exactly one of vendor_payment_id, owner_distribution_line_id) as a credit entry in a NACHA file, with the snapshot the file is built from. A payment has at most one entry in sent_to_bank; a rejected entry frees it for another file.\n\nPages through the ach export entries table of the organization, oldest first. Filters: id, ach_export_id, vendor_payment_id, owner_distribution_line_id, payee_contact_id, payee_bank_account_id, sec_code, status, resolved_by.\n\nNeeds one of: payables.read.","tags":["ACH export entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"ach_export_id","in":"query","required":false,"schema":{"description":"Only rows whose ach_export_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ach_export_id equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"owner_distribution_line_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_distribution_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_distribution_line_id equals this."},{"name":"payee_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose payee_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payee_contact_id equals this."},{"name":"payee_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose payee_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payee_bank_account_id equals this."},{"name":"sec_code","in":"query","required":false,"schema":{"description":"Only rows whose sec_code equals this.","type":"string","enum":["ppd","ccd"]},"description":"Only rows whose sec_code equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["sent_to_bank","rejected","returned"]},"description":"Only rows whose status equals this."},{"name":"resolved_by","in":"query","required":false,"schema":{"description":"Only rows whose resolved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resolved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/ach_export_entries/{id}":{"get":{"operationId":"get_ach_export_entries_row","summary":"Get an ach export entry","description":"One payment (exactly one of vendor_payment_id, owner_distribution_line_id) as a credit entry in a NACHA file, with the snapshot the file is built from. A payment has at most one entry in sent_to_bank; a rejected entry frees it for another file.\n\nOne row of ach export entries by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["ACH export entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/ach_exports":{"get":{"operationId":"list_ach_exports","summary":"List ach exports","description":"One NACHA file of ACH credits from one bank account: vendor payments and owner distribution lines already posted to the books, plus one balancing offset debit to the paying account per batch (PPD batch for individuals, CCD batch for businesses). Created by create_ach_export (who: created_by, when: created_at); the header fields, offset account and control totals are snapshots taken then, so the file rebuilds byte for byte. The web route /api/ach-exports/<id>/file builds the file and records its SHA-256 at the first download.\n\nPages through the ach exports table of the organization, oldest first. Filters: id, bank_account_id, effective_entry_on, offset_account_kind, is_balanced, first_downloaded_by, last_downloaded_by, rejected_by, created_by.\n\nNeeds one of: banking.read, owners.read, payables.read.","tags":["ACH exports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"effective_entry_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_entry_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_entry_on equals this."},{"name":"offset_account_kind","in":"query","required":false,"schema":{"description":"Only rows whose offset_account_kind equals this.","type":"string","enum":["checking","savings","money_market"]},"description":"Only rows whose offset_account_kind equals this."},{"name":"is_balanced","in":"query","required":false,"schema":{"description":"Only rows whose is_balanced equals this.","type":"boolean"},"description":"Only rows whose is_balanced equals this."},{"name":"first_downloaded_by","in":"query","required":false,"schema":{"description":"Only rows whose first_downloaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose first_downloaded_by equals this."},{"name":"last_downloaded_by","in":"query","required":false,"schema":{"description":"Only rows whose last_downloaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose last_downloaded_by equals this."},{"name":"rejected_by","in":"query","required":false,"schema":{"description":"Only rows whose rejected_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rejected_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","owners.read","payables.read"]}},"/v1/ach_exports/{id}":{"get":{"operationId":"get_ach_exports_row","summary":"Get an ach export","description":"One NACHA file of ACH credits from one bank account: vendor payments and owner distribution lines already posted to the books, plus one balancing offset debit to the paying account per batch (PPD batch for individuals, CCD batch for businesses). Created by create_ach_export (who: created_by, when: created_at); the header fields, offset account and control totals are snapshots taken then, so the file rebuilds byte for byte. The web route /api/ach-exports/<id>/file builds the file and records its SHA-256 at the first download.\n\nOne row of ach exports by id, with every column the API shows.\n\nNeeds one of: banking.read, owners.read, payables.read.","tags":["ACH exports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","owners.read","payables.read"]}},"/v1/addresses":{"get":{"operationId":"list_addresses","summary":"List addresses","description":"Postal addresses of contacts (mailing, previous residences, tax address). Property addresses are stored on properties itself.\n\nPages through the addresses table of the organization, oldest first. Filters: id, is_verified.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Addresses"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"is_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_verified equals this.","type":"boolean"},"description":"Only rows whose is_verified equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_addresses_row","summary":"Create an address","description":"Postal addresses of contacts (mailing, previous residences, tax address). Property addresses are stored on properties itself.\n\nInserts one row of addresses in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Addresses"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address_line1":{"type":"string","maxLength":100000,"description":"address line1"},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"type":"string","maxLength":100000,"description":"city"},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"State, province or region code, e.g. CA."},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"county":{"anyOf":[{"type":"string","maxLength":100000,"description":"county"},{"type":"null"}]},"country_code":{"type":"string","maxLength":100000,"description":"country code"},"latitude":{"anyOf":[{"type":"number","description":"latitude"},{"type":"null"}]},"longitude":{"anyOf":[{"type":"number","description":"longitude"},{"type":"null"}]}},"required":["address_line1","city"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/addresses/{id}":{"get":{"operationId":"get_addresses_row","summary":"Get an address","description":"Postal addresses of contacts (mailing, previous residences, tax address). Property addresses are stored on properties itself.\n\nOne row of addresses by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Addresses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]}},"/v1/adopted_signatures":{"get":{"operationId":"list_adopted_signatures","summary":"List adopted signatures","description":"A signed-in user's saved signature and initials (typed or drawn) in one organization, offered at their next signing there. One row per (org, user); images live in bucket documents under <org_id>/users/<user_id>/ (org-prefixed like every storage path).\n\nPages through the adopted signatures table of the organization, oldest first. Filters: id, user_id, signature_kind, initials_kind.\n\nNeeds one of: leasing.read.","tags":["Adopted signatures"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"signature_kind","in":"query","required":false,"schema":{"description":"Only rows whose signature_kind equals this.","type":"string","enum":["typed","drawn"]},"description":"Only rows whose signature_kind equals this."},{"name":"initials_kind","in":"query","required":false,"schema":{"description":"Only rows whose initials_kind equals this.","type":"string","enum":["typed","drawn"]},"description":"Only rows whose initials_kind equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/adopted_signatures/{id}":{"get":{"operationId":"get_adopted_signatures_row","summary":"Get an adopted signature","description":"A signed-in user's saved signature and initials (typed or drawn) in one organization, offered at their next signing there. One row per (org, user); images live in bucket documents under <org_id>/users/<user_id>/ (org-prefixed like every storage path).\n\nOne row of adopted signatures by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Adopted signatures"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/affordable_waitlist_entries":{"get":{"operationId":"list_affordable_waitlist_entries","summary":"List affordable waitlist entries","description":"A property's affordable housing waiting list in the order applications arrived (applied_at): the household, any admission preference and where the applicant stands. HUD reviews it in the Management and Occupancy Review.\n\nPages through the affordable waitlist entries table of the organization, oldest first. Filters: id, property_id, status, status_changed_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Affordable waitlist entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["waiting","offered","housed","withdrawn","removed"]},"description":"Only rows whose status equals this."},{"name":"status_changed_on","in":"query","required":false,"schema":{"description":"Only rows whose status_changed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose status_changed_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_affordable_waitlist_entries_row","summary":"Create an affordable waitlist entry","description":"A property's affordable housing waiting list in the order applications arrived (applied_at): the household, any admission preference and where the applicant stands. HUD reviews it in the Management and Occupancy Review.\n\nInserts one row of affordable waitlist entries in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Affordable waitlist entries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"applicant_name":{"type":"string","maxLength":100000,"description":"applicant name"},"household_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},"bedrooms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms"},{"type":"null"}]},"annual_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"annual income cents"},{"type":"null"}]},"preference":{"anyOf":[{"type":"string","maxLength":100000,"description":"Admission preference claimed, e.g. \"Homeless\", \"Displaced by disaster\", \"Working family\"."},{"type":"null"}]},"applied_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"applied at"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","applicant_name","household_size"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/affordable_waitlist_entries/{id}":{"get":{"operationId":"get_affordable_waitlist_entries_row","summary":"Get an affordable waitlist entry","description":"A property's affordable housing waiting list in the order applications arrived (applied_at): the household, any admission preference and where the applicant stands. HUD reviews it in the Management and Occupancy Review.\n\nOne row of affordable waitlist entries by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Affordable waitlist entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_affordable_waitlist_entries_row","summary":"Update an affordable waitlist entry","description":"A property's affordable housing waiting list in the order applications arrived (applied_at): the household, any admission preference and where the applicant stands. HUD reviews it in the Management and Occupancy Review.\n\nChanges the given fields of one row of affordable waitlist entries and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Affordable waitlist entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"applicant_name":{"type":"string","maxLength":100000,"description":"applicant name"},"household_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},"bedrooms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms"},{"type":"null"}]},"annual_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"annual income cents"},{"type":"null"}]},"preference":{"anyOf":[{"type":"string","maxLength":100000,"description":"Admission preference claimed, e.g. \"Homeless\", \"Displaced by disaster\", \"Working family\"."},{"type":"null"}]},"applied_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"applied at"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/amenities":{"get":{"operationId":"list_amenities","summary":"List amenities","description":"Organization-editable amenity catalog (Pool, In-unit laundry, Dishwasher, Covered parking...). Seeded with defaults per organization.\n\nPages through the amenities table of the organization, oldest first. Filters: id, category, scope.\n\nNeeds one of: properties.write, settings.write.","tags":["Amenities"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"category","in":"query","required":false,"schema":{"description":"Only rows whose category equals this.","type":"string","enum":["kitchen","laundry","parking","outdoor","community","fitness","security","accessibility","utilities","technology","pet","climate","storage","other"]},"description":"Only rows whose category equals this."},{"name":"scope","in":"query","required":false,"schema":{"description":"Only rows whose scope equals this.","type":"string","enum":["property","unit","both"]},"description":"Only rows whose scope equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]}},"/v1/amenities/{id}":{"get":{"operationId":"get_amenities_row","summary":"Get an amenity","description":"Organization-editable amenity catalog (Pool, In-unit laundry, Dishwasher, Covered parking...). Seeded with defaults per organization.\n\nOne row of amenities by id, with every column the API shows.\n\nNeeds one of: properties.write, settings.write.","tags":["Amenities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]}},"/v1/amenity_reservations/{id}":{"get":{"operationId":"get_amenity_reservations_row","summary":"Get an amenity reservation","description":"A booking of a reservable amenity by a homeowner or tenant. Requested/approved bookings cannot overlap. Fees and deposits post as charges on the booker's homeowner account or lease when approved.\n\nOne row of amenity reservations by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Amenity reservations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/announcement_audiences":{"get":{"operationId":"list_announcement_audiences","summary":"List announcement audiences","description":"Who an announcement goes to; several rows are unioned. all_tenants/all_owners/all_vendors = whole org (limited to properties the sender can access); property_/building_/unit_tenants = current lease tenants there; property_owners = current owners of the property; contact = one person.\n\nPages through the announcement audiences table of the organization, oldest first. Filters: id, announcement_id, audience_type, property_id, building_id, unit_id, contact_id.\n\nNeeds one of: communications.broadcast, communications.read.","tags":["Announcement audiences"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"announcement_id","in":"query","required":false,"schema":{"description":"Only rows whose announcement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose announcement_id equals this."},{"name":"audience_type","in":"query","required":false,"schema":{"description":"Only rows whose audience_type equals this.","type":"string","enum":["all_tenants","all_owners","all_vendors","property_tenants","property_owners","building_tenants","unit_tenants","contact"]},"description":"Only rows whose audience_type equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast","communications.read"]},"post":{"operationId":"create_announcement_audiences_row","summary":"Create an announcement audience","description":"Who an announcement goes to; several rows are unioned. all_tenants/all_owners/all_vendors = whole org (limited to properties the sender can access); property_/building_/unit_tenants = current lease tenants there; property_owners = current owners of the property; contact = one person.\n\nInserts one row of announcement audiences in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: communications.broadcast.","tags":["Announcement audiences"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"announcement_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"announcement id"},"audience_type":{"type":"string","enum":["all_tenants","all_owners","all_vendors","property_tenants","property_owners","building_tenants","unit_tenants","contact"],"description":"audience type"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]}},"required":["announcement_id","audience_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]}},"/v1/announcement_audiences/{id}":{"get":{"operationId":"get_announcement_audiences_row","summary":"Get an announcement audience","description":"Who an announcement goes to; several rows are unioned. all_tenants/all_owners/all_vendors = whole org (limited to properties the sender can access); property_/building_/unit_tenants = current lease tenants there; property_owners = current owners of the property; contact = one person.\n\nOne row of announcement audiences by id, with every column the API shows.\n\nNeeds one of: communications.broadcast, communications.read.","tags":["Announcement audiences"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast","communications.read"]},"delete":{"operationId":"delete_announcement_audiences_row","summary":"Delete an announcement audience","description":"Who an announcement goes to; several rows are unioned. all_tenants/all_owners/all_vendors = whole org (limited to properties the sender can access); property_/building_/unit_tenants = current lease tenants there; property_owners = current owners of the property; contact = one person.\n\nDeletes one row of announcement audiences. The database refuses it where other records still need the row.\n\nNeeds one of: communications.broadcast.","tags":["Announcement audiences"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]}},"/v1/announcement_recipients":{"get":{"operationId":"list_announcement_recipients","summary":"List announcement recipients","description":"Materialized recipient list of an announcement (one row per contact, deduplicated across audiences) with delivery and acknowledgement tracking. Per-channel detail is in notification_deliveries of notification_id.\n\nPages through the announcement recipients table of the organization, oldest first. Filters: id, announcement_id, contact_id, audience_id, lease_id, status, notification_id.\n\nNeeds one of: communications.read.","tags":["Announcement recipients"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"announcement_id","in":"query","required":false,"schema":{"description":"Only rows whose announcement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose announcement_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"audience_id","in":"query","required":false,"schema":{"description":"Only rows whose audience_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose audience_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","sent","delivered","failed","suppressed"]},"description":"Only rows whose status equals this."},{"name":"notification_id","in":"query","required":false,"schema":{"description":"Only rows whose notification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose notification_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/announcement_recipients/{id}":{"get":{"operationId":"get_announcement_recipients_row","summary":"Get an announcement recipient","description":"Materialized recipient list of an announcement (one row per contact, deduplicated across audiences) with delivery and acknowledgement tracking. Per-channel detail is in notification_deliveries of notification_id.\n\nOne row of announcement recipients by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Announcement recipients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/announcements/{id}":{"get":{"operationId":"get_announcements_row","summary":"Get an announcement","description":"Broadcast notices to many tenants/owners/vendors (water shut-off, policy change, holiday hours). Audiences in announcement_audiences; send_announcement() materializes announcement_recipients and enqueues a notification per recipient on each channel.\n\nOne row of announcements by id, with every column the API shows.\n\nNeeds one of: communications.broadcast, communications.read.","tags":["Announcements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast","communications.read"]},"patch":{"operationId":"update_announcements_row","summary":"Update an announcement","description":"Broadcast notices to many tenants/owners/vendors (water shut-off, policy change, holiday hours). Audiences in announcement_audiences; send_announcement() materializes announcement_recipients and enqueues a notification per recipient on each channel.\n\nChanges the given fields of one row of announcements and returns it. Fields left out stay as they are.\n\nNeeds one of: communications.broadcast.","tags":["Announcements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"body":{"type":"string","maxLength":100000,"description":"body"},"body_html":{"anyOf":[{"type":"string","maxLength":100000,"description":"body html"},{"type":"null"}]},"channels":{"type":"array","items":{"type":"string","enum":["in_app","push","email","sms","voice"]},"description":"Channels to deliver on (in_app shows on the portal feed; push/email/sms go through notification_deliveries)."},"priority":{"type":"string","enum":["low","normal","high","urgent"],"description":"priority"},"is_emergency":{"type":"boolean","description":"Emergency broadcasts ignore quiet hours and non-transactional opt-outs (not SMS STOP)."},"requires_acknowledgement":{"type":"boolean","description":"Recipients must tap \"acknowledge\" in the portal (announcement_recipients.acknowledged_at)."},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When to send; send_announcement before this time schedules it and private.dispatch_scheduled_announcements sends it."},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the announcement stops showing on portal home screens."},{"type":"null"}]},"recipient_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Snapshot: number of announcement_recipients materialized at send time."},{"type":"null"}]},"author_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"author user id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]},"delete":{"operationId":"delete_announcements_row","summary":"Delete an announcement","description":"Broadcast notices to many tenants/owners/vendors (water shut-off, policy change, holiday hours). Audiences in announcement_audiences; send_announcement() materializes announcement_recipients and enqueues a notification per recipient on each channel.\n\nDeletes one row of announcements. The database refuses it where other records still need the row.\n\nNeeds one of: communications.broadcast.","tags":["Announcements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]}},"/v1/application_applicants":{"get":{"operationId":"list_application_applicants","summary":"List application applicants","description":"People on an application and their role: applicant (exactly one, the primary), co_applicant (adult who will be on the lease), guarantor (financially responsible, not living there), occupant (lives there, not on the lease, e.g. a minor). Consent timestamps are the legal record of authorization to screen.\n\nPages through the application applicants table of the organization, oldest first. Filters: id, application_id, contact_id, role, is_minor, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application applicants"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"role","in":"query","required":false,"schema":{"description":"Only rows whose role equals this.","type":"string","enum":["applicant","co_applicant","guarantor","occupant"]},"description":"Only rows whose role equals this."},{"name":"is_minor","in":"query","required":false,"schema":{"description":"Only rows whose is_minor equals this.","type":"boolean"},"description":"Only rows whose is_minor equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_applicants/{id}":{"get":{"operationId":"get_application_applicants_row","summary":"Get an application applicant","description":"People on an application and their role: applicant (exactly one, the primary), co_applicant (adult who will be on the lease), guarantor (financially responsible, not living there), occupant (lives there, not on the lease, e.g. a minor). Consent timestamps are the legal record of authorization to screen.\n\nOne row of application applicants by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application applicants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_decisions":{"get":{"operationId":"list_application_decisions","summary":"List application decisions","description":"Decisions on an application. A reconsideration supersedes the previous decision (superseded_at); the current decision is the row with superseded_at is null. Denials and conditional approvals are adverse actions that require a notice (FCRA) naming the consumer reporting agency.\n\nPages through the application decisions table of the organization, oldest first. Filters: id, application_id, decision, screening_request_id, requires_guarantor, is_adverse_action, adverse_action_notice_method, decided_by, risk_assessment_id.\n\nNeeds one of: leasing.read.","tags":["Application decisions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"decision","in":"query","required":false,"schema":{"description":"Only rows whose decision equals this.","type":"string","enum":["approved","conditionally_approved","denied"]},"description":"Only rows whose decision equals this."},{"name":"screening_request_id","in":"query","required":false,"schema":{"description":"Only rows whose screening_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose screening_request_id equals this."},{"name":"requires_guarantor","in":"query","required":false,"schema":{"description":"Only rows whose requires_guarantor equals this.","type":"boolean"},"description":"Only rows whose requires_guarantor equals this."},{"name":"is_adverse_action","in":"query","required":false,"schema":{"description":"Only rows whose is_adverse_action equals this.","type":"boolean"},"description":"Only rows whose is_adverse_action equals this."},{"name":"adverse_action_notice_method","in":"query","required":false,"schema":{"description":"Only rows whose adverse_action_notice_method equals this.","type":"string","enum":["email","mail","portal","hand_delivered","posted"]},"description":"Only rows whose adverse_action_notice_method equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."},{"name":"risk_assessment_id","in":"query","required":false,"schema":{"description":"Only rows whose risk_assessment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose risk_assessment_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/application_decisions/{id}":{"get":{"operationId":"get_application_decisions_row","summary":"Get an application decision","description":"Decisions on an application. A reconsideration supersedes the previous decision (superseded_at); the current decision is the row with superseded_at is null. Denials and conditional approvals are adverse actions that require a notice (FCRA) naming the consumer reporting agency.\n\nOne row of application decisions by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Application decisions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/application_employment":{"get":{"operationId":"list_application_employment","summary":"List application employment","description":"Employment history declared by an applicant, with verification status. Pay itself is recorded in application_income.\n\nPages through the application employment table of the organization, oldest first. Filters: id, application_id, application_applicant_id, employment_type, start_on, end_on, is_current, is_verified, verified_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application employment"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"employment_type","in":"query","required":false,"schema":{"description":"Only rows whose employment_type equals this.","type":"string","enum":["full_time","part_time","contract","self_employed","seasonal","military","other"]},"description":"Only rows whose employment_type equals this."},{"name":"start_on","in":"query","required":false,"schema":{"description":"Only rows whose start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose start_on equals this."},{"name":"end_on","in":"query","required":false,"schema":{"description":"Only rows whose end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose end_on equals this."},{"name":"is_current","in":"query","required":false,"schema":{"description":"Only rows whose is_current equals this.","type":"boolean"},"description":"Only rows whose is_current equals this."},{"name":"is_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_verified equals this.","type":"boolean"},"description":"Only rows whose is_verified equals this."},{"name":"verified_by","in":"query","required":false,"schema":{"description":"Only rows whose verified_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose verified_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_employment/{id}":{"get":{"operationId":"get_application_employment_row","summary":"Get an application employment","description":"Employment history declared by an applicant, with verification status. Pay itself is recorded in application_income.\n\nOne row of application employment by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application employment"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_income":{"get":{"operationId":"list_application_income","summary":"List application income","description":"Income sources declared by an applicant. Total household monthly income (for income-to-rent ratio) = sum(monthly_amount_cents) over the application's applicants/co-applicants.\n\nPages through the application income table of the organization, oldest first. Filters: id, application_id, application_applicant_id, income_type, frequency, start_on, end_on, is_verified, verification_method, verified_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application income"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"income_type","in":"query","required":false,"schema":{"description":"Only rows whose income_type equals this.","type":"string","enum":["employment","self_employment","retirement","social_security","disability","child_support","alimony","housing_voucher","student_aid","investment","unemployment","other"]},"description":"Only rows whose income_type equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["weekly","biweekly","semimonthly","monthly","quarterly","annually"]},"description":"Only rows whose frequency equals this."},{"name":"start_on","in":"query","required":false,"schema":{"description":"Only rows whose start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose start_on equals this."},{"name":"end_on","in":"query","required":false,"schema":{"description":"Only rows whose end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose end_on equals this."},{"name":"is_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_verified equals this.","type":"boolean"},"description":"Only rows whose is_verified equals this."},{"name":"verification_method","in":"query","required":false,"schema":{"description":"Only rows whose verification_method equals this.","type":"string","enum":["paystub","offer_letter","bank_statement","tax_return","employer_contact","third_party_service","benefit_letter","other"]},"description":"Only rows whose verification_method equals this."},{"name":"verified_by","in":"query","required":false,"schema":{"description":"Only rows whose verified_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose verified_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_income/{id}":{"get":{"operationId":"get_application_income_row","summary":"Get an application income","description":"Income sources declared by an applicant. Total household monthly income (for income-to-rent ratio) = sum(monthly_amount_cents) over the application's applicants/co-applicants.\n\nOne row of application income by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application income"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_invitations":{"get":{"operationId":"list_application_invitations","summary":"List application invitations","description":"Invitations for a co-applicant or guarantor to complete their own part of a rental application. Only the SHA-256 of the one-time token is stored; accepting links the invitee's login to their contact.\n\nPages through the application invitations table of the organization, oldest first. Filters: id, application_id, application_applicant_id, status, accepted_by, invited_by.\n\nNeeds one of: leasing.read.","tags":["Application invitations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","accepted","revoked","expired"]},"description":"Only rows whose status equals this."},{"name":"accepted_by","in":"query","required":false,"schema":{"description":"Only rows whose accepted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accepted_by equals this."},{"name":"invited_by","in":"query","required":false,"schema":{"description":"Only rows whose invited_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose invited_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/application_invitations/{id}":{"get":{"operationId":"get_application_invitations_row","summary":"Get an application invitation","description":"Invitations for a co-applicant or guarantor to complete their own part of a rental application. Only the SHA-256 of the one-time token is stored; accepting links the invitee's login to their contact.\n\nOne row of application invitations by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Application invitations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/application_pets":{"get":{"operationId":"list_application_pets","summary":"List application pets","description":"Animals the household will bring. Service and emotional-support animals are assistance animals (not pets) for fees and restrictions under fair-housing rules.\n\nPages through the application pets table of the organization, oldest first. Filters: id, application_id, species, is_service_animal, is_emotional_support_animal, is_spayed_neutered, is_vaccinated.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application pets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"species","in":"query","required":false,"schema":{"description":"Only rows whose species equals this.","type":"string","enum":["dog","cat","bird","fish","reptile","small_mammal","other"]},"description":"Only rows whose species equals this."},{"name":"is_service_animal","in":"query","required":false,"schema":{"description":"Only rows whose is_service_animal equals this.","type":"boolean"},"description":"Only rows whose is_service_animal equals this."},{"name":"is_emotional_support_animal","in":"query","required":false,"schema":{"description":"Only rows whose is_emotional_support_animal equals this.","type":"boolean"},"description":"Only rows whose is_emotional_support_animal equals this."},{"name":"is_spayed_neutered","in":"query","required":false,"schema":{"description":"Only rows whose is_spayed_neutered equals this.","type":"boolean"},"description":"Only rows whose is_spayed_neutered equals this."},{"name":"is_vaccinated","in":"query","required":false,"schema":{"description":"Only rows whose is_vaccinated equals this.","type":"boolean"},"description":"Only rows whose is_vaccinated equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_pets/{id}":{"get":{"operationId":"get_application_pets_row","summary":"Get an application pet","description":"Animals the household will bring. Service and emotional-support animals are assistance animals (not pets) for fees and restrictions under fair-housing rules.\n\nOne row of application pets by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application pets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_residence_history":{"get":{"operationId":"list_application_residence_history","summary":"List application residence history","description":"Prior and current addresses of an applicant with landlord reference details and verification.\n\nPages through the application residence history table of the organization, oldest first. Filters: id, application_id, application_applicant_id, residence_type, moved_in_on, moved_out_on, is_current, may_contact_landlord, is_verified, verified_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application residence history"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"residence_type","in":"query","required":false,"schema":{"description":"Only rows whose residence_type equals this.","type":"string","enum":["rent","own","family","military_housing","student_housing","other"]},"description":"Only rows whose residence_type equals this."},{"name":"moved_in_on","in":"query","required":false,"schema":{"description":"Only rows whose moved_in_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose moved_in_on equals this."},{"name":"moved_out_on","in":"query","required":false,"schema":{"description":"Only rows whose moved_out_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose moved_out_on equals this."},{"name":"is_current","in":"query","required":false,"schema":{"description":"Only rows whose is_current equals this.","type":"boolean"},"description":"Only rows whose is_current equals this."},{"name":"may_contact_landlord","in":"query","required":false,"schema":{"description":"Only rows whose may_contact_landlord equals this.","type":"boolean"},"description":"Only rows whose may_contact_landlord equals this."},{"name":"is_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_verified equals this.","type":"boolean"},"description":"Only rows whose is_verified equals this."},{"name":"verified_by","in":"query","required":false,"schema":{"description":"Only rows whose verified_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose verified_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_residence_history/{id}":{"get":{"operationId":"get_application_residence_history_row","summary":"Get an application residence history","description":"Prior and current addresses of an applicant with landlord reference details and verification.\n\nOne row of application residence history by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application residence history"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_risk_assessments":{"get":{"operationId":"list_application_risk_assessments","summary":"List application risk assessments","description":"A scored, explainable assessment of a rental application against its screening criteria. Never a decision: staff decide with record_application_decision. Recomputed on submission, on every completed screening and on demand (assess_application_risk); the current one has superseded_at is null. Factor detail is in application_risk_factors.\n\nPages through the application risk assessments table of the organization, oldest first. Filters: id, application_id, screening_criteria_id, risk_level, recommendation, is_complete, requires_manual_review, lowest_credit_score_band, has_eviction_records, has_criminal_records, has_bankruptcy, has_collections, are_identities_verified, suggests_guarantor, assessed_by.\n\nNeeds one of: screening.run.","tags":["Application risk assessments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"screening_criteria_id","in":"query","required":false,"schema":{"description":"Only rows whose screening_criteria_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose screening_criteria_id equals this."},{"name":"risk_level","in":"query","required":false,"schema":{"description":"Only rows whose risk_level equals this.","type":"string","enum":["low","moderate","high"]},"description":"Only rows whose risk_level equals this."},{"name":"recommendation","in":"query","required":false,"schema":{"description":"Only rows whose recommendation equals this.","type":"string","enum":["accept","accept_with_conditions","decline","no_recommendation"]},"description":"Only rows whose recommendation equals this."},{"name":"is_complete","in":"query","required":false,"schema":{"description":"Only rows whose is_complete equals this.","type":"boolean"},"description":"Only rows whose is_complete equals this."},{"name":"requires_manual_review","in":"query","required":false,"schema":{"description":"Only rows whose requires_manual_review equals this.","type":"boolean"},"description":"Only rows whose requires_manual_review equals this."},{"name":"lowest_credit_score_band","in":"query","required":false,"schema":{"description":"Only rows whose lowest_credit_score_band equals this.","type":"string","enum":["no_score","under_550","550_599","600_649","650_699","700_749","750_plus"]},"description":"Only rows whose lowest_credit_score_band equals this."},{"name":"has_eviction_records","in":"query","required":false,"schema":{"description":"Only rows whose has_eviction_records equals this.","type":"boolean"},"description":"Only rows whose has_eviction_records equals this."},{"name":"has_criminal_records","in":"query","required":false,"schema":{"description":"Only rows whose has_criminal_records equals this.","type":"boolean"},"description":"Only rows whose has_criminal_records equals this."},{"name":"has_bankruptcy","in":"query","required":false,"schema":{"description":"Only rows whose has_bankruptcy equals this.","type":"boolean"},"description":"Only rows whose has_bankruptcy equals this."},{"name":"has_collections","in":"query","required":false,"schema":{"description":"Only rows whose has_collections equals this.","type":"boolean"},"description":"Only rows whose has_collections equals this."},{"name":"are_identities_verified","in":"query","required":false,"schema":{"description":"Only rows whose are_identities_verified equals this.","type":"boolean"},"description":"Only rows whose are_identities_verified equals this."},{"name":"suggests_guarantor","in":"query","required":false,"schema":{"description":"Only rows whose suggests_guarantor equals this.","type":"boolean"},"description":"Only rows whose suggests_guarantor equals this."},{"name":"assessed_by","in":"query","required":false,"schema":{"description":"Only rows whose assessed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/application_risk_assessments/{id}":{"get":{"operationId":"get_application_risk_assessments_row","summary":"Get an application risk assessment","description":"A scored, explainable assessment of a rental application against its screening criteria. Never a decision: staff decide with record_application_decision. Recomputed on submission, on every completed screening and on demand (assess_application_risk); the current one has superseded_at is null. Factor detail is in application_risk_factors.\n\nOne row of application risk assessments by id, with every column the API shows.\n\nNeeds one of: screening.run.","tags":["Application risk assessments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/application_risk_factors":{"get":{"operationId":"list_application_risk_factors","summary":"List application risk factors","description":"The factor rows of a risk assessment: what was checked, the outcome, how much it weighed and why (detail). Written only by the rules engine.\n\nPages through the application risk factors table of the organization, oldest first. Filters: id, assessment_id, application_applicant_id, factor, outcome, adverse_action_reason.\n\nNeeds one of: screening.run.","tags":["Application risk factors"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"assessment_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"factor","in":"query","required":false,"schema":{"description":"Only rows whose factor equals this.","type":"string","enum":["income_to_rent","credit","eviction","criminal","bankruptcy","collections","identity","rental_history","landlord_reference","occupancy","documents","screening"]},"description":"Only rows whose factor equals this."},{"name":"outcome","in":"query","required":false,"schema":{"description":"Only rows whose outcome equals this.","type":"string","enum":["pass","conditional","review","fail","missing","not_applicable"]},"description":"Only rows whose outcome equals this."},{"name":"adverse_action_reason","in":"query","required":false,"schema":{"description":"Only rows whose adverse_action_reason equals this.","type":"string","enum":["credit_history","insufficient_credit_history","insufficient_income","unverifiable_income","rental_history","eviction_history","criminal_history","incomplete_application","unverifiable_information","occupancy_limit","other"]},"description":"Only rows whose adverse_action_reason equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/application_risk_factors/{id}":{"get":{"operationId":"get_application_risk_factors_row","summary":"Get an application risk factor","description":"The factor rows of a risk assessment: what was checked, the outcome, how much it weighed and why (detail). Written only by the rules engine.\n\nOne row of application risk factors by id, with every column the API shows.\n\nNeeds one of: screening.run.","tags":["Application risk factors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/application_vehicles":{"get":{"operationId":"list_application_vehicles","summary":"List application vehicles","description":"Vehicles the household will park at the property (for parking permits).\n\nPages through the application vehicles table of the organization, oldest first. Filters: id, application_id.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application vehicles"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/application_vehicles/{id}":{"get":{"operationId":"get_application_vehicles_row","summary":"Get an application vehicle","description":"Vehicles the household will park at the property (for parking permits).\n\nOne row of application vehicles by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Application vehicles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/architectural_request_comments":{"get":{"operationId":"list_architectural_request_comments","summary":"List architectural request comments","description":"The thread on an architectural request between its owners, the office and the board. Written only through add_architectural_request_comment. Rows are never edited.\n\nPages through the architectural request comments table of the organization, oldest first. Filters: id, architectural_request_id, author_user_id, author_contact_id.\n\nNeeds one of: associations.read.","tags":["Architectural request comments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"architectural_request_id","in":"query","required":false,"schema":{"description":"Only rows whose architectural_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose architectural_request_id equals this."},{"name":"author_user_id","in":"query","required":false,"schema":{"description":"Only rows whose author_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose author_user_id equals this."},{"name":"author_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose author_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose author_contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/architectural_request_comments/{id}":{"get":{"operationId":"get_architectural_request_comments_row","summary":"Get an architectural request comment","description":"The thread on an architectural request between its owners, the office and the board. Written only through add_architectural_request_comment. Rows are never edited.\n\nOne row of architectural request comments by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Architectural request comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/assessment_run_items":{"get":{"operationId":"list_assessment_run_items","summary":"List assessment run items","description":"One homeowner's assessment for one run, and the receivable charge it posted. Immutable; corrections are credits on the charge.\n\nPages through the assessment run items table of the organization, oldest first. Filters: id, assessment_run_id, homeowner_account_id, unit_id, charge_id.\n\nNeeds one of: associations.read.","tags":["Assessment run items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"assessment_run_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_run_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/assessment_run_items/{id}":{"get":{"operationId":"get_assessment_run_items_row","summary":"Get an assessment run item","description":"One homeowner's assessment for one run, and the receivable charge it posted. Immutable; corrections are credits on the charge.\n\nOne row of assessment run items by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Assessment run items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/assessment_runs":{"get":{"operationId":"list_assessment_runs","summary":"List assessment runs","description":"One billing period of an assessment schedule: the batch of charges posted to every active homeowner account for due_on. Unique per schedule and due date, so re-running is idempotent.\n\nPages through the assessment runs table of the organization, oldest first. Filters: id, assessment_schedule_id, due_on, status, posted_by.\n\nNeeds one of: associations.read.","tags":["Assessment runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"assessment_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_schedule_id equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["posted","reversed"]},"description":"Only rows whose status equals this."},{"name":"posted_by","in":"query","required":false,"schema":{"description":"Only rows whose posted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose posted_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/assessment_runs/{id}":{"get":{"operationId":"get_assessment_runs_row","summary":"Get an assessment run","description":"One billing period of an assessment schedule: the batch of charges posted to every active homeowner account for due_on. Unique per schedule and due date, so re-running is idempotent.\n\nOne row of assessment runs by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Assessment runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/assessment_schedules":{"get":{"operationId":"list_assessment_schedules","summary":"List assessment schedules","description":"A dues program: regular assessments (from the approved budget) or a special assessment (one-time or in installments). Per-unit amounts are in assessment_unit_amounts; each billing period is an assessment_run whose items are posted charges on homeowner accounts.\n\nPages through the assessment schedules table of the organization, oldest first. Filters: id, association_id, assessment_type, status, charge_type_id, allocation_method, frequency, starts_on, ends_on, budget_id, last_posted_through, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Assessment schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"assessment_type","in":"query","required":false,"schema":{"description":"Only rows whose assessment_type equals this.","type":"string","enum":["regular","special","working_capital","transfer_fee","utility","other"]},"description":"Only rows whose assessment_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","pending_approval","approved","active","completed","canceled"]},"description":"Only rows whose status equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"allocation_method","in":"query","required":false,"schema":{"description":"Only rows whose allocation_method equals this.","type":"string","enum":["equal","allocation_pct","square_feet","custom"]},"description":"Only rows whose allocation_method equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["monthly","quarterly","semiannual","annual","one_time"]},"description":"Only rows whose frequency equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"budget_id","in":"query","required":false,"schema":{"description":"Only rows whose budget_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_id equals this."},{"name":"last_posted_through","in":"query","required":false,"schema":{"description":"Only rows whose last_posted_through equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_posted_through equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"post":{"operationId":"create_assessment_schedules_row","summary":"Create an assessment schedule","description":"A dues program: regular assessments (from the approved budget) or a special assessment (one-time or in installments). Per-unit amounts are in assessment_unit_amounts; each billing period is an assessment_run whose items are posted charges on homeowner accounts.\n\nInserts one row of assessment schedules in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Assessment schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"name":{"type":"string","maxLength":100000,"description":"name"},"assessment_type":{"type":"string","enum":["regular","special","working_capital","transfer_fee","utility","other"],"description":"assessment type"},"charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type of the posted charges (maps to the income GL account, e.g. Assessment income, Special assessment income)."},"allocation_method":{"type":"string","enum":["equal","allocation_pct","square_feet","custom"],"description":"How period_total_cents is split across units: equal, allocation_pct (declaration %), square_feet, or custom (amounts entered per unit)."},"frequency":{"type":"string","enum":["monthly","quarterly","semiannual","annual","one_time"],"description":"frequency"},"period_total_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total to bill the whole association each period (per installment for special assessments). Null for custom allocation."},{"type":"null"}]},"installment_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"For special assessments: number of installments; posting stops after this many runs. Null = until ends_on / indefinitely."},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"due_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of month each period's charge is due."},"budget_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Annual association budget the regular assessment was derived from."},{"type":"null"}]},"purpose":{"anyOf":[{"type":"string","maxLength":100000,"description":"purpose"},{"type":"null"}]}},"required":["association_id","name","charge_type_id","starts_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/assessment_schedules/{id}":{"get":{"operationId":"get_assessment_schedules_row","summary":"Get an assessment schedule","description":"A dues program: regular assessments (from the approved budget) or a special assessment (one-time or in installments). Per-unit amounts are in assessment_unit_amounts; each billing period is an assessment_run whose items are posted charges on homeowner accounts.\n\nOne row of assessment schedules by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Assessment schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_assessment_schedules_row","summary":"Update an assessment schedule","description":"A dues program: regular assessments (from the approved budget) or a special assessment (one-time or in installments). Per-unit amounts are in assessment_unit_amounts; each billing period is an assessment_run whose items are posted charges on homeowner accounts.\n\nChanges the given fields of one row of assessment schedules and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Assessment schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"name":{"type":"string","maxLength":100000,"description":"name"},"assessment_type":{"type":"string","enum":["regular","special","working_capital","transfer_fee","utility","other"],"description":"assessment type"},"charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type of the posted charges (maps to the income GL account, e.g. Assessment income, Special assessment income)."},"allocation_method":{"type":"string","enum":["equal","allocation_pct","square_feet","custom"],"description":"How period_total_cents is split across units: equal, allocation_pct (declaration %), square_feet, or custom (amounts entered per unit)."},"frequency":{"type":"string","enum":["monthly","quarterly","semiannual","annual","one_time"],"description":"frequency"},"period_total_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total to bill the whole association each period (per installment for special assessments). Null for custom allocation."},{"type":"null"}]},"installment_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"For special assessments: number of installments; posting stops after this many runs. Null = until ends_on / indefinitely."},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"due_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of month each period's charge is due."},"budget_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Annual association budget the regular assessment was derived from."},{"type":"null"}]},"purpose":{"anyOf":[{"type":"string","maxLength":100000,"description":"purpose"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]},"delete":{"operationId":"delete_assessment_schedules_row","summary":"Delete an assessment schedule","description":"A dues program: regular assessments (from the approved budget) or a special assessment (one-time or in installments). Per-unit amounts are in assessment_unit_amounts; each billing period is an assessment_run whose items are posted charges on homeowner accounts.\n\nDeletes one row of assessment schedules. The database refuses it where other records still need the row.\n\nNeeds one of: associations.write.","tags":["Assessment schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/assessment_unit_amounts":{"get":{"operationId":"list_assessment_unit_amounts","summary":"List assessment unit amounts","description":"Per-unit amount billed each period for an assessment schedule. Computed by calculate_assessment_amounts (largest-remainder rounding so units sum exactly to period_total_cents) or entered for custom schedules.\n\nPages through the assessment unit amounts table of the organization, oldest first. Filters: id, assessment_schedule_id, unit_id, is_override.\n\nNeeds one of: associations.read, associations.write.","tags":["Assessment unit amounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"assessment_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_schedule_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"is_override","in":"query","required":false,"schema":{"description":"Only rows whose is_override equals this.","type":"boolean"},"description":"Only rows whose is_override equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/assessment_unit_amounts/{id}":{"get":{"operationId":"get_assessment_unit_amounts_row","summary":"Get an assessment unit amount","description":"Per-unit amount billed each period for an assessment schedule. Computed by calculate_assessment_amounts (largest-remainder rounding so units sum exactly to period_total_cents) or entered for custom schedules.\n\nOne row of assessment unit amounts by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Assessment unit amounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/asset_service_links":{"get":{"operationId":"list_asset_service_links","summary":"List asset service links","description":"What a piece of equipment serves: a building, a unit, or another system (a pump that feeds a boiler). When it fails, staff see what is affected without reading old work orders.\n\nPages through the asset service links table of the organization, oldest first. Filters: id, property_id, asset_id, building_id, unit_id, served_asset_id.\n\nNeeds one of: maintenance.write, properties.read, properties.write.","tags":["Asset service links"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"asset_id","in":"query","required":false,"schema":{"description":"Only rows whose asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose asset_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"served_asset_id","in":"query","required":false,"schema":{"description":"Only rows whose served_asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose served_asset_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.read","properties.write"]},"post":{"operationId":"create_asset_service_links_row","summary":"Create an asset service link","description":"What a piece of equipment serves: a building, a unit, or another system (a pump that feeds a boiler). When it fails, staff see what is affected without reading old work orders.\n\nInserts one row of asset service links in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write, properties.write.","tags":["Asset service links"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"asset_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"served_asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"served asset id"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["property_id","asset_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.write"]}},"/v1/asset_service_links/{id}":{"get":{"operationId":"get_asset_service_links_row","summary":"Get an asset service link","description":"What a piece of equipment serves: a building, a unit, or another system (a pump that feeds a boiler). When it fails, staff see what is affected without reading old work orders.\n\nOne row of asset service links by id, with every column the API shows.\n\nNeeds one of: maintenance.write, properties.read, properties.write.","tags":["Asset service links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.read","properties.write"]},"delete":{"operationId":"delete_asset_service_links_row","summary":"Delete an asset service link","description":"What a piece of equipment serves: a building, a unit, or another system (a pump that feeds a boiler). When it fails, staff see what is affected without reading old work orders.\n\nDeletes one row of asset service links. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.write, properties.write.","tags":["Asset service links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.write"]}},"/v1/assets/{id}":{"get":{"operationId":"get_assets_row","summary":"Get an asset","description":"Appliances and equipment at a property (refrigerators, HVAC units, water heaters, roofs, elevators) with warranty and lifecycle data. Work orders and preventive maintenance reference assets.\n\nOne row of assets by id, with every column the API shows.\n\nNeeds one of: maintenance.write, properties.read, properties.write.","tags":["Assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.read","properties.write"]},"patch":{"operationId":"update_assets_row","summary":"Update an asset","description":"Appliances and equipment at a property (refrigerators, HVAC units, water heaters, roofs, elevators) with warranty and lifecycle data. Work orders and preventive maintenance reference assets.\n\nChanges the given fields of one row of assets and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.write, properties.write.","tags":["Assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"asset_type":{"type":"string","enum":["appliance","hvac","water_heater","plumbing","electrical","roofing","elevator","fire_safety","security","pool_equipment","flooring","window_door","vehicle","furniture","tool","other"],"description":"asset type"},"name":{"type":"string","maxLength":100000,"description":"What it is, e.g. \"Refrigerator\", \"Rooftop unit 3\"."},"location_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where it is, e.g. \"Kitchen\", \"Roof, north side\"."},{"type":"null"}]},"manufacturer":{"anyOf":[{"type":"string","maxLength":100000,"description":"manufacturer"},{"type":"null"}]},"model_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"model number"},{"type":"null"}]},"serial_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"serial number"},{"type":"null"}]},"asset_tag":{"anyOf":[{"type":"string","maxLength":100000,"description":"Barcode/QR label affixed by the manager."},{"type":"null"}]},"installed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"installed on"},{"type":"null"}]},"purchased_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"purchased on"},{"type":"null"}]},"purchase_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"purchase price cents"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor that sold or installed the asset."},{"type":"null"}]},"warranty_provider":{"anyOf":[{"type":"string","maxLength":100000,"description":"warranty provider"},{"type":"null"}]},"warranty_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"warranty expires on"},{"type":"null"}]},"warranty_details":{"anyOf":[{"type":"string","maxLength":100000,"description":"warranty details"},{"type":"null"}]},"expected_life_years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Useful life used to forecast replacement (capex planning)."},{"type":"null"}]},"replacement_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"replacement cost cents"},{"type":"null"}]},"condition":{"anyOf":[{"type":"string","enum":["new","good","fair","poor","failed"],"description":"condition"},{"type":"null"}]},"retired_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"retired on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.write"]}},"/v1/association_committee_members":{"get":{"operationId":"list_association_committee_members","summary":"List association committee members","description":"A person on an association committee, current from starts_on through ends_on. Staff end a membership by setting ends_on; rows are kept as the record of who served.\n\nPages through the association committee members table of the organization, oldest first. Filters: id, committee_id, contact_id, starts_on, ends_on, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Association committee members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"committee_id","in":"query","required":false,"schema":{"description":"Only rows whose committee_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose committee_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"post":{"operationId":"create_association_committee_members_row","summary":"Create an association committee member","description":"A person on an association committee, current from starts_on through ends_on. Staff end a membership by setting ends_on; rows are kept as the record of who served.\n\nInserts one row of association committee members in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Association committee members"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"committee_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"committee id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"role":{"type":"string","maxLength":100000,"description":"role"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":["committee_id","contact_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/association_committee_members/{id}":{"get":{"operationId":"get_association_committee_members_row","summary":"Get an association committee member","description":"A person on an association committee, current from starts_on through ends_on. Staff end a membership by setting ends_on; rows are kept as the record of who served.\n\nOne row of association committee members by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association committee members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_association_committee_members_row","summary":"Update an association committee member","description":"A person on an association committee, current from starts_on through ends_on. Staff end a membership by setting ends_on; rows are kept as the record of who served.\n\nChanges the given fields of one row of association committee members and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Association committee members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"committee_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"committee id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"role":{"type":"string","maxLength":100000,"description":"role"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]},"delete":{"operationId":"delete_association_committee_members_row","summary":"Delete an association committee member","description":"A person on an association committee, current from starts_on through ends_on. Staff end a membership by setting ends_on; rows are kept as the record of who served.\n\nDeletes one row of association committee members. The database refuses it where other records still need the row.\n\nNeeds one of: associations.write.","tags":["Association committee members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/association_committees":{"get":{"operationId":"list_association_committees","summary":"List association committees","description":"An association's committee. kind sets what its current members reach in the homeowner portal: architectural requests (architectural), violations (covenants) or nothing beyond membership (other). Never the board's votes, approvals or finances. Archived committees grant nothing.\n\nPages through the association committees table of the organization, oldest first. Filters: id, association_id, kind, can_decide, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Association committees"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["architectural","covenants","other"]},"description":"Only rows whose kind equals this."},{"name":"can_decide","in":"query","required":false,"schema":{"description":"Only rows whose can_decide equals this.","type":"boolean"},"description":"Only rows whose can_decide equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"post":{"operationId":"create_association_committees_row","summary":"Create an association committee","description":"An association's committee. kind sets what its current members reach in the homeowner portal: architectural requests (architectural), violations (covenants) or nothing beyond membership (other). Never the board's votes, approvals or finances. Archived committees grant nothing.\n\nInserts one row of association committees in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Association committees"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"name":{"type":"string","maxLength":100000,"description":"name"},"kind":{"type":"string","enum":["architectural","covenants","other"],"description":"kind"},"can_decide":{"type":"boolean","description":"Architectural committees only: members may approve, deny or ask for more information on requests (public.decide_architectural_request)."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["association_id","name","kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/association_committees/{id}":{"get":{"operationId":"get_association_committees_row","summary":"Get an association committee","description":"An association's committee. kind sets what its current members reach in the homeowner portal: architectural requests (architectural), violations (covenants) or nothing beyond membership (other). Never the board's votes, approvals or finances. Archived committees grant nothing.\n\nOne row of association committees by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association committees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_association_committees_row","summary":"Update an association committee","description":"An association's committee. kind sets what its current members reach in the homeowner portal: architectural requests (architectural), violations (covenants) or nothing beyond membership (other). Never the board's votes, approvals or finances. Archived committees grant nothing.\n\nChanges the given fields of one row of association committees and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Association committees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"name":{"type":"string","maxLength":100000,"description":"name"},"kind":{"type":"string","enum":["architectural","covenants","other"],"description":"kind"},"can_decide":{"type":"boolean","description":"Architectural committees only: members may approve, deny or ask for more information on requests (public.decide_architectural_request)."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/association_election_ballots":{"get":{"operationId":"list_association_election_ballots","summary":"List association election ballots","description":"One cast ballot per homeowner account per election (secret: choices are in association_election_ballot_choices; staff see turnout, results are aggregated).\n\nPages through the association election ballots table of the organization, oldest first. Filters: id, association_election_id, homeowner_account_id, cast_by_contact_id, is_proxy, is_paper, recorded_by.\n\nNeeds one of: associations.read.","tags":["Association election ballots"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_election_id","in":"query","required":false,"schema":{"description":"Only rows whose association_election_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_election_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"cast_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose cast_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cast_by_contact_id equals this."},{"name":"is_proxy","in":"query","required":false,"schema":{"description":"Only rows whose is_proxy equals this.","type":"boolean"},"description":"Only rows whose is_proxy equals this."},{"name":"is_paper","in":"query","required":false,"schema":{"description":"Only rows whose is_paper equals this.","type":"boolean"},"description":"Only rows whose is_paper equals this."},{"name":"recorded_by","in":"query","required":false,"schema":{"description":"Only rows whose recorded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recorded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/association_election_ballots/{id}":{"get":{"operationId":"get_association_election_ballots_row","summary":"Get an association election ballot","description":"One cast ballot per homeowner account per election (secret: choices are in association_election_ballot_choices; staff see turnout, results are aggregated).\n\nOne row of association election ballots by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Association election ballots"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/association_election_options":{"get":{"operationId":"list_association_election_options","summary":"List association election options","description":"Choices on an election ballot: candidates (candidate_contact_id) or Yes / No for a measure.\n\nPages through the association election options table of the organization, oldest first. Filters: id, association_election_id, candidate_contact_id.\n\nNeeds one of: associations.read, associations.write.","tags":["Association election options"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_election_id","in":"query","required":false,"schema":{"description":"Only rows whose association_election_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_election_id equals this."},{"name":"candidate_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose candidate_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose candidate_contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_election_options/{id}":{"get":{"operationId":"get_association_election_options_row","summary":"Get an association election option","description":"Choices on an election ballot: candidates (candidate_contact_id) or Yes / No for a measure.\n\nOne row of association election options by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association election options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_elections/{id}":{"get":{"operationId":"get_association_elections_row","summary":"Get an association election","description":"Membership votes held through the homeowner portal (e-elections): board elections, ballot measures, recalls, governing document amendments. One ballot per homeowner account; weight by unit or allocation_pct.\n\nOne row of association elections by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association elections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"delete":{"operationId":"delete_association_elections_row","summary":"Delete an association election","description":"Membership votes held through the homeowner portal (e-elections): board elections, ballot measures, recalls, governing document amendments. One ballot per homeowner account; weight by unit or allocation_pct.\n\nDeletes one row of association elections. The database refuses it where other records still need the row.\n\nNeeds one of: associations.write.","tags":["Association elections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/association_resale_offerings":{"get":{"operationId":"list_association_resale_offerings","summary":"List association resale offerings","description":"The resale documents an association sells on its public request page, with its fee, rush fee (added to the fee for faster delivery; null = no rush) and turnaround in days. Written only through set_association_resale_offering, which checks the state cap.\n\nPages through the association resale offerings table of the organization, oldest first. Filters: id, association_id, document_type, is_offered.\n\nNeeds one of: associations.read.","tags":["Association resale offerings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"document_type","in":"query","required":false,"schema":{"description":"Only rows whose document_type equals this.","type":"string","enum":["resale_certificate","estoppel_letter","lender_questionnaire"]},"description":"Only rows whose document_type equals this."},{"name":"is_offered","in":"query","required":false,"schema":{"description":"Only rows whose is_offered equals this.","type":"boolean"},"description":"Only rows whose is_offered equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/association_resale_offerings/{id}":{"get":{"operationId":"get_association_resale_offerings_row","summary":"Get an association resale offering","description":"The resale documents an association sells on its public request page, with its fee, rush fee (added to the fee for faster delivery; null = no rush) and turnaround in days. Written only through set_association_resale_offering, which checks the state cap.\n\nOne row of association resale offerings by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Association resale offerings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/association_reserve_components":{"get":{"operationId":"list_association_reserve_components","summary":"List association reserve components","description":"Common-element components in a reserve study (roofs, paving, pool, elevators) with useful and remaining life and current replacement cost. Fully funded balance of a component = replacement_cost * (useful_life - remaining_life) / useful_life.\n\nPages through the association reserve components table of the organization, oldest first. Filters: id, association_reserve_study_id, last_replaced_on, asset_id.\n\nNeeds one of: associations.read, associations.write.","tags":["Association reserve components"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_reserve_study_id","in":"query","required":false,"schema":{"description":"Only rows whose association_reserve_study_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_reserve_study_id equals this."},{"name":"last_replaced_on","in":"query","required":false,"schema":{"description":"Only rows whose last_replaced_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_replaced_on equals this."},{"name":"asset_id","in":"query","required":false,"schema":{"description":"Only rows whose asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose asset_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_reserve_components/{id}":{"get":{"operationId":"get_association_reserve_components_row","summary":"Get an association reserve component","description":"Common-element components in a reserve study (roofs, paving, pool, elevators) with useful and remaining life and current replacement cost. Fully funded balance of a component = replacement_cost * (useful_life - remaining_life) / useful_life.\n\nOne row of association reserve components by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association reserve components"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_reserve_funding_plans":{"get":{"operationId":"list_association_reserve_funding_plans","summary":"List association reserve funding plans","description":"The study's 30-year cash-flow projection: planned contributions and expenditures per fiscal year. Actual contributions are bank transfers to the reserve account in the ledger.\n\nPages through the association reserve funding plans table of the organization, oldest first. Filters: id, association_reserve_study_id.\n\nNeeds one of: associations.read, associations.write.","tags":["Association reserve funding plans"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_reserve_study_id","in":"query","required":false,"schema":{"description":"Only rows whose association_reserve_study_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_reserve_study_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_reserve_funding_plans/{id}":{"get":{"operationId":"get_association_reserve_funding_plans_row","summary":"Get an association reserve funding plan","description":"The study's 30-year cash-flow projection: planned contributions and expenditures per fiscal year. Actual contributions are bank transfers to the reserve account in the ledger.\n\nOne row of association reserve funding plans by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association reserve funding plans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_reserve_studies":{"get":{"operationId":"list_association_reserve_studies","summary":"List association reserve studies","description":"A reserve study (professional or internal): the component inventory, assumptions and recommended contribution. Percent funded = actual reserve balance / fully funded balance (see association_reserve_status).\n\nPages through the association reserve studies table of the organization, oldest first. Filters: id, association_id, study_type, study_on, fiscal_year_start_on, funding_method, is_current, document_id, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Association reserve studies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"study_type","in":"query","required":false,"schema":{"description":"Only rows whose study_type equals this.","type":"string","enum":["full","update_with_site_visit","update_without_site_visit","internal"]},"description":"Only rows whose study_type equals this."},{"name":"study_on","in":"query","required":false,"schema":{"description":"Only rows whose study_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose study_on equals this."},{"name":"fiscal_year_start_on","in":"query","required":false,"schema":{"description":"Only rows whose fiscal_year_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose fiscal_year_start_on equals this."},{"name":"funding_method","in":"query","required":false,"schema":{"description":"Only rows whose funding_method equals this.","type":"string","enum":["full","threshold","baseline","statutory"]},"description":"Only rows whose funding_method equals this."},{"name":"is_current","in":"query","required":false,"schema":{"description":"Only rows whose is_current equals this.","type":"boolean"},"description":"Only rows whose is_current equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_reserve_studies/{id}":{"get":{"operationId":"get_association_reserve_studies_row","summary":"Get an association reserve study","description":"A reserve study (professional or internal): the component inventory, assumptions and recommended contribution. Percent funded = actual reserve balance / fully funded balance (see association_reserve_status).\n\nOne row of association reserve studies by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association reserve studies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_unit_allocations":{"get":{"operationId":"list_association_unit_allocations","summary":"List association unit allocations","description":"Each unit's share of common expenses and votes per the declaration, effective dated. Drives allocation_pct and square_feet assessment methods and weighted elections.\n\nPages through the association unit allocations table of the organization, oldest first. Filters: id, association_id, unit_id, effective_on, ends_on, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Association unit allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/association_unit_allocations/{id}":{"get":{"operationId":"get_association_unit_allocations_row","summary":"Get an association unit allocation","description":"Each unit's share of common expenses and votes per the declaration, effective dated. Drives allocation_pct and square_feet assessment methods and weighted elections.\n\nOne row of association unit allocations by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Association unit allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/autopay_enrollments":{"get":{"operationId":"list_autopay_enrollments","summary":"List autopay enrollments","description":"Recurring automatic payments: a payer on a lease pays with a saved method on a schedule (monthly, twice a month or every other week; 00107). start_autopay_run creates the payment. One live enrollment per payer per lease.\n\nPages through the autopay enrollments table of the organization, oldest first. Filters: id, lease_id, property_id, contact_id, payment_method_id, rule, starts_on, ends_on, status, paused_until, created_by, schedule, cycle_starts_on.\n\nNeeds one of: receivables.read.","tags":["Autopay enrollments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"payment_method_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_method_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_method_id equals this."},{"name":"rule","in":"query","required":false,"schema":{"description":"Only rows whose rule equals this.","type":"string","enum":["full_balance","fixed_amount","rent_only","rent_share"]},"description":"Only rows whose rule equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["active","paused","suspended","canceled"]},"description":"Only rows whose status equals this."},{"name":"paused_until","in":"query","required":false,"schema":{"description":"Only rows whose paused_until equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paused_until equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"schedule","in":"query","required":false,"schema":{"description":"Only rows whose schedule equals this.","type":"string","enum":["monthly","biweekly","twice_monthly"]},"description":"Only rows whose schedule equals this."},{"name":"cycle_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose cycle_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cycle_starts_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/autopay_enrollments/{id}":{"get":{"operationId":"get_autopay_enrollments_row","summary":"Get an autopay enrollment","description":"Recurring automatic payments: a payer on a lease pays with a saved method on a schedule (monthly, twice a month or every other week; 00107). start_autopay_run creates the payment. One live enrollment per payer per lease.\n\nOne row of autopay enrollments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Autopay enrollments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/autopay_runs":{"get":{"operationId":"list_autopay_runs","summary":"List autopay runs","description":"One row per autopay enrollment per scheduled run (00107; before that, per month): what was charged or why it was skipped. Unique per enrollment and scheduled date, so the scheduler can never charge a run twice. A monthly enrollment also has at most one run per month.\n\nPages through the autopay runs table of the organization, oldest first. Filters: id, autopay_enrollment_id, run_on, period_month, status, payment_transaction_id, scheduled_on.\n\nNeeds one of: receivables.read.","tags":["Autopay runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"autopay_enrollment_id","in":"query","required":false,"schema":{"description":"Only rows whose autopay_enrollment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose autopay_enrollment_id equals this."},{"name":"run_on","in":"query","required":false,"schema":{"description":"Only rows whose run_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose run_on equals this."},{"name":"period_month","in":"query","required":false,"schema":{"description":"Only rows whose period_month equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_month equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["initiated","skipped","succeeded","failed"]},"description":"Only rows whose status equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"scheduled_on","in":"query","required":false,"schema":{"description":"Only rows whose scheduled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose scheduled_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/autopay_runs/{id}":{"get":{"operationId":"get_autopay_runs_row","summary":"Get an autopay run","description":"One row per autopay enrollment per scheduled run (00107; before that, per month): what was charged or why it was skipped. Unique per enrollment and scheduled date, so the scheduler can never charge a run twice. A monthly enrollment also has at most one run per month.\n\nOne row of autopay runs by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Autopay runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/bank_account_ach_settings":{"get":{"operationId":"list_bank_account_ach_settings","summary":"List bank account ach settings","description":"NACHA file settings of a bank account the organization originates ACH credits from (vendor payments, owner distributions), as given by that bank. The ODFI is the account's own routing number and the balancing offset debits the account itself. Written by set_bank_account_ach_settings.\n\nPages through the bank account ach settings table of the organization, oldest first. Filters: id, bank_account_id, is_balanced, created_by.\n\nNeeds one of: banking.read, owners.read, payables.read.","tags":["Bank account ACH settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"is_balanced","in":"query","required":false,"schema":{"description":"Only rows whose is_balanced equals this.","type":"boolean"},"description":"Only rows whose is_balanced equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","owners.read","payables.read"]}},"/v1/bank_account_ach_settings/{id}":{"get":{"operationId":"get_bank_account_ach_settings_row","summary":"Get a bank account ach setting","description":"NACHA file settings of a bank account the organization originates ACH credits from (vendor payments, owner distributions), as given by that bank. The ODFI is the account's own routing number and the balancing offset debits the account itself. Written by set_bank_account_ach_settings.\n\nOne row of bank account ach settings by id, with every column the API shows.\n\nNeeds one of: banking.read, owners.read, payables.read.","tags":["Bank account ACH settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","owners.read","payables.read"]}},"/v1/bank_accounts/{id}":{"get":{"operationId":"get_bank_accounts_row","summary":"Get a bank account","description":"Real bank accounts of the organization (company operating, pooled trust, security deposit, reserve, escrow). Each is backed 1:1 by a GL account of subtype bank; its book balance is that GL account's balance. Processor settlement linkage lives in the payments migration.\n\nOne row of bank accounts by id, with every column the API shows.\n\nNeeds one of: banking.read, gl.read.","tags":["Bank accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read"]}},"/v1/bank_feed_accounts":{"get":{"operationId":"list_bank_feed_accounts","summary":"List bank feed accounts","description":"An account visible through a feed connection, mapped to one of our bank_accounts (null until mapped). At most one enabled feed per bank account.\n\nPages through the bank feed accounts table of the organization, oldest first. Filters: id, bank_feed_connection_id, bank_account_id, is_enabled, sync_start_on.\n\nNeeds one of: banking.read.","tags":["Bank feed accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_feed_connection_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_feed_connection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_feed_connection_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"sync_start_on","in":"query","required":false,"schema":{"description":"Only rows whose sync_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sync_start_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_feed_accounts/{id}":{"get":{"operationId":"get_bank_feed_accounts_row","summary":"Get a bank feed account","description":"An account visible through a feed connection, mapped to one of our bank_accounts (null until mapped). At most one enabled feed per bank account.\n\nOne row of bank feed accounts by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank feed accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_feed_connections":{"get":{"operationId":"list_bank_feed_connections","summary":"List bank feed connections","description":"A link to a bank through an aggregator (Plaid item, MX member, Finicity customer) or a manual file import source. Tokens live in the secrets vault; only a reference is stored.\n\nPages through the bank feed connections table of the organization, oldest first. Filters: id, provider, status, connected_by, has_new_accounts, has_more_to_sync.\n\nNeeds one of: banking.read.","tags":["Bank feed connections"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["plaid","mx","finicity","manual_import"]},"description":"Only rows whose provider equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["active","requires_reauth","error","disconnected"]},"description":"Only rows whose status equals this."},{"name":"connected_by","in":"query","required":false,"schema":{"description":"Only rows whose connected_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose connected_by equals this."},{"name":"has_new_accounts","in":"query","required":false,"schema":{"description":"Only rows whose has_new_accounts equals this.","type":"boolean"},"description":"Only rows whose has_new_accounts equals this."},{"name":"has_more_to_sync","in":"query","required":false,"schema":{"description":"Only rows whose has_more_to_sync equals this.","type":"boolean"},"description":"Only rows whose has_more_to_sync equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_feed_connections/{id}":{"get":{"operationId":"get_bank_feed_connections_row","summary":"Get a bank feed connection","description":"A link to a bank through an aggregator (Plaid item, MX member, Finicity customer) or a manual file import source. Tokens live in the secrets vault; only a reference is stored.\n\nOne row of bank feed connections by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank feed connections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_reconciliations":{"get":{"operationId":"list_bank_reconciliations","summary":"List bank reconciliations","description":"Bank statement reconciliation for one bank account and statement date. Cleared balance = beginning_balance + sum(cleared lines); difference = statement ending balance - cleared balance; must be 0 to complete. One open (in_progress or reopened) reconciliation per bank account.\n\nPages through the bank reconciliations table of the organization, oldest first. Filters: id, bank_account_id, statement_on, status, statement_document_id, reconciled_by, reopened_by, created_by.\n\nNeeds one of: banking.read.","tags":["Bank reconciliations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"statement_on","in":"query","required":false,"schema":{"description":"Only rows whose statement_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose statement_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["in_progress","completed","reopened"]},"description":"Only rows whose status equals this."},{"name":"statement_document_id","in":"query","required":false,"schema":{"description":"Only rows whose statement_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose statement_document_id equals this."},{"name":"reconciled_by","in":"query","required":false,"schema":{"description":"Only rows whose reconciled_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reconciled_by equals this."},{"name":"reopened_by","in":"query","required":false,"schema":{"description":"Only rows whose reopened_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reopened_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_reconciliations/{id}":{"get":{"operationId":"get_bank_reconciliations_row","summary":"Get a bank reconciliation","description":"Bank statement reconciliation for one bank account and statement date. Cleared balance = beginning_balance + sum(cleared lines); difference = statement ending balance - cleared balance; must be 0 to complete. One open (in_progress or reopened) reconciliation per bank account.\n\nOne row of bank reconciliations by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank reconciliations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transaction_matches":{"get":{"operationId":"list_bank_transaction_matches","summary":"List bank transaction matches","description":"Links a bank line to exactly one book item (journal entry, deposit, processor payout, check, vendor payment or bank transfer). One bank line may match several items (e.g. a lump ACH batch); each item matches at most one active bank line. Unmatching keeps the row with unmatched_at set.\n\nPages through the bank transaction matches table of the organization, oldest first. Filters: id, bank_transaction_id, journal_entry_id, deposit_id, processor_payout_id, check_id, vendor_payment_id, bank_transfer_id, match_method, matched_by, unmatched_by.\n\nNeeds one of: banking.read.","tags":["Bank transaction matches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_transaction_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"deposit_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_id equals this."},{"name":"processor_payout_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_payout_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_payout_id equals this."},{"name":"check_id","in":"query","required":false,"schema":{"description":"Only rows whose check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_id equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"bank_transfer_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_transfer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_transfer_id equals this."},{"name":"match_method","in":"query","required":false,"schema":{"description":"Only rows whose match_method equals this.","type":"string","enum":["auto","manual","rule"]},"description":"Only rows whose match_method equals this."},{"name":"matched_by","in":"query","required":false,"schema":{"description":"Only rows whose matched_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose matched_by equals this."},{"name":"unmatched_by","in":"query","required":false,"schema":{"description":"Only rows whose unmatched_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unmatched_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transaction_matches/{id}":{"get":{"operationId":"get_bank_transaction_matches_row","summary":"Get a bank transaction match","description":"Links a bank line to exactly one book item (journal entry, deposit, processor payout, check, vendor payment or bank transfer). One bank line may match several items (e.g. a lump ACH batch); each item matches at most one active bank line. Unmatching keeps the row with unmatched_at set.\n\nOne row of bank transaction matches by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank transaction matches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transactions":{"get":{"operationId":"list_bank_transactions","summary":"List bank transactions","description":"A line from the bank (feed or file import). amount_cents is signed from the bank account's point of view: positive = money in (deposit/credit), negative = money out (check, debit). Matched to book items in bank_transaction_matches.\n\nPages through the bank transactions table of the organization, oldest first. Filters: id, bank_account_id, bank_feed_account_id, posted_bank_transaction_id, posted_on, authorized_on, is_pending, status, categorization_rule_id, suggested_gl_account_id, suggested_property_id, requires_review.\n\nNeeds one of: banking.read.","tags":["Bank transactions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"bank_feed_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_feed_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_feed_account_id equals this."},{"name":"posted_bank_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose posted_bank_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose posted_bank_transaction_id equals this."},{"name":"posted_on","in":"query","required":false,"schema":{"description":"Only rows whose posted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose posted_on equals this."},{"name":"authorized_on","in":"query","required":false,"schema":{"description":"Only rows whose authorized_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose authorized_on equals this."},{"name":"is_pending","in":"query","required":false,"schema":{"description":"Only rows whose is_pending equals this.","type":"boolean"},"description":"Only rows whose is_pending equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["unmatched","matched","excluded","created_entry"]},"description":"Only rows whose status equals this."},{"name":"categorization_rule_id","in":"query","required":false,"schema":{"description":"Only rows whose categorization_rule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose categorization_rule_id equals this."},{"name":"suggested_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose suggested_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose suggested_gl_account_id equals this."},{"name":"suggested_property_id","in":"query","required":false,"schema":{"description":"Only rows whose suggested_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose suggested_property_id equals this."},{"name":"requires_review","in":"query","required":false,"schema":{"description":"Only rows whose requires_review equals this.","type":"boolean"},"description":"Only rows whose requires_review equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transactions/{id}":{"get":{"operationId":"get_bank_transactions_row","summary":"Get a bank transaction","description":"A line from the bank (feed or file import). amount_cents is signed from the bank account's point of view: positive = money in (deposit/credit), negative = money out (check, debit). Matched to book items in bank_transaction_matches.\n\nOne row of bank transactions by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transfer_lines":{"get":{"operationId":"list_bank_transfer_lines","summary":"List bank transfer lines","description":"Fund split of a bank transfer. from_property_id is the fund whose cash leaves the from-account, to_property_id the fund receiving it (null = the management company's own books). Same fund = plain move; property <-> company uses DUE_TO_MANAGEMENT / DUE_FROM_PROPERTIES. Property-to-different-property is not allowed.\n\nPages through the bank transfer lines table of the organization, oldest first. Filters: id, bank_transfer_id, from_property_id, to_property_id.\n\nNeeds one of: banking.read.","tags":["Bank transfer lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_transfer_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_transfer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_transfer_id equals this."},{"name":"from_property_id","in":"query","required":false,"schema":{"description":"Only rows whose from_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose from_property_id equals this."},{"name":"to_property_id","in":"query","required":false,"schema":{"description":"Only rows whose to_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose to_property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transfer_lines/{id}":{"get":{"operationId":"get_bank_transfer_lines_row","summary":"Get a bank transfer line","description":"Fund split of a bank transfer. from_property_id is the fund whose cash leaves the from-account, to_property_id the fund receiving it (null = the management company's own books). Same fund = plain move; property <-> company uses DUE_TO_MANAGEMENT / DUE_FROM_PROPERTIES. Property-to-different-property is not allowed.\n\nOne row of bank transfer lines by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank transfer lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transfers":{"get":{"operationId":"list_bank_transfers","summary":"List bank transfers","description":"Money moved between two of the organization's bank accounts (e.g. tenant deposits to the security deposit account, management fee sweep from trust to operating). Split by fund in bank_transfer_lines; posted as one journal entry.\n\nPages through the bank transfers table of the organization, oldest first. Filters: id, from_bank_account_id, to_bank_account_id, transferred_on, purpose, status, journal_entry_id, void_journal_entry_id, created_by.\n\nNeeds one of: banking.read.","tags":["Bank transfers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"from_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose from_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose from_bank_account_id equals this."},{"name":"to_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose to_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose to_bank_account_id equals this."},{"name":"transferred_on","in":"query","required":false,"schema":{"description":"Only rows whose transferred_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose transferred_on equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["security_deposit_transfer","management_fee_sweep","operating_transfer","reserve_transfer","company_advance","advance_repayment","processor_sweep","other"]},"description":"Only rows whose purpose equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["posted","voided"]},"description":"Only rows whose status equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_transfers/{id}":{"get":{"operationId":"get_bank_transfers_row","summary":"Get a bank transfer","description":"Money moved between two of the organization's bank accounts (e.g. tenant deposits to the security deposit account, management fee sweep from trust to operating). Split by fund in bank_transfer_lines; posted as one journal entry.\n\nOne row of bank transfers by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Bank transfers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/beds":{"get":{"operationId":"list_beds","summary":"List beds","description":"Individually leasable bed inside a unit (student and co-living housing). Leased by the bed through lease_beds; status is maintained from lease_beds.\n\nPages through the beds table of the organization, oldest first. Filters: id, property_id, unit_id, status, gender_designation, has_private_bathroom, is_ada_accessible, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Beds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["available","reserved","occupied","offline"]},"description":"Only rows whose status equals this."},{"name":"gender_designation","in":"query","required":false,"schema":{"description":"Only rows whose gender_designation equals this.","type":"string","enum":["unrestricted","female","male"]},"description":"Only rows whose gender_designation equals this."},{"name":"has_private_bathroom","in":"query","required":false,"schema":{"description":"Only rows whose has_private_bathroom equals this.","type":"boolean"},"description":"Only rows whose has_private_bathroom equals this."},{"name":"is_ada_accessible","in":"query","required":false,"schema":{"description":"Only rows whose is_ada_accessible equals this.","type":"boolean"},"description":"Only rows whose is_ada_accessible equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/beds/{id}":{"get":{"operationId":"get_beds_row","summary":"Get a bed","description":"Individually leasable bed inside a unit (student and co-living housing). Leased by the bed through lease_beds; status is maintained from lease_beds.\n\nOne row of beds by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Beds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/bill_check_settings":{"get":{"operationId":"list_bill_check_settings","summary":"List bill check settings","description":"Per-organization thresholds for the bill checks (bill_check_flags): duplicate window and how far above a vendor's usual price a line must be to be flagged. At most one row per org; no row = the defaults. Flags never change a bill; they show on the bill, the bills list and the approval step.\n\nPages through the bill check settings table of the organization, oldest first. Filters: id, is_enabled, updated_by.\n\nNeeds one of: payables.read, settings.write.","tags":["Bill check settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","settings.write"]},"post":{"operationId":"create_bill_check_settings_row","summary":"Create a bill check setting","description":"Per-organization thresholds for the bill checks (bill_check_flags): duplicate window and how far above a vendor's usual price a line must be to be flagged. At most one row per org; no row = the defaults. Flags never change a bill; they show on the bill, the bills list and the approval step.\n\nInserts one row of bill check settings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Bill check settings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"is_enabled":{"type":"boolean","description":"False = no bill is flagged for this organization."},"price_increase_pct":{"type":"number","description":"A line is flagged when its unit cost (or amount) is more than this percent above the vendor's median for the same GL account and property; 50 = 50% above usual."},"duplicate_window_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Two bills from one vendor with the same total are possible duplicates when their bill dates are at most this many days apart."},"history_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many months of the vendor's past posted bills (before the bill date) form the usual price."},"min_history_lines":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fewest past lines needed before a price is compared at all (fewer = not enough history, no flag)."}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/bill_check_settings/{id}":{"get":{"operationId":"get_bill_check_settings_row","summary":"Get a bill check setting","description":"Per-organization thresholds for the bill checks (bill_check_flags): duplicate window and how far above a vendor's usual price a line must be to be flagged. At most one row per org; no row = the defaults. Flags never change a bill; they show on the bill, the bills list and the approval step.\n\nOne row of bill check settings by id, with every column the API shows.\n\nNeeds one of: payables.read, settings.write.","tags":["Bill check settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","settings.write"]},"patch":{"operationId":"update_bill_check_settings_row","summary":"Update a bill check setting","description":"Per-organization thresholds for the bill checks (bill_check_flags): duplicate window and how far above a vendor's usual price a line must be to be flagged. At most one row per org; no row = the defaults. Flags never change a bill; they show on the bill, the bills list and the approval step.\n\nChanges the given fields of one row of bill check settings and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Bill check settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"is_enabled":{"type":"boolean","description":"False = no bill is flagged for this organization."},"price_increase_pct":{"type":"number","description":"A line is flagged when its unit cost (or amount) is more than this percent above the vendor's median for the same GL account and property; 50 = 50% above usual."},"duplicate_window_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Two bills from one vendor with the same total are possible duplicates when their bill dates are at most this many days apart."},"history_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many months of the vendor's past posted bills (before the bill date) form the usual price."},"min_history_lines":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fewest past lines needed before a price is compared at all (fewer = not enough history, no flag)."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/bill_correction_payments":{"get":{"operationId":"list_bill_correction_payments","summary":"List bill correction payments","description":"How a bill correction moved each payment: the allocation it ended and the one it made on the corrected bill (moved_cents), the overpaid part that became a vendor credit (overpaid_cents, vendor_credit_id), and the accrual entry that moved the payment's AP and cash between property funds (reclass_journal_entry_id). Voiding the payment reverses that entry and voids the credit. Insert-only.\n\nPages through the bill correction payments table of the organization, oldest first. Filters: id, bill_correction_id, vendor_payment_id, original_allocation_id, corrected_allocation_id, reclass_journal_entry_id, vendor_credit_id.\n\nNeeds one of: payables.read.","tags":["Bill correction payments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bill_correction_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_correction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_correction_id equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"original_allocation_id","in":"query","required":false,"schema":{"description":"Only rows whose original_allocation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose original_allocation_id equals this."},{"name":"corrected_allocation_id","in":"query","required":false,"schema":{"description":"Only rows whose corrected_allocation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corrected_allocation_id equals this."},{"name":"reclass_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reclass_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reclass_journal_entry_id equals this."},{"name":"vendor_credit_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_credit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/bill_correction_payments/{id}":{"get":{"operationId":"get_bill_correction_payments_row","summary":"Get a bill correction payment","description":"How a bill correction moved each payment: the allocation it ended and the one it made on the corrected bill (moved_cents), the overpaid part that became a vendor credit (overpaid_cents, vendor_credit_id), and the accrual entry that moved the payment's AP and cash between property funds (reclass_journal_entry_id). Voiding the payment reverses that entry and voids the credit. Insert-only.\n\nOne row of bill correction payments by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Bill correction payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/bill_corrections":{"get":{"operationId":"list_bill_corrections","summary":"List bill corrections","description":"Audit trail of a posted bill's correction (correct_bill): the original bill and its entry, the reversal that voided it, the corrected bill and its entry, and why. is_prior_period: the original month was closed, so both entries are dated in an open month and listed in prior_period_adjustments. Insert-only.\n\nPages through the bill corrections table of the organization, oldest first. Filters: id, original_bill_id, corrected_bill_id, original_entry_id, reversal_entry_id, corrected_entry_id, is_prior_period, adjusted_period_id, created_by.\n\nNeeds one of: payables.read.","tags":["Bill corrections"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"original_bill_id","in":"query","required":false,"schema":{"description":"Only rows whose original_bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose original_bill_id equals this."},{"name":"corrected_bill_id","in":"query","required":false,"schema":{"description":"Only rows whose corrected_bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corrected_bill_id equals this."},{"name":"original_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose original_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose original_entry_id equals this."},{"name":"reversal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_entry_id equals this."},{"name":"corrected_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose corrected_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corrected_entry_id equals this."},{"name":"is_prior_period","in":"query","required":false,"schema":{"description":"Only rows whose is_prior_period equals this.","type":"boolean"},"description":"Only rows whose is_prior_period equals this."},{"name":"adjusted_period_id","in":"query","required":false,"schema":{"description":"Only rows whose adjusted_period_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose adjusted_period_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/bill_corrections/{id}":{"get":{"operationId":"get_bill_corrections_row","summary":"Get a bill correction","description":"Audit trail of a posted bill's correction (correct_bill): the original bill and its entry, the reversal that voided it, the corrected bill and its entry, and why. is_prior_period: the original month was closed, so both entries are dated in an open month and listed in prior_period_adjustments. Insert-only.\n\nOne row of bill corrections by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Bill corrections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/bill_lines":{"get":{"operationId":"list_bill_lines","summary":"List bill lines","description":"Coding of a bill: expense (or asset/liability) GL account, property fund, unit, work order, PO line and amount. Negative amounts are discounts/credits on the invoice. The bill's lines must sum to bills.total_cents.\n\nPages through the bill lines table of the organization, oldest first. Filters: id, bill_id, gl_account_id, property_id, unit_id, work_order_id, purchase_order_line_id, is_billable_to_owner, chargeback_lease_id, chargeback_charge_type_id, tenant_charge_id, labor_entry_id, material_entry_id, work_order_estimate_id, capital_project_id, cost_code_id, has_line_markup, is_non_recurring, asset_id, vendor_contract_id, incident_id, service_from_on, service_to_on.\n\nNeeds one of: payables.write.","tags":["Bill lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"purchase_order_line_id","in":"query","required":false,"schema":{"description":"Only rows whose purchase_order_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose purchase_order_line_id equals this."},{"name":"is_billable_to_owner","in":"query","required":false,"schema":{"description":"Only rows whose is_billable_to_owner equals this.","type":"boolean"},"description":"Only rows whose is_billable_to_owner equals this."},{"name":"chargeback_lease_id","in":"query","required":false,"schema":{"description":"Only rows whose chargeback_lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose chargeback_lease_id equals this."},{"name":"chargeback_charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose chargeback_charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose chargeback_charge_type_id equals this."},{"name":"tenant_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose tenant_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tenant_charge_id equals this."},{"name":"labor_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose labor_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose labor_entry_id equals this."},{"name":"material_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose material_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose material_entry_id equals this."},{"name":"work_order_estimate_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_estimate_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_estimate_id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"has_line_markup","in":"query","required":false,"schema":{"description":"Only rows whose has_line_markup equals this.","type":"boolean"},"description":"Only rows whose has_line_markup equals this."},{"name":"is_non_recurring","in":"query","required":false,"schema":{"description":"Only rows whose is_non_recurring equals this.","type":"boolean"},"description":"Only rows whose is_non_recurring equals this."},{"name":"asset_id","in":"query","required":false,"schema":{"description":"Only rows whose asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose asset_id equals this."},{"name":"vendor_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_contract_id equals this."},{"name":"incident_id","in":"query","required":false,"schema":{"description":"Only rows whose incident_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose incident_id equals this."},{"name":"service_from_on","in":"query","required":false,"schema":{"description":"Only rows whose service_from_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose service_from_on equals this."},{"name":"service_to_on","in":"query","required":false,"schema":{"description":"Only rows whose service_to_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose service_to_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/bill_lines/{id}":{"get":{"operationId":"get_bill_lines_row","summary":"Get a bill line","description":"Coding of a bill: expense (or asset/liability) GL account, property fund, unit, work order, PO line and amount. Negative amounts are discounts/credits on the invoice. The bill's lines must sum to bills.total_cents.\n\nOne row of bill lines by id, with every column the API shows.\n\nNeeds one of: payables.write.","tags":["Bill lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/board_approvals":{"get":{"operationId":"list_board_approvals","summary":"List board approvals","description":"An item put to the board for a vote: a bill or work order over the board's spending limit, an architectural request, an assessment schedule, the annual budget, a fine waiver, a vendor contract, a reserve expenditure or a policy. Exactly the FK matching subject is set (none for reserve_expenditure / policy / other). Decided automatically by cast_board_vote when the approval_rule is met.\n\nPages through the board approvals table of the organization, oldest first. Filters: id, association_id, subject, bill_id, work_order_id, architectural_request_id, assessment_schedule_id, budget_id, violation_fine_id, vendor_contract_id, approval_rule, status, board_meeting_id, requested_by.\n\nNeeds one of: associations.read.","tags":["Board approvals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"subject","in":"query","required":false,"schema":{"description":"Only rows whose subject equals this.","type":"string","enum":["bill","work_order","architectural_request","assessment_schedule","budget","violation_fine_waiver","vendor_contract","reserve_expenditure","policy","other"]},"description":"Only rows whose subject equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"architectural_request_id","in":"query","required":false,"schema":{"description":"Only rows whose architectural_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose architectural_request_id equals this."},{"name":"assessment_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_schedule_id equals this."},{"name":"budget_id","in":"query","required":false,"schema":{"description":"Only rows whose budget_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_id equals this."},{"name":"violation_fine_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_fine_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_fine_id equals this."},{"name":"vendor_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_contract_id equals this."},{"name":"approval_rule","in":"query","required":false,"schema":{"description":"Only rows whose approval_rule equals this.","type":"string","enum":["simple_majority","two_thirds","unanimous","any_one"]},"description":"Only rows whose approval_rule equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","approved","rejected","withdrawn","expired"]},"description":"Only rows whose status equals this."},{"name":"board_meeting_id","in":"query","required":false,"schema":{"description":"Only rows whose board_meeting_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose board_meeting_id equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/board_approvals/{id}":{"get":{"operationId":"get_board_approvals_row","summary":"Get a board approval","description":"An item put to the board for a vote: a bill or work order over the board's spending limit, an architectural request, an assessment schedule, the annual budget, a fine waiver, a vendor contract, a reserve expenditure or a policy. Exactly the FK matching subject is set (none for reserve_expenditure / policy / other). Decided automatically by cast_board_vote when the approval_rule is met.\n\nOne row of board approvals by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Board approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/board_meeting_attendees":{"get":{"operationId":"list_board_meeting_attendees","summary":"List board meeting attendees","description":"Attendance at a board meeting: a board member, another contact (homeowner, attorney, vendor) or a staff user (the manager). Exactly one of the three is set.\n\nPages through the board meeting attendees table of the organization, oldest first. Filters: id, board_meeting_id, board_member_id, contact_id, user_id, attendance.\n\nNeeds one of: associations.read, associations.write.","tags":["Board meeting attendees"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"board_meeting_id","in":"query","required":false,"schema":{"description":"Only rows whose board_meeting_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose board_meeting_id equals this."},{"name":"board_member_id","in":"query","required":false,"schema":{"description":"Only rows whose board_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose board_member_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"attendance","in":"query","required":false,"schema":{"description":"Only rows whose attendance equals this.","type":"string","enum":["present","remote","absent","excused"]},"description":"Only rows whose attendance equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/board_meeting_attendees/{id}":{"get":{"operationId":"get_board_meeting_attendees_row","summary":"Get a board meeting attendee","description":"Attendance at a board meeting: a board member, another contact (homeowner, attorney, vendor) or a staff user (the manager). Exactly one of the three is set.\n\nOne row of board meeting attendees by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Board meeting attendees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/board_meetings/{id}":{"get":{"operationId":"get_board_meetings_row","summary":"Get a board meeting","description":"Board and membership meetings of an association: notice, agenda, quorum and minutes (documents). Executive sessions are hidden from homeowners.\n\nOne row of board meetings by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Board meetings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_board_meetings_row","summary":"Update a board meeting","description":"Board and membership meetings of an association: notice, agenda, quorum and minutes (documents). Executive sessions are hidden from homeowners.\n\nChanges the given fields of one row of board meetings and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Board meetings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"meeting_type":{"type":"string","enum":["regular","special","annual","executive_session","emergency","budget","organizational"],"description":"meeting type"},"title":{"type":"string","maxLength":100000,"description":"title"},"scheduled_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled at"},"ended_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ended at"},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"location"},{"type":"null"}]},"virtual_meeting_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"virtual meeting url"},{"type":"null"}]},"is_open_to_members":{"type":"boolean","description":"Homeowners may attend and see the agenda / minutes (false for executive sessions)."},"quorum_present":{"anyOf":[{"type":"boolean","description":"quorum present"},{"type":"null"}]},"agenda_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"agenda document id"},{"type":"null"}]},"minutes_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"minutes document id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/board_members":{"get":{"operationId":"list_board_members","summary":"List board members","description":"Board of directors seats held by contacts, one row per term. A member is current when term_starts_on <= today and (term_ends_on and resigned_on are null or in the future). Board members get the board portal (approvals, votes, financials) through their contact login.\n\nPages through the board members table of the organization, oldest first. Filters: id, association_id, contact_id, homeowner_account_id, board_role, term_starts_on, term_ends_on, elected_on, association_election_id, is_signer, can_approve_payables, resigned_on, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Board members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"board_role","in":"query","required":false,"schema":{"description":"Only rows whose board_role equals this.","type":"string","enum":["president","vice_president","secretary","treasurer","director","member_at_large","other"]},"description":"Only rows whose board_role equals this."},{"name":"term_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose term_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose term_starts_on equals this."},{"name":"term_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose term_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose term_ends_on equals this."},{"name":"elected_on","in":"query","required":false,"schema":{"description":"Only rows whose elected_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose elected_on equals this."},{"name":"association_election_id","in":"query","required":false,"schema":{"description":"Only rows whose association_election_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_election_id equals this."},{"name":"is_signer","in":"query","required":false,"schema":{"description":"Only rows whose is_signer equals this.","type":"boolean"},"description":"Only rows whose is_signer equals this."},{"name":"can_approve_payables","in":"query","required":false,"schema":{"description":"Only rows whose can_approve_payables equals this.","type":"boolean"},"description":"Only rows whose can_approve_payables equals this."},{"name":"resigned_on","in":"query","required":false,"schema":{"description":"Only rows whose resigned_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose resigned_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"post":{"operationId":"create_board_members_row","summary":"Create a board member","description":"Board of directors seats held by contacts, one row per term. A member is current when term_starts_on <= today and (term_ends_on and resigned_on are null or in the future). Board members get the board portal (approvals, votes, financials) through their contact login.\n\nInserts one row of board members in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Board members"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"homeowner_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The account that qualifies this person as a member (most CC&Rs require directors to be owners). Null for appointed outside directors."},{"type":"null"}]},"board_role":{"type":"string","enum":["president","vice_president","secretary","treasurer","director","member_at_large","other"],"description":"board role"},"term_starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"term starts on"},"term_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"term ends on"},{"type":"null"}]},"elected_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"elected on"},{"type":"null"}]},"association_election_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Election that seated this member, if elected through the platform."},{"type":"null"}]},"is_signer":{"type":"boolean","description":"Authorized signer on association bank accounts and contracts."},"can_approve_payables":{"type":"boolean","description":"Receives bill / invoice approvals routed to the board."},"resigned_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"resigned on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["association_id","contact_id","term_starts_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/board_members/{id}":{"get":{"operationId":"get_board_members_row","summary":"Get a board member","description":"Board of directors seats held by contacts, one row per term. A member is current when term_starts_on <= today and (term_ends_on and resigned_on are null or in the future). Board members get the board portal (approvals, votes, financials) through their contact login.\n\nOne row of board members by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Board members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_board_members_row","summary":"Update a board member","description":"Board of directors seats held by contacts, one row per term. A member is current when term_starts_on <= today and (term_ends_on and resigned_on are null or in the future). Board members get the board portal (approvals, votes, financials) through their contact login.\n\nChanges the given fields of one row of board members and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Board members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"homeowner_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The account that qualifies this person as a member (most CC&Rs require directors to be owners). Null for appointed outside directors."},{"type":"null"}]},"board_role":{"type":"string","enum":["president","vice_president","secretary","treasurer","director","member_at_large","other"],"description":"board role"},"term_starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"term starts on"},"term_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"term ends on"},{"type":"null"}]},"elected_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"elected on"},{"type":"null"}]},"association_election_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Election that seated this member, if elected through the platform."},{"type":"null"}]},"is_signer":{"type":"boolean","description":"Authorized signer on association bank accounts and contracts."},"can_approve_payables":{"type":"boolean","description":"Receives bill / invoice approvals routed to the board."},"resigned_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"resigned on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]},"delete":{"operationId":"delete_board_members_row","summary":"Delete a board member","description":"Board of directors seats held by contacts, one row per term. A member is current when term_starts_on <= today and (term_ends_on and resigned_on are null or in the future). Board members get the board portal (approvals, votes, financials) through their contact login.\n\nDeletes one row of board members. The database refuses it where other records still need the row.\n\nNeeds one of: associations.write.","tags":["Board members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/board_votes":{"get":{"operationId":"list_board_votes","summary":"List board votes","description":"Each director's vote on a board approval (one per seat; may be changed until the approval is decided). recorded_by is the director's own login or the manager entering a meeting vote.\n\nPages through the board votes table of the organization, oldest first. Filters: id, board_approval_id, board_member_id, vote, recorded_by.\n\nNeeds one of: associations.read.","tags":["Board votes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"board_approval_id","in":"query","required":false,"schema":{"description":"Only rows whose board_approval_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose board_approval_id equals this."},{"name":"board_member_id","in":"query","required":false,"schema":{"description":"Only rows whose board_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose board_member_id equals this."},{"name":"vote","in":"query","required":false,"schema":{"description":"Only rows whose vote equals this.","type":"string","enum":["yes","no","abstain","recused"]},"description":"Only rows whose vote equals this."},{"name":"recorded_by","in":"query","required":false,"schema":{"description":"Only rows whose recorded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recorded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/board_votes/{id}":{"get":{"operationId":"get_board_votes_row","summary":"Get a board vote","description":"Each director's vote on a board approval (one per seat; may be changed until the approval is decided). recorded_by is the director's own login or the manager entering a meeting vote.\n\nOne row of board votes by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Board votes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/budget_assumptions":{"get":{"operationId":"list_budget_assumptions","summary":"List budget assumptions","description":"The drivers a budget was built on, effective from a month until the next row of the same kind (and label): occupancy, average rent, concessions, move-ins, turn cost and contract rates. rent_variance_drivers compares actual rent to them.\n\nPages through the budget assumptions table of the organization, oldest first. Filters: id, budget_id, property_id, kind, effective_on, created_by.\n\nNeeds one of: gl.read, gl.write.","tags":["Budget assumptions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"budget_id","in":"query","required":false,"schema":{"description":"Only rows whose budget_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["occupancy_pct","average_rent","concessions","move_ins","turn_cost","contract_rate"]},"description":"Only rows whose kind equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]},"post":{"operationId":"create_budget_assumptions_row","summary":"Create a budget assumption","description":"The drivers a budget was built on, effective from a month until the next row of the same kind (and label): occupancy, average rent, concessions, move-ins, turn cost and contract rates. rent_variance_drivers compares actual rent to them.\n\nInserts one row of budget assumptions in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write.","tags":["Budget assumptions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"kind":{"type":"string","enum":["occupancy_pct","average_rent","concessions","move_ins","turn_cost","contract_rate"],"description":"kind"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"value":{"type":"number","description":"occupancy_pct as a percentage (95 = 95%); move_ins as a count; every other kind in cents."},"label":{"anyOf":[{"type":"string","maxLength":100000,"description":"Names a contract_rate (the service contract) or narrows a driver."},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["budget_id","property_id","kind","effective_on","value"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/budget_assumptions/{id}":{"get":{"operationId":"get_budget_assumptions_row","summary":"Get a budget assumption","description":"The drivers a budget was built on, effective from a month until the next row of the same kind (and label): occupancy, average rent, concessions, move-ins, turn cost and contract rates. rent_variance_drivers compares actual rent to them.\n\nOne row of budget assumptions by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write.","tags":["Budget assumptions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]},"delete":{"operationId":"delete_budget_assumptions_row","summary":"Delete a budget assumption","description":"The drivers a budget was built on, effective from a month until the next row of the same kind (and label): occupancy, average rent, concessions, move-ins, turn cost and contract rates. rent_variance_drivers compares actual rent to them.\n\nDeletes one row of budget assumptions. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write.","tags":["Budget assumptions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/budget_forecasts":{"get":{"operationId":"list_budget_forecasts","summary":"List budget forecasts","description":"A revised forecast for a property's fiscal year, kept apart from the original budget (budget_id) so reports compare original, forecast and actual. Months through actuals_through_on start from actuals, later months from the budget; people then edit any month.\n\nPages through the budget forecasts table of the organization, oldest first. Filters: id, property_id, budget_id, prepared_on, actuals_through_on, created_by.\n\nNeeds one of: gl.read, gl.write.","tags":["Budget forecasts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"budget_id","in":"query","required":false,"schema":{"description":"Only rows whose budget_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_id equals this."},{"name":"prepared_on","in":"query","required":false,"schema":{"description":"Only rows whose prepared_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose prepared_on equals this."},{"name":"actuals_through_on","in":"query","required":false,"schema":{"description":"Only rows whose actuals_through_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose actuals_through_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]}},"/v1/budget_forecasts/{id}":{"get":{"operationId":"get_budget_forecasts_row","summary":"Get a budget forecast","description":"A revised forecast for a property's fiscal year, kept apart from the original budget (budget_id) so reports compare original, forecast and actual. Months through actuals_through_on start from actuals, later months from the budget; people then edit any month.\n\nOne row of budget forecasts by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write.","tags":["Budget forecasts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]}},"/v1/budget_lines":{"get":{"operationId":"list_budget_lines","summary":"List budget lines","description":"Budgeted amount per GL account per month. amount_cents is positive in the account's natural direction (income expected, expense expected).\n\nPages through the budget lines table of the organization, oldest first. Filters: id, budget_id, gl_account_id, month_on.\n\nNeeds one of: gl.write, owners.write.","tags":["Budget lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"budget_id","in":"query","required":false,"schema":{"description":"Only rows whose budget_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"month_on","in":"query","required":false,"schema":{"description":"Only rows whose month_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose month_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]},"post":{"operationId":"create_budget_lines_row","summary":"Create a budget line","description":"Budgeted amount per GL account per month. amount_cents is positive in the account's natural direction (income expected, expense expected).\n\nInserts one row of budget lines in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write, owners.write.","tags":["Budget lines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"gl account id"},"month_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day of the budgeted month."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["budget_id","gl_account_id","month_on","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/budget_lines/{id}":{"get":{"operationId":"get_budget_lines_row","summary":"Get a budget line","description":"Budgeted amount per GL account per month. amount_cents is positive in the account's natural direction (income expected, expense expected).\n\nOne row of budget lines by id, with every column the API shows.\n\nNeeds one of: gl.write, owners.write.","tags":["Budget lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]},"delete":{"operationId":"delete_budget_lines_row","summary":"Delete a budget line","description":"Budgeted amount per GL account per month. amount_cents is positive in the account's natural direction (income expected, expense expected).\n\nDeletes one row of budget lines. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write, owners.write.","tags":["Budget lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/budget_variance_notes":{"get":{"operationId":"list_budget_variance_notes","summary":"List budget variance notes","description":"Staff explanation of a budget-vs-actual variance on one GL account of a budget version, for one month (month_on) or the whole fiscal year (month_on null). Several notes per line are allowed (a short thread); created_by and created_at say who wrote it and when. Not money: written directly by staff with gl.write or properties.write on the budget's property; authors edit or delete their own.\n\nPages through the budget variance notes table of the organization, oldest first. Filters: id, budget_id, gl_account_id, month_on, created_by, source_kind, action_owner_user_id, action_due_on, task_id, ai_run_id.\n\nNeeds one of: gl.read.","tags":["Budget variance notes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"budget_id","in":"query","required":false,"schema":{"description":"Only rows whose budget_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"month_on","in":"query","required":false,"schema":{"description":"Only rows whose month_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose month_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"source_kind","in":"query","required":false,"schema":{"description":"Only rows whose source_kind equals this.","type":"string","enum":["verified_fact","manager_statement","suggested"]},"description":"Only rows whose source_kind equals this."},{"name":"action_owner_user_id","in":"query","required":false,"schema":{"description":"Only rows whose action_owner_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose action_owner_user_id equals this."},{"name":"action_due_on","in":"query","required":false,"schema":{"description":"Only rows whose action_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose action_due_on equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"ai_run_id","in":"query","required":false,"schema":{"description":"Only rows whose ai_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ai_run_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]},"post":{"operationId":"create_budget_variance_notes_row","summary":"Create a budget variance note","description":"Staff explanation of a budget-vs-actual variance on one GL account of a budget version, for one month (month_on) or the whole fiscal year (month_on null). Several notes per line are allowed (a short thread); created_by and created_at say who wrote it and when. Not money: written directly by staff with gl.write or properties.write on the budget's property; authors edit or delete their own.\n\nInserts one row of budget variance notes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write, properties.write.","tags":["Budget variance notes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Budget version the note explains (notes stay with their version; a revision starts without them)."},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Income or expense account (budget line) the note explains."},"month_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day of the month the note explains; null = the whole fiscal year."},{"type":"null"}]},"note":{"type":"string","maxLength":100000,"description":"The explanation, 1 to 1000 characters (e.g. \"Roof leak repairs, insurance claim pending\")."},"source_kind":{"type":"string","enum":["verified_fact","manager_statement","suggested"],"description":"verified_fact, manager_statement or suggested (an AI draft until a person confirms it)."},"action_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"The next action the variance calls for (\"Schedule an engineering assessment\")."},{"type":"null"}]},"action_owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Who owns the next action."},{"type":"null"}]},"action_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the next action is due."},{"type":"null"}]},"task_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The task created for the next action, shown in the action queue."},{"type":"null"}]}},"required":["budget_id","gl_account_id","note"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","properties.write"]}},"/v1/budget_variance_notes/{id}":{"get":{"operationId":"get_budget_variance_notes_row","summary":"Get a budget variance note","description":"Staff explanation of a budget-vs-actual variance on one GL account of a budget version, for one month (month_on) or the whole fiscal year (month_on null). Several notes per line are allowed (a short thread); created_by and created_at say who wrote it and when. Not money: written directly by staff with gl.write or properties.write on the budget's property; authors edit or delete their own.\n\nOne row of budget variance notes by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Budget variance notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]},"delete":{"operationId":"delete_budget_variance_notes_row","summary":"Delete a budget variance note","description":"Staff explanation of a budget-vs-actual variance on one GL account of a budget version, for one month (month_on) or the whole fiscal year (month_on null). Several notes per line are allowed (a short thread); created_by and created_at say who wrote it and when. Not money: written directly by staff with gl.write or properties.write on the budget's property; authors edit or delete their own.\n\nDeletes one row of budget variance notes. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write.","tags":["Budget variance notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/building_energy_years":{"get":{"operationId":"list_building_energy_years","summary":"List building energy years","description":"Annual energy use of a covered building (or a property with one building) for NYC Local Law 97: gross floor area, occupancy group and use by fuel. ll97_building_emissions turns it into emissions, the limit and the estimated penalty.\n\nPages through the building energy years table of the organization, oldest first. Filters: id, property_id, building_id, created_by.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Building energy years"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"post":{"operationId":"create_building_energy_years_row","summary":"Create a building energy year","description":"Annual energy use of a covered building (or a property with one building) for NYC Local Law 97: gross floor area, occupancy group and use by fuel. ll97_building_emissions turns it into emissions, the limit and the estimated penalty.\n\nInserts one row of building energy years in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write.","tags":["Building energy years"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"calendar_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"calendar year"},"gross_floor_area_sf":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"gross floor area sf"},"occupancy_group":{"type":"string","maxLength":100000,"description":"NYC Building Code occupancy group (multifamily = R-2); one of public.ll97_emission_limits.occupancy_group."},"electricity_kwh":{"type":"number","description":"electricity kwh"},"natural_gas_therms":{"type":"number","description":"natural gas therms"},"fuel_oil_2_gallons":{"type":"number","description":"No. 2 fuel oil in gallons, 138.6 kBtu each."},"district_steam_mlb":{"type":"number","description":"District steam in thousand pounds (Mlb), 1,194 kBtu each."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","calendar_year","gross_floor_area_sf"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/building_energy_years/{id}":{"get":{"operationId":"get_building_energy_years_row","summary":"Get a building energy year","description":"Annual energy use of a covered building (or a property with one building) for NYC Local Law 97: gross floor area, occupancy group and use by fuel. ll97_building_emissions turns it into emissions, the limit and the estimated penalty.\n\nOne row of building energy years by id, with every column the API shows.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Building energy years"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"patch":{"operationId":"update_building_energy_years_row","summary":"Update a building energy year","description":"Annual energy use of a covered building (or a property with one building) for NYC Local Law 97: gross floor area, occupancy group and use by fuel. ll97_building_emissions turns it into emissions, the limit and the estimated penalty.\n\nChanges the given fields of one row of building energy years and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write.","tags":["Building energy years"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"calendar_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"calendar year"},"gross_floor_area_sf":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"gross floor area sf"},"occupancy_group":{"type":"string","maxLength":100000,"description":"NYC Building Code occupancy group (multifamily = R-2); one of public.ll97_emission_limits.occupancy_group."},"electricity_kwh":{"type":"number","description":"electricity kwh"},"natural_gas_therms":{"type":"number","description":"natural gas therms"},"fuel_oil_2_gallons":{"type":"number","description":"No. 2 fuel oil in gallons, 138.6 kBtu each."},"district_steam_mlb":{"type":"number","description":"District steam in thousand pounds (Mlb), 1,194 kBtu each."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/building_violations":{"get":{"operationId":"list_building_violations","summary":"List building violations","description":"Housing and building code violations issued by an agency against a property, building or unit (HPD, DOB, fire department, REAC). Tracks the corrective work order, the repair, the certification of correction and the dismissal as separate facts, with one responsible person and the next follow-up date. Association rule violations are violations.\n\nPages through the building violations table of the organization, oldest first. Filters: id, property_id, building_id, unit_id, severity, issued_on, cure_by_on, status, repaired_on, certified_on, dismissed_on, work_order_id, owner_user_id, next_follow_up_on, created_by, certify_by_on, agency_status_on.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Building violations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"severity","in":"query","required":false,"schema":{"description":"Only rows whose severity equals this.","type":"string","enum":["low","medium","high","immediately_hazardous"]},"description":"Only rows whose severity equals this."},{"name":"issued_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_on equals this."},{"name":"cure_by_on","in":"query","required":false,"schema":{"description":"Only rows whose cure_by_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cure_by_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","repair_in_progress","repaired","certified","dismissed","closed"]},"description":"Only rows whose status equals this."},{"name":"repaired_on","in":"query","required":false,"schema":{"description":"Only rows whose repaired_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose repaired_on equals this."},{"name":"certified_on","in":"query","required":false,"schema":{"description":"Only rows whose certified_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose certified_on equals this."},{"name":"dismissed_on","in":"query","required":false,"schema":{"description":"Only rows whose dismissed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose dismissed_on equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"owner_user_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_user_id equals this."},{"name":"next_follow_up_on","in":"query","required":false,"schema":{"description":"Only rows whose next_follow_up_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_follow_up_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"certify_by_on","in":"query","required":false,"schema":{"description":"Only rows whose certify_by_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose certify_by_on equals this."},{"name":"agency_status_on","in":"query","required":false,"schema":{"description":"Only rows whose agency_status_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose agency_status_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"post":{"operationId":"create_building_violations_row","summary":"Create a building violation","description":"Housing and building code violations issued by an agency against a property, building or unit (HPD, DOB, fire department, REAC). Tracks the corrective work order, the repair, the certification of correction and the dismissal as separate facts, with one responsible person and the next follow-up date. Association rule violations are violations.\n\nInserts one row of building violations in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write.","tags":["Building violations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"agency":{"type":"string","maxLength":100000,"description":"agency"},"violation_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"violation number"},{"type":"null"}]},"severity":{"type":"string","enum":["low","medium","high","immediately_hazardous"],"description":"severity"},"description":{"type":"string","maxLength":100000,"description":"description"},"issued_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},"cure_by_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Deadline the agency set to correct the condition."},{"type":"null"}]},"repaired_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the condition was fixed."},{"type":"null"}]},"certified_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When proof of correction went to the agency."},{"type":"null"}]},"dismissed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the agency removed the violation from the record."},{"type":"null"}]},"penalty_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"penalty cents"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"next_follow_up_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"next follow up on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"source":{"type":"string","maxLength":100000,"description":"manual = entered by staff; hpd = NYC HPD Housing Maintenance Code violations (Open Data wvxf-dwi5); dob = NYC DOB violations (Open Data 3h2n-5cm9)."},"external_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"The agency record id (HPD violationid, DOB isn_dob_bis_viol). The sync upserts on it; null for manual rows."},{"type":"null"}]},"violation_class":{"anyOf":[{"type":"string","maxLength":100000,"description":"HPD class: A non-hazardous, B hazardous, C immediately hazardous, I information order. Null for other agencies."},{"type":"null"}]},"certify_by_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the agency expects the certification of correction (HPD new or original certify-by date). cure_by_on is the correct-by date."},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"Apartment and story from the agency record."},{"type":"null"}]},"synced_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the NYC Open Data sync last wrote this row."},{"type":"null"}]}},"required":["property_id","agency","description","issued_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/building_violations/{id}":{"get":{"operationId":"get_building_violations_row","summary":"Get a building violation","description":"Housing and building code violations issued by an agency against a property, building or unit (HPD, DOB, fire department, REAC). Tracks the corrective work order, the repair, the certification of correction and the dismissal as separate facts, with one responsible person and the next follow-up date. Association rule violations are violations.\n\nOne row of building violations by id, with every column the API shows.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Building violations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"patch":{"operationId":"update_building_violations_row","summary":"Update a building violation","description":"Housing and building code violations issued by an agency against a property, building or unit (HPD, DOB, fire department, REAC). Tracks the corrective work order, the repair, the certification of correction and the dismissal as separate facts, with one responsible person and the next follow-up date. Association rule violations are violations.\n\nChanges the given fields of one row of building violations and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write.","tags":["Building violations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"agency":{"type":"string","maxLength":100000,"description":"agency"},"violation_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"violation number"},{"type":"null"}]},"severity":{"type":"string","enum":["low","medium","high","immediately_hazardous"],"description":"severity"},"description":{"type":"string","maxLength":100000,"description":"description"},"issued_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},"cure_by_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Deadline the agency set to correct the condition."},{"type":"null"}]},"repaired_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the condition was fixed."},{"type":"null"}]},"certified_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When proof of correction went to the agency."},{"type":"null"}]},"dismissed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the agency removed the violation from the record."},{"type":"null"}]},"penalty_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"penalty cents"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"next_follow_up_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"next follow up on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"source":{"type":"string","maxLength":100000,"description":"manual = entered by staff; hpd = NYC HPD Housing Maintenance Code violations (Open Data wvxf-dwi5); dob = NYC DOB violations (Open Data 3h2n-5cm9)."},"external_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"The agency record id (HPD violationid, DOB isn_dob_bis_viol). The sync upserts on it; null for manual rows."},{"type":"null"}]},"violation_class":{"anyOf":[{"type":"string","maxLength":100000,"description":"HPD class: A non-hazardous, B hazardous, C immediately hazardous, I information order. Null for other agencies."},{"type":"null"}]},"certify_by_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the agency expects the certification of correction (HPD new or original certify-by date). cure_by_on is the correct-by date."},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"Apartment and story from the agency record."},{"type":"null"}]},"synced_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the NYC Open Data sync last wrote this row."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]},"delete":{"operationId":"delete_building_violations_row","summary":"Delete a building violation","description":"Housing and building code violations issued by an agency against a property, building or unit (HPD, DOB, fire department, REAC). Tracks the corrective work order, the repair, the certification of correction and the dismissal as separate facts, with one responsible person and the next follow-up date. Association rule violations are violations.\n\nDeletes one row of building violations. The database refuses it where other records still need the row.\n\nNeeds one of: compliance.write.","tags":["Building violations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/buildings":{"get":{"operationId":"list_buildings","summary":"List buildings","description":"Optional grouping of units inside a property (Building A, Tower 2). Address columns are set only when the building has its own street address; null = the property address.\n\nPages through the buildings table of the organization, oldest first. Filters: id, property_id, has_elevator, has_basement.\n\nNeeds one of: properties.read, properties.write.","tags":["Buildings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"has_elevator","in":"query","required":false,"schema":{"description":"Only rows whose has_elevator equals this.","type":"boolean"},"description":"Only rows whose has_elevator equals this."},{"name":"has_basement","in":"query","required":false,"schema":{"description":"Only rows whose has_basement equals this.","type":"boolean"},"description":"Only rows whose has_basement equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_buildings_row","summary":"Create a building","description":"Optional grouping of units inside a property (Building A, Tower 2). Address columns are set only when the building has its own street address; null = the property address.\n\nInserts one row of buildings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Buildings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line1"},{"type":"null"}]},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"year_built":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year built"},{"type":"null"}]},"floors":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"floors"},{"type":"null"}]},"building_sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"building sqft"},{"type":"null"}]},"has_elevator":{"type":"boolean","description":"has elevator"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"code":{"type":"string","maxLength":100000,"description":"Short code unique within the property (A, B1), upper case. The rent roll shows it before the unit number when the property has more than one building (\"A · 1A\"). Generated (A, B, ...) when left empty."},"has_basement":{"type":"boolean","description":"The building has a basement."},"nyc_bbl":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC borough-block-lot of this building, 10 digits."},{"type":"null"}]},"nyc_bin":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC DOB building identification number of this building, 7 digits."},{"type":"null"}]},"hpd_building_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC HPD BuildingID of this building."},{"type":"null"}]},"hpd_registration_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC HPD multiple dwelling registration id of this building."},{"type":"null"}]}},"required":["property_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/buildings/{id}":{"get":{"operationId":"get_buildings_row","summary":"Get a building","description":"Optional grouping of units inside a property (Building A, Tower 2). Address columns are set only when the building has its own street address; null = the property address.\n\nOne row of buildings by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Buildings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_buildings_row","summary":"Update a building","description":"Optional grouping of units inside a property (Building A, Tower 2). Address columns are set only when the building has its own street address; null = the property address.\n\nChanges the given fields of one row of buildings and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Buildings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line1"},{"type":"null"}]},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"year_built":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year built"},{"type":"null"}]},"floors":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"floors"},{"type":"null"}]},"building_sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"building sqft"},{"type":"null"}]},"has_elevator":{"type":"boolean","description":"has elevator"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"code":{"type":"string","maxLength":100000,"description":"Short code unique within the property (A, B1), upper case. The rent roll shows it before the unit number when the property has more than one building (\"A · 1A\"). Generated (A, B, ...) when left empty."},"has_basement":{"type":"boolean","description":"The building has a basement."},"nyc_bbl":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC borough-block-lot of this building, 10 digits."},{"type":"null"}]},"nyc_bin":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC DOB building identification number of this building, 7 digits."},{"type":"null"}]},"hpd_building_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC HPD BuildingID of this building."},{"type":"null"}]},"hpd_registration_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC HPD multiple dwelling registration id of this building."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/calendar_event_attendees":{"get":{"operationId":"list_calendar_event_attendees","summary":"List calendar event attendees","description":"People invited to a calendar event: exactly one of a staff user or a contact (tenant, prospect, vendor, owner), with RSVP.\n\nPages through the calendar event attendees table of the organization, oldest first. Filters: id, calendar_event_id, user_id, contact_id, response, is_required.\n\nNeeds one of: communications.read.","tags":["Calendar event attendees"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"calendar_event_id","in":"query","required":false,"schema":{"description":"Only rows whose calendar_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose calendar_event_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"response","in":"query","required":false,"schema":{"description":"Only rows whose response equals this.","type":"string","enum":["needs_action","accepted","declined","tentative"]},"description":"Only rows whose response equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/calendar_event_attendees/{id}":{"get":{"operationId":"get_calendar_event_attendees_row","summary":"Get a calendar event attendee","description":"People invited to a calendar event: exactly one of a staff user or a contact (tenant, prospect, vendor, owner), with RSVP.\n\nOne row of calendar event attendees by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Calendar event attendees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/calendar_events":{"get":{"operationId":"list_calendar_events","summary":"List calendar events","description":"The shared staff calendar: showings, inspections, maintenance visits, move-ins/outs, lease signings, meetings. Each event links to at most one source record (showing, inspection, work order, ...); attendees in calendar_event_attendees. Can be synced to Google/Microsoft calendars.\n\nPages through the calendar events table of the organization, oldest first. Filters: id, kind, is_all_day, status, organizer_user_id, showing_id, inspection_id, work_order_id, lease_id, rental_application_id, lead_id, property_id, unit_id, task_id, scope_property_id, is_visible_to_attendees, created_by.\n\nNeeds one of: communications.read.","tags":["Calendar events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["showing","inspection","maintenance_visit","move_in","move_out","lease_signing","appointment","meeting","owner_meeting","vendor_visit","court_date","deadline","other"]},"description":"Only rows whose kind equals this."},{"name":"is_all_day","in":"query","required":false,"schema":{"description":"Only rows whose is_all_day equals this.","type":"boolean"},"description":"Only rows whose is_all_day equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["tentative","scheduled","confirmed","completed","canceled","no_show"]},"description":"Only rows whose status equals this."},{"name":"organizer_user_id","in":"query","required":false,"schema":{"description":"Only rows whose organizer_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose organizer_user_id equals this."},{"name":"showing_id","in":"query","required":false,"schema":{"description":"Only rows whose showing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose showing_id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"lead_id","in":"query","required":false,"schema":{"description":"Only rows whose lead_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lead_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"scope_property_id","in":"query","required":false,"schema":{"description":"Only rows whose scope_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose scope_property_id equals this."},{"name":"is_visible_to_attendees","in":"query","required":false,"schema":{"description":"Only rows whose is_visible_to_attendees equals this.","type":"boolean"},"description":"Only rows whose is_visible_to_attendees equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/calendar_events/{id}":{"get":{"operationId":"get_calendar_events_row","summary":"Get a calendar event","description":"The shared staff calendar: showings, inspections, maintenance visits, move-ins/outs, lease signings, meetings. Each event links to at most one source record (showing, inspection, work order, ...); attendees in calendar_event_attendees. Can be synced to Google/Microsoft calendars.\n\nOne row of calendar events by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Calendar events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/call_logs":{"get":{"operationId":"list_call_logs","summary":"List call logs","description":"Phone calls placed or received through the org's numbers (Twilio), including AI-answered calls and voicemails, with recording, transcript and AI summary. Each call also appears in its conversation timeline via message_id (channel voice).\n\nPages through the call logs table of the organization, oldest first. Filters: id, direction, status, endpoint_id, contact_id, user_id, conversation_id, message_id, property_id, unit_id, lease_id, work_order_id, service_request_id, is_voicemail, is_handled_by_ai, has_recording_consent, sentiment, intent, urgency, provider.\n\nNeeds one of: communications.read, communications.write.","tags":["Call logs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"direction","in":"query","required":false,"schema":{"description":"Only rows whose direction equals this.","type":"string","enum":["inbound","outbound"]},"description":"Only rows whose direction equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["queued","ringing","in_progress","completed","missed","voicemail","busy","no_answer","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"endpoint_id","in":"query","required":false,"schema":{"description":"Only rows whose endpoint_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose endpoint_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"is_voicemail","in":"query","required":false,"schema":{"description":"Only rows whose is_voicemail equals this.","type":"boolean"},"description":"Only rows whose is_voicemail equals this."},{"name":"is_handled_by_ai","in":"query","required":false,"schema":{"description":"Only rows whose is_handled_by_ai equals this.","type":"boolean"},"description":"Only rows whose is_handled_by_ai equals this."},{"name":"has_recording_consent","in":"query","required":false,"schema":{"description":"Only rows whose has_recording_consent equals this.","type":"boolean"},"description":"Only rows whose has_recording_consent equals this."},{"name":"sentiment","in":"query","required":false,"schema":{"description":"Only rows whose sentiment equals this.","type":"string","enum":["very_negative","negative","neutral","positive","very_positive"]},"description":"Only rows whose sentiment equals this."},{"name":"intent","in":"query","required":false,"schema":{"description":"Only rows whose intent equals this.","type":"string","enum":["general_inquiry","maintenance_request","maintenance_follow_up","emergency","payment_question","payment_promise","balance_dispute","lease_question","renewal","move_out","move_in","showing_request","application_status","noise_complaint","neighbor_complaint","parking","package","amenity","pet","document_request","owner_report_question","vendor_scheduling","vendor_invoice","spam","thanks_acknowledgement","other"]},"description":"Only rows whose intent equals this."},{"name":"urgency","in":"query","required":false,"schema":{"description":"Only rows whose urgency equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose urgency equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["internal","twilio","resend","sendgrid","postmark","mailgun","ses","expo","meta_whatsapp","vonage","other"]},"description":"Only rows whose provider equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read","communications.write"]}},"/v1/call_logs/{id}":{"get":{"operationId":"get_call_logs_row","summary":"Get a call log","description":"Phone calls placed or received through the org's numbers (Twilio), including AI-answered calls and voicemails, with recording, transcript and AI summary. Each call also appears in its conversation timeline via message_id (channel voice).\n\nOne row of call logs by id, with every column the API shows.\n\nNeeds one of: communications.read, communications.write.","tags":["Call logs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read","communications.write"]}},"/v1/cam_estimates":{"get":{"operationId":"list_cam_estimates","summary":"List cam estimates","description":"Effective-dated monthly estimated recovery billed to a tenant for a pool, implemented as a recurring charge (recurring_charges, 00009) of the pool's estimate charge type. Created by create_cam_estimate.\n\nPages through the cam estimates table of the organization, oldest first. Filters: id, property_id, cam_pool_participant_id, lease_id, effective_on, ends_on, basis, recurring_charge_id, created_by.\n\nNeeds one of: receivables.read.","tags":["CAM estimates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"cam_pool_participant_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_participant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_participant_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["budget","prior_year_actual","manual"]},"description":"Only rows whose basis equals this."},{"name":"recurring_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_charge_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_estimates/{id}":{"get":{"operationId":"get_cam_estimates_row","summary":"Get a cam estimate","description":"Effective-dated monthly estimated recovery billed to a tenant for a pool, implemented as a recurring charge (recurring_charges, 00009) of the pool's estimate charge type. Created by create_cam_estimate.\n\nOne row of cam estimates by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM estimates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_participant_exclusions":{"get":{"operationId":"list_cam_participant_exclusions","summary":"List cam participant exclusions","description":"Pool GL accounts a specific tenant does not pay toward (negotiated exclusions, e.g. an anchor excluded from mall marketing).\n\nPages through the cam participant exclusions table of the organization, oldest first. Filters: id, cam_pool_participant_id, gl_account_id, created_by.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM participant exclusions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"cam_pool_participant_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_participant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_participant_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/cam_participant_exclusions/{id}":{"get":{"operationId":"get_cam_participant_exclusions_row","summary":"Get a cam participant exclusion","description":"Pool GL accounts a specific tenant does not pay toward (negotiated exclusions, e.g. an anchor excluded from mall marketing).\n\nOne row of cam participant exclusions by id, with every column the API shows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM participant exclusions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/cam_participant_terms":{"get":{"operationId":"list_cam_participant_terms","summary":"List cam participant terms","description":"Dated changes to a tenant's terms in a recovery pool. A row is in force from effective_on until the next row; before the first row the cam_pool_participants row applies. A null field is a term no amendment changed: it reads the participant's live value (so a pool area change still moves a pro-rata share). Each row carries forward the fields set by earlier rows. Rows are only added (by an executed lease amendment), never changed.\n\nPages through the cam participant terms table of the organization, oldest first. Filters: id, property_id, cam_pool_participant_id, lease_id, effective_on, cap_type, cap_controllable_only, lease_amendment_id, created_by.\n\nNeeds one of: receivables.read.","tags":["CAM participant terms"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"cam_pool_participant_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_participant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_participant_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"cap_type","in":"query","required":false,"schema":{"description":"Only rows whose cap_type equals this.","type":"string","enum":["none","fixed_amount","non_cumulative","cumulative"]},"description":"Only rows whose cap_type equals this."},{"name":"cap_controllable_only","in":"query","required":false,"schema":{"description":"Only rows whose cap_controllable_only equals this.","type":"boolean"},"description":"Only rows whose cap_controllable_only equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_participant_terms/{id}":{"get":{"operationId":"get_cam_participant_terms_row","summary":"Get a cam participant term","description":"Dated changes to a tenant's terms in a recovery pool. A row is in force from effective_on until the next row; before the first row the cam_pool_participants row applies. A null field is a term no amendment changed: it reads the participant's live value (so a pool area change still moves a pro-rata share). Each row carries forward the fields set by earlier rows. Rows are only added (by an executed lease amendment), never changed.\n\nOne row of cam participant terms by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM participant terms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_pool_gl_accounts":{"get":{"operationId":"list_cam_pool_gl_accounts","summary":"List cam pool gl accounts","description":"GL expense accounts included in a recovery pool. Actuals are the accrual-basis journal_lines on these accounts for the pool's property and period.\n\nPages through the cam pool gl accounts table of the organization, oldest first. Filters: id, cam_pool_id, gl_account_id, is_variable, is_controllable.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM pool GL accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"cam_pool_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"is_variable","in":"query","required":false,"schema":{"description":"Only rows whose is_variable equals this.","type":"boolean"},"description":"Only rows whose is_variable equals this."},{"name":"is_controllable","in":"query","required":false,"schema":{"description":"Only rows whose is_controllable equals this.","type":"boolean"},"description":"Only rows whose is_controllable equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]},"post":{"operationId":"create_cam_pool_gl_accounts_row","summary":"Create a cam pool gl account","description":"GL expense accounts included in a recovery pool. Actuals are the accrual-basis journal_lines on these accounts for the pool's property and period.\n\nInserts one row of cam pool gl accounts in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: receivables.write.","tags":["CAM pool GL accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_pool_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam pool id"},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"gl account id"},"is_variable":{"type":"boolean","description":"Expense varies with occupancy (janitorial, utilities) and is grossed up to cam_pools.gross_up_pct."},"is_controllable":{"type":"boolean","description":"Expense is controllable by the landlord; caps marked cap_controllable_only apply only to these. Taxes, insurance and utilities are usually non-controllable."}},"required":["cam_pool_id","gl_account_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/cam_pool_gl_accounts/{id}":{"get":{"operationId":"get_cam_pool_gl_accounts_row","summary":"Get a cam pool gl account","description":"GL expense accounts included in a recovery pool. Actuals are the accrual-basis journal_lines on these accounts for the pool's property and period.\n\nOne row of cam pool gl accounts by id, with every column the API shows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM pool GL accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]},"patch":{"operationId":"update_cam_pool_gl_accounts_row","summary":"Update a cam pool gl account","description":"GL expense accounts included in a recovery pool. Actuals are the accrual-basis journal_lines on these accounts for the pool's property and period.\n\nChanges the given fields of one row of cam pool gl accounts and returns it. Fields left out stay as they are.\n\nNeeds one of: receivables.write.","tags":["CAM pool GL accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_pool_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam pool id"},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"gl account id"},"is_variable":{"type":"boolean","description":"Expense varies with occupancy (janitorial, utilities) and is grossed up to cam_pools.gross_up_pct."},"is_controllable":{"type":"boolean","description":"Expense is controllable by the landlord; caps marked cap_controllable_only apply only to these. Taxes, insurance and utilities are usually non-controllable."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]},"delete":{"operationId":"delete_cam_pool_gl_accounts_row","summary":"Delete a cam pool gl account","description":"GL expense accounts included in a recovery pool. Actuals are the accrual-basis journal_lines on these accounts for the pool's property and period.\n\nDeletes one row of cam pool gl accounts. The database refuses it where other records still need the row.\n\nNeeds one of: receivables.write.","tags":["CAM pool GL accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/cam_pool_participants":{"get":{"operationId":"list_cam_pool_participants","summary":"List cam pool participants","description":"A lease sharing in a recovery pool, with its share, base-year / expense-stop threshold, admin fee and cap. Tenant-specific excluded accounts are cam_participant_exclusions.\n\nPages through the cam pool participants table of the organization, oldest first. Filters: id, property_id, cam_pool_id, lease_id, share_method, cap_type, cap_controllable_only, occupancy_start_on, occupancy_end_on, created_by.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM pool participants"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"cam_pool_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"share_method","in":"query","required":false,"schema":{"description":"Only rows whose share_method equals this.","type":"string","enum":["pro_rata_area","fixed_percent"]},"description":"Only rows whose share_method equals this."},{"name":"cap_type","in":"query","required":false,"schema":{"description":"Only rows whose cap_type equals this.","type":"string","enum":["none","fixed_amount","non_cumulative","cumulative"]},"description":"Only rows whose cap_type equals this."},{"name":"cap_controllable_only","in":"query","required":false,"schema":{"description":"Only rows whose cap_controllable_only equals this.","type":"boolean"},"description":"Only rows whose cap_controllable_only equals this."},{"name":"occupancy_start_on","in":"query","required":false,"schema":{"description":"Only rows whose occupancy_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose occupancy_start_on equals this."},{"name":"occupancy_end_on","in":"query","required":false,"schema":{"description":"Only rows whose occupancy_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose occupancy_end_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]},"post":{"operationId":"create_cam_pool_participants_row","summary":"Create a cam pool participant","description":"A lease sharing in a recovery pool, with its share, base-year / expense-stop threshold, admin fee and cap. Tenant-specific excluded accounts are cam_participant_exclusions.\n\nInserts one row of cam pool participants in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: receivables.write.","tags":["CAM pool participants"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"cam_pool_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam pool id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"share_method":{"type":"string","enum":["pro_rata_area","fixed_percent"],"description":"pro_rata_area: share_pct = leased_sqft / cam_pools.pool_area_sqft (kept in sync by trigger); fixed_percent: share_pct as negotiated."},"leased_sqft":{"anyOf":[{"type":"number","description":"leased sqft"},{"type":"null"}]},"share_pct":{"type":"number","description":"Tenant's share of the pool, 100 = 100%."},"base_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Pool-level threshold excluded before sharing: the base-year expenses (modified gross) or the expense stop total. 0 for NNN. Tenant owes share_pct of max(pool expenses - base_amount, 0)."},"admin_fee_pct":{"anyOf":[{"type":"number","description":"Overrides cam_pools.admin_fee_pct for this tenant when set, 10 = 10%."},{"type":"null"}]},"cap_type":{"type":"string","enum":["none","fixed_amount","non_cumulative","cumulative"],"description":"none; fixed_amount: annual recovery capped at cap_amount_cents; non_cumulative: capped at prior year's reconciled amount x (1 + cap_pct); cumulative: capped at cap_base_amount_cents x (1 + cap_pct)^(fiscal_year - cap_base_year)."},"cap_pct":{"anyOf":[{"type":"number","description":"Annual increase cap, 5 = 5%."},{"type":"null"}]},"cap_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cap amount cents"},{"type":"null"}]},"cap_base_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cap base amount cents"},{"type":"null"}]},"cap_base_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cap base year"},{"type":"null"}]},"cap_controllable_only":{"type":"boolean","description":"Cap applies only to the controllable portion (cam_pool_gl_accounts.is_controllable) of the tenant's share plus its admin fee."},"occupancy_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Tenant's first day in the pool when it started mid-year; shares are prorated by days in the period. Null = from period start."},{"type":"null"}]},"occupancy_end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day in the pool when the tenant left mid-year. Null = through period end."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","cam_pool_id","lease_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/cam_pool_participants/{id}":{"get":{"operationId":"get_cam_pool_participants_row","summary":"Get a cam pool participant","description":"A lease sharing in a recovery pool, with its share, base-year / expense-stop threshold, admin fee and cap. Tenant-specific excluded accounts are cam_participant_exclusions.\n\nOne row of cam pool participants by id, with every column the API shows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM pool participants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]},"delete":{"operationId":"delete_cam_pool_participants_row","summary":"Delete a cam pool participant","description":"A lease sharing in a recovery pool, with its share, base-year / expense-stop threshold, admin fee and cap. Tenant-specific excluded accounts are cam_participant_exclusions.\n\nDeletes one row of cam pool participants. The database refuses it where other records still need the row.\n\nNeeds one of: receivables.write.","tags":["CAM pool participants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/cam_pools":{"get":{"operationId":"list_cam_pools","summary":"List cam pools","description":"An expense recovery pool for one property and recovery year: CAM, real estate taxes, insurance, utilities. Which GL expense accounts are in the pool is cam_pool_gl_accounts; which leases share it and how is cam_pool_participants. Tenants pay monthly cam_estimates during the year and a cam_reconciliation trues up actuals after year end.\n\nPages through the cam pools table of the organization, oldest first. Filters: id, property_id, recovery_category, period_start_on, period_end_on, estimate_charge_type_id, reconciliation_charge_type_id, status, created_by.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM pools"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"recovery_category","in":"query","required":false,"schema":{"description":"Only rows whose recovery_category equals this.","type":"string","enum":["cam","real_estate_tax","insurance","utilities","management","other"]},"description":"Only rows whose recovery_category equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"estimate_charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose estimate_charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose estimate_charge_type_id equals this."},{"name":"reconciliation_charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose reconciliation_charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reconciliation_charge_type_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","active","reconciling","reconciled","closed"]},"description":"Only rows whose status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]},"post":{"operationId":"create_cam_pools_row","summary":"Create a cam pool","description":"An expense recovery pool for one property and recovery year: CAM, real estate taxes, insurance, utilities. Which GL expense accounts are in the pool is cam_pool_gl_accounts; which leases share it and how is cam_pool_participants. Tenants pay monthly cam_estimates during the year and a cam_reconciliation trues up actuals after year end.\n\nInserts one row of cam pools in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: receivables.write.","tags":["CAM pools"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"recovery_category":{"type":"string","enum":["cam","real_estate_tax","insurance","utilities","management","other"],"description":"recovery category"},"fiscal_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Recovery (lease) year the pool covers, e.g. 2026."},"period_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start on"},"period_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end on"},"pool_area_sqft":{"anyOf":[{"type":"number","description":"Denominator area for pro-rata shares (gross leasable area of the center or rentable area of the building)."},{"type":"null"}]},"budget_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Budgeted recoverable expenses for the year (whole pool); basis for estimates."},{"type":"null"}]},"admin_fee_pct":{"type":"number","description":"Administrative / management fee added on tenants' shares, 15 = 15%. A participant may override it."},"gross_up_pct":{"anyOf":[{"type":"number","description":"Occupancy level variable expenses are grossed up to when actual occupancy is lower, 95 = 95%. Null = no gross-up."},{"type":"null"}]},"estimate_charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type of the monthly estimated recovery charges (e.g. \"CAM estimate\"); reconciliation sums charges of this type as estimates billed."},"reconciliation_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type used for the year-end true-up charge or credit; defaults to estimate_charge_type_id."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","name","fiscal_year","period_start_on","period_end_on","estimate_charge_type_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/cam_pools/{id}":{"get":{"operationId":"get_cam_pools_row","summary":"Get a cam pool","description":"An expense recovery pool for one property and recovery year: CAM, real estate taxes, insurance, utilities. Which GL expense accounts are in the pool is cam_pool_gl_accounts; which leases share it and how is cam_pool_participants. Tenants pay monthly cam_estimates during the year and a cam_reconciliation trues up actuals after year end.\n\nOne row of cam pools by id, with every column the API shows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["CAM pools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]},"patch":{"operationId":"update_cam_pools_row","summary":"Update a cam pool","description":"An expense recovery pool for one property and recovery year: CAM, real estate taxes, insurance, utilities. Which GL expense accounts are in the pool is cam_pool_gl_accounts; which leases share it and how is cam_pool_participants. Tenants pay monthly cam_estimates during the year and a cam_reconciliation trues up actuals after year end.\n\nChanges the given fields of one row of cam pools and returns it. Fields left out stay as they are.\n\nNeeds one of: receivables.write.","tags":["CAM pools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"recovery_category":{"type":"string","enum":["cam","real_estate_tax","insurance","utilities","management","other"],"description":"recovery category"},"fiscal_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Recovery (lease) year the pool covers, e.g. 2026."},"period_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start on"},"period_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end on"},"pool_area_sqft":{"anyOf":[{"type":"number","description":"Denominator area for pro-rata shares (gross leasable area of the center or rentable area of the building)."},{"type":"null"}]},"budget_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Budgeted recoverable expenses for the year (whole pool); basis for estimates."},{"type":"null"}]},"admin_fee_pct":{"type":"number","description":"Administrative / management fee added on tenants' shares, 15 = 15%. A participant may override it."},"gross_up_pct":{"anyOf":[{"type":"number","description":"Occupancy level variable expenses are grossed up to when actual occupancy is lower, 95 = 95%. Null = no gross-up."},{"type":"null"}]},"estimate_charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type of the monthly estimated recovery charges (e.g. \"CAM estimate\"); reconciliation sums charges of this type as estimates billed."},"reconciliation_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type used for the year-end true-up charge or credit; defaults to estimate_charge_type_id."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]},"delete":{"operationId":"delete_cam_pools_row","summary":"Delete a cam pool","description":"An expense recovery pool for one property and recovery year: CAM, real estate taxes, insurance, utilities. Which GL expense accounts are in the pool is cam_pool_gl_accounts; which leases share it and how is cam_pool_participants. Tenants pay monthly cam_estimates during the year and a cam_reconciliation trues up actuals after year end.\n\nDeletes one row of cam pools. The database refuses it where other records still need the row.\n\nNeeds one of: receivables.write.","tags":["CAM pools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/cam_reconciliation_expenses":{"get":{"operationId":"list_cam_reconciliation_expenses","summary":"List cam reconciliation expenses","description":"Per-GL-account actuals of a reconciliation. actual_cents is from journal_lines; grossed_up_cents = actual x gross_up_pct / average_occupancy_pct for variable accounts when occupancy is below the gross-up level; adjustment_cents is a manual correction (e.g. remove a capital item).\n\nPages through the cam reconciliation expenses table of the organization, oldest first. Filters: id, cam_reconciliation_id, gl_account_id, is_variable, is_controllable.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliation expenses"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"cam_reconciliation_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_reconciliation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_reconciliation_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"is_variable","in":"query","required":false,"schema":{"description":"Only rows whose is_variable equals this.","type":"boolean"},"description":"Only rows whose is_variable equals this."},{"name":"is_controllable","in":"query","required":false,"schema":{"description":"Only rows whose is_controllable equals this.","type":"boolean"},"description":"Only rows whose is_controllable equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_reconciliation_expenses/{id}":{"get":{"operationId":"get_cam_reconciliation_expenses_row","summary":"Get a cam reconciliation expense","description":"Per-GL-account actuals of a reconciliation. actual_cents is from journal_lines; grossed_up_cents = actual x gross_up_pct / average_occupancy_pct for variable accounts when occupancy is below the gross-up level; adjustment_cents is a manual correction (e.g. remove a capital item).\n\nOne row of cam reconciliation expenses by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliation expenses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_reconciliation_line_periods":{"get":{"operationId":"list_cam_reconciliation_line_periods","summary":"List cam reconciliation line periods","description":"The parts of a tenant's reconciliation year, one per set of terms in force. Math per part: shared = round(max(pool expenses - base, 0) x share/100 x days/period_days); admin fee = round(shared x admin_pct/100); cap = round(annual cap x days/occupancy days); cap reduction = max(capped portion - cap, 0); total = shared + admin fee - cap reduction. The line holds the sums. cam_participant_terms_id null = the participant's original terms.\n\nPages through the cam reconciliation line periods table of the organization, oldest first. Filters: id, property_id, cam_reconciliation_id, cam_reconciliation_line_id, lease_id, cam_participant_terms_id, lease_amendment_id, starts_on, ends_on, cap_type, cap_controllable_only.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliation line periods"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"cam_reconciliation_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_reconciliation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_reconciliation_id equals this."},{"name":"cam_reconciliation_line_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_reconciliation_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_reconciliation_line_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"cam_participant_terms_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_participant_terms_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_participant_terms_id equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"cap_type","in":"query","required":false,"schema":{"description":"Only rows whose cap_type equals this.","type":"string","enum":["none","fixed_amount","non_cumulative","cumulative"]},"description":"Only rows whose cap_type equals this."},{"name":"cap_controllable_only","in":"query","required":false,"schema":{"description":"Only rows whose cap_controllable_only equals this.","type":"boolean"},"description":"Only rows whose cap_controllable_only equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_reconciliation_line_periods/{id}":{"get":{"operationId":"get_cam_reconciliation_line_periods_row","summary":"Get a cam reconciliation line period","description":"The parts of a tenant's reconciliation year, one per set of terms in force. Math per part: shared = round(max(pool expenses - base, 0) x share/100 x days/period_days); admin fee = round(shared x admin_pct/100); cap = round(annual cap x days/occupancy days); cap reduction = max(capped portion - cap, 0); total = shared + admin fee - cap reduction. The line holds the sums. cam_participant_terms_id null = the participant's original terms.\n\nOne row of cam reconciliation line periods by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliation line periods"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_reconciliation_lines":{"get":{"operationId":"list_cam_reconciliation_lines","summary":"List cam reconciliation lines","description":"One tenant's result in a reconciliation. Math (all cents, rounded half away from zero): shared = round(max(pool_expenses - base_amount, 0) x share_pct/100 x occupancy_days/period_days); admin_fee = round(shared x admin_pct/100); cap_reduction = max(capped portion - cap, 0); total_due = shared + admin_fee - cap_reduction; true_up = total_due - estimates_billed (positive = tenant owes, posted as a charge; negative = credit).\n\nPages through the cam reconciliation lines table of the organization, oldest first. Filters: id, property_id, cam_reconciliation_id, cam_pool_participant_id, lease_id, charge_id, credit_id.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliation lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"cam_reconciliation_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_reconciliation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_reconciliation_id equals this."},{"name":"cam_pool_participant_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_participant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_participant_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"credit_id","in":"query","required":false,"schema":{"description":"Only rows whose credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose credit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_reconciliation_lines/{id}":{"get":{"operationId":"get_cam_reconciliation_lines_row","summary":"Get a cam reconciliation line","description":"One tenant's result in a reconciliation. Math (all cents, rounded half away from zero): shared = round(max(pool_expenses - base_amount, 0) x share_pct/100 x occupancy_days/period_days); admin_fee = round(shared x admin_pct/100); cap_reduction = max(capped portion - cap, 0); total_due = shared + admin_fee - cap_reduction; true_up = total_due - estimates_billed (positive = tenant owes, posted as a charge; negative = credit).\n\nOne row of cam reconciliation lines by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliation lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_reconciliations/{id}":{"get":{"operationId":"get_cam_reconciliations_row","summary":"Get a cam reconciliation","description":"Annual reconciliation of a recovery pool: actual expenses from journal_lines (accrual basis) on the pool's GL accounts, grossed up, split per tenant (cam_reconciliation_lines) and compared to estimates billed. Posting creates a true-up charge (tenant owes) or credit (overpaid) per tenant through receivables. Workflow: calculate -> approve -> post. Money fields are cents.\n\nOne row of cam reconciliations by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM reconciliations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/cam_statements/{id}":{"get":{"operationId":"get_cam_statements_row","summary":"Get a cam statement","description":"One reconciliation statement per tenant per reconciliation. The PDF renders on request from cam_statement, so nothing is stored but the workflow: prepared (draft), reviewed, sent. Tenants see a statement only once it is sent and its reconciliation is not voided.\n\nOne row of cam statements by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["CAM statements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/capital_call_allocations":{"get":{"operationId":"list_capital_call_allocations","summary":"List capital call allocations","description":"Each investor's share of a capital call. Funded amount = sum of investor_contributions for the allocation; status is maintained by record_investor_contribution (pending -> partially_funded -> funded; defaulted or waived by staff).\n\nPages through the capital call allocations table of the organization, oldest first. Filters: id, capital_call_id, investor_id, commitment_id, share_class_id, status.\n\nNeeds one of: investments.read.","tags":["Capital call allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_call_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_call_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_call_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"commitment_id","in":"query","required":false,"schema":{"description":"Only rows whose commitment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose commitment_id equals this."},{"name":"share_class_id","in":"query","required":false,"schema":{"description":"Only rows whose share_class_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose share_class_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","partially_funded","funded","defaulted","waived"]},"description":"Only rows whose status equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/capital_call_allocations/{id}":{"get":{"operationId":"get_capital_call_allocations_row","summary":"Get a capital call allocation","description":"Each investor's share of a capital call. Funded amount = sum of investor_contributions for the allocation; status is maintained by record_investor_contribution (pending -> partially_funded -> funded; defaulted or waived by staff).\n\nOne row of capital call allocations by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Capital call allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/capital_calls":{"get":{"operationId":"list_capital_calls","summary":"List capital calls","description":"A request to investors to fund part of their commitments (drawdown). Allocated per investor in capital_call_allocations; money received is recorded as investor_contributions, which post to the ledger as owner contributions of the entity's owner into property_id's fund. Status: draft -> issued -> partially_funded -> funded; cancelled.\n\nPages through the capital calls table of the organization, oldest first. Filters: id, investment_entity_id, offering_id, status, issued_on, due_on, property_id, bank_account_id, notice_document_id, created_by.\n\nNeeds one of: investments.read.","tags":["Capital calls"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"offering_id","in":"query","required":false,"schema":{"description":"Only rows whose offering_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose offering_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","issued","partially_funded","funded","cancelled"]},"description":"Only rows whose status equals this."},{"name":"issued_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_on equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"notice_document_id","in":"query","required":false,"schema":{"description":"Only rows whose notice_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose notice_document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/capital_calls/{id}":{"get":{"operationId":"get_capital_calls_row","summary":"Get a capital call","description":"A request to investors to fund part of their commitments (drawdown). Allocated per investor in capital_call_allocations; money received is recorded as investor_contributions, which post to the ledger as owner contributions of the entity's owner into property_id's fund. Status: draft -> issued -> partially_funded -> funded; cancelled.\n\nOne row of capital calls by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Capital calls"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/capital_project_budget_lines":{"get":{"operationId":"list_capital_project_budget_lines","summary":"List capital project budget lines","description":"Original budget of a project by cost code. Locked once the budget is approved; later changes go through change orders. Revised budget = original + approved change orders (derived).\n\nPages through the capital project budget lines table of the organization, oldest first. Filters: id, capital_project_id, cost_code_id, gl_account_id, created_by.\n\nNeeds one of: projects.write.","tags":["Capital project budget lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]},"post":{"operationId":"create_capital_project_budget_lines_row","summary":"Create a capital project budget line","description":"Original budget of a project by cost code. Locked once the budget is approved; later changes go through change orders. Revised budget = original + approved change orders (derived).\n\nInserts one row of capital project budget lines in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: projects.write.","tags":["Capital project budget lines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_projects (the capital project this capital project budget line belongs to or points at)."},"cost_code_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.cost_codes (the cost code this capital project budget line belongs to or points at)."},"gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.gl_accounts (the gl account this capital project budget line belongs to or points at)."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the capital project budget line."},{"type":"null"}]},"original_budget_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Budget approved with the project (minor units)."}},"required":["capital_project_id","cost_code_id","original_budget_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_budget_lines/{id}":{"get":{"operationId":"get_capital_project_budget_lines_row","summary":"Get a capital project budget line","description":"Original budget of a project by cost code. Locked once the budget is approved; later changes go through change orders. Revised budget = original + approved change orders (derived).\n\nOne row of capital project budget lines by id, with every column the API shows.\n\nNeeds one of: projects.write.","tags":["Capital project budget lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]},"delete":{"operationId":"delete_capital_project_budget_lines_row","summary":"Delete a capital project budget line","description":"Original budget of a project by cost code. Locked once the budget is approved; later changes go through change orders. Revised budget = original + approved change orders (derived).\n\nDeletes one row of capital project budget lines. The database refuses it where other records still need the row.\n\nNeeds one of: projects.write.","tags":["Capital project budget lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_change_orders":{"get":{"operationId":"list_capital_project_change_orders","summary":"List capital project change orders","description":"Budget change on a project cost code (positive adds scope, negative removes it). When linked to a commitment it also revises that vendor's committed amount. Only approved change orders count.\n\nPages through the capital project change orders table of the organization, oldest first. Filters: id, capital_project_id, cost_code_id, capital_project_commitment_id, status, requested_on, approved_by, created_by.\n\nNeeds one of: projects.write.","tags":["Capital project change orders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"capital_project_commitment_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_commitment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_commitment_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["proposed","approved","rejected","void"]},"description":"Only rows whose status equals this."},{"name":"requested_on","in":"query","required":false,"schema":{"description":"Only rows whose requested_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose requested_on equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]},"post":{"operationId":"create_capital_project_change_orders_row","summary":"Create a capital project change order","description":"Budget change on a project cost code (positive adds scope, negative removes it). When linked to a commitment it also revises that vendor's committed amount. Only approved change orders count.\n\nInserts one row of capital project change orders in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: projects.write.","tags":["Capital project change orders"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_projects (the capital project this capital project change order belongs to or points at)."},"change_order_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Change order number of the capital project change order."},"cost_code_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.cost_codes (the cost code this capital project change order belongs to or points at)."},"capital_project_commitment_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_project_commitments (the capital project commitment this capital project change order belongs to or points at)."},{"type":"null"}]},"description":{"type":"string","maxLength":100000,"description":"Description of the capital project change order."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Signed change in minor units."},"requested_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Requested date of the capital project change order."}},"required":["capital_project_id","change_order_number","cost_code_id","description","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_change_orders/{id}":{"get":{"operationId":"get_capital_project_change_orders_row","summary":"Get a capital project change order","description":"Budget change on a project cost code (positive adds scope, negative removes it). When linked to a commitment it also revises that vendor's committed amount. Only approved change orders count.\n\nOne row of capital project change orders by id, with every column the API shows.\n\nNeeds one of: projects.write.","tags":["Capital project change orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]},"patch":{"operationId":"update_capital_project_change_orders_row","summary":"Update a capital project change order","description":"Budget change on a project cost code (positive adds scope, negative removes it). When linked to a commitment it also revises that vendor's committed amount. Only approved change orders count.\n\nChanges the given fields of one row of capital project change orders and returns it. Fields left out stay as they are.\n\nNeeds one of: projects.write.","tags":["Capital project change orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_projects (the capital project this capital project change order belongs to or points at)."},"change_order_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Change order number of the capital project change order."},"cost_code_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.cost_codes (the cost code this capital project change order belongs to or points at)."},"capital_project_commitment_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_project_commitments (the capital project commitment this capital project change order belongs to or points at)."},{"type":"null"}]},"description":{"type":"string","maxLength":100000,"description":"Description of the capital project change order."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Signed change in minor units."},"requested_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Requested date of the capital project change order."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_commitments":{"get":{"operationId":"list_capital_project_commitments","summary":"List capital project commitments","description":"Vendor subcontract or purchase order committed against a project cost code. Committed cost = committed/closed amounts + their approved change orders (derived).\n\nPages through the capital project commitments table of the organization, oldest first. Filters: id, capital_project_id, vendor_id, cost_code_id, status, committed_on, purchase_order_id, vendor_contract_id, created_by.\n\nNeeds one of: projects.read, projects.write.","tags":["Capital project commitments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","committed","closed","canceled"]},"description":"Only rows whose status equals this."},{"name":"committed_on","in":"query","required":false,"schema":{"description":"Only rows whose committed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose committed_on equals this."},{"name":"purchase_order_id","in":"query","required":false,"schema":{"description":"Only rows whose purchase_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose purchase_order_id equals this."},{"name":"vendor_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_contract_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read","projects.write"]},"post":{"operationId":"create_capital_project_commitments_row","summary":"Create a capital project commitment","description":"Vendor subcontract or purchase order committed against a project cost code. Committed cost = committed/closed amounts + their approved change orders (derived).\n\nInserts one row of capital project commitments in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: projects.write.","tags":["Capital project commitments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_projects (the capital project this capital project commitment belongs to or points at)."},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.vendors (the vendor this capital project commitment belongs to or points at)."},"cost_code_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.cost_codes (the cost code this capital project commitment belongs to or points at)."},"commitment_number":{"type":"string","maxLength":100000,"description":"Commitment number of the capital project commitment."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the capital project commitment."},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Original contract amount (minor units); revisions are change orders linked to the commitment."},"retainage_rate":{"anyOf":[{"type":"number","description":"Retainage withheld from this vendor's draw lines; null = the project default."},{"type":"null"}]},"committed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Committed date of the capital project commitment."},{"type":"null"}]},"purchase_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.purchase_orders (the purchase order this capital project commitment belongs to or points at)."},{"type":"null"}]},"vendor_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.vendor_contracts (the vendor contract this capital project commitment belongs to or points at)."},{"type":"null"}]}},"required":["capital_project_id","vendor_id","cost_code_id","commitment_number","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_commitments/{id}":{"get":{"operationId":"get_capital_project_commitments_row","summary":"Get a capital project commitment","description":"Vendor subcontract or purchase order committed against a project cost code. Committed cost = committed/closed amounts + their approved change orders (derived).\n\nOne row of capital project commitments by id, with every column the API shows.\n\nNeeds one of: projects.read, projects.write.","tags":["Capital project commitments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read","projects.write"]},"patch":{"operationId":"update_capital_project_commitments_row","summary":"Update a capital project commitment","description":"Vendor subcontract or purchase order committed against a project cost code. Committed cost = committed/closed amounts + their approved change orders (derived).\n\nChanges the given fields of one row of capital project commitments and returns it. Fields left out stay as they are.\n\nNeeds one of: projects.write.","tags":["Capital project commitments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.capital_projects (the capital project this capital project commitment belongs to or points at)."},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.vendors (the vendor this capital project commitment belongs to or points at)."},"cost_code_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.cost_codes (the cost code this capital project commitment belongs to or points at)."},"commitment_number":{"type":"string","maxLength":100000,"description":"Commitment number of the capital project commitment."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the capital project commitment."},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Original contract amount (minor units); revisions are change orders linked to the commitment."},"retainage_rate":{"anyOf":[{"type":"number","description":"Retainage withheld from this vendor's draw lines; null = the project default."},{"type":"null"}]},"committed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Committed date of the capital project commitment."},{"type":"null"}]},"purchase_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.purchase_orders (the purchase order this capital project commitment belongs to or points at)."},{"type":"null"}]},"vendor_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.vendor_contracts (the vendor contract this capital project commitment belongs to or points at)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_cost_entries":{"get":{"operationId":"list_capital_project_cost_entries","summary":"List capital project cost entries","description":"Job cost not on a vendor bill line (in-house labor, materials from inventory, cost reallocations), tagged to the journal entry that put it in the books. Vendor costs come from bill_lines.capital_project_id.\n\nPages through the capital project cost entries table of the organization, oldest first. Filters: id, capital_project_id, cost_code_id, journal_entry_id, source, entry_on, created_by.\n\nNeeds one of: projects.read.","tags":["Capital project cost entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["journal","labor","materials","allocation","other"]},"description":"Only rows whose source equals this."},{"name":"entry_on","in":"query","required":false,"schema":{"description":"Only rows whose entry_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose entry_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/capital_project_cost_entries/{id}":{"get":{"operationId":"get_capital_project_cost_entries_row","summary":"Get a capital project cost entry","description":"Job cost not on a vendor bill line (in-house labor, materials from inventory, cost reallocations), tagged to the journal entry that put it in the books. Vendor costs come from bill_lines.capital_project_id.\n\nOne row of capital project cost entries by id, with every column the API shows.\n\nNeeds one of: projects.read.","tags":["Capital project cost entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/capital_project_draw_lines":{"get":{"operationId":"list_capital_project_draw_lines","summary":"List capital project draw lines","description":"Schedule-of-values line of a draw: work completed and materials stored this period on a cost code (optionally per commitment), less retainage withheld.\n\nPages through the capital project draw lines table of the organization, oldest first. Filters: id, capital_project_draw_id, cost_code_id, capital_project_commitment_id.\n\nNeeds one of: projects.write.","tags":["Capital project draw lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_draw_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_draw_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_draw_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"capital_project_commitment_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_commitment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_commitment_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_draw_lines/{id}":{"get":{"operationId":"get_capital_project_draw_lines_row","summary":"Get a capital project draw line","description":"Schedule-of-values line of a draw: work completed and materials stored this period on a cost code (optionally per commitment), less retainage withheld.\n\nOne row of capital project draw lines by id, with every column the API shows.\n\nNeeds one of: projects.write.","tags":["Capital project draw lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_project_draws":{"get":{"operationId":"list_capital_project_draws","summary":"List capital project draws","description":"Draw request (pay application) against a project's funding source for work completed in a period. Requested amount = sum of draw lines (derived). Funding posts one journal entry (journal_entry_id) bringing the cash into the property's bank account.\n\nPages through the capital project draws table of the organization, oldest first. Filters: id, capital_project_id, funding_source, owner_id, period_start_on, period_end_on, status, deposit_bank_account_id, source_bank_account_id, funded_on, journal_entry_id, approved_by, created_by.\n\nNeeds one of: projects.read, projects.write.","tags":["Capital project draws"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"funding_source","in":"query","required":false,"schema":{"description":"Only rows whose funding_source equals this.","type":"string","enum":["owner","lender","reserve"]},"description":"Only rows whose funding_source equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","submitted","approved","funded","rejected","canceled"]},"description":"Only rows whose status equals this."},{"name":"deposit_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_bank_account_id equals this."},{"name":"source_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose source_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose source_bank_account_id equals this."},{"name":"funded_on","in":"query","required":false,"schema":{"description":"Only rows whose funded_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose funded_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read","projects.write"]}},"/v1/capital_project_draws/{id}":{"get":{"operationId":"get_capital_project_draws_row","summary":"Get a capital project draw","description":"Draw request (pay application) against a project's funding source for work completed in a period. Requested amount = sum of draw lines (derived). Funding posts one journal entry (journal_entry_id) bringing the cash into the property's bank account.\n\nOne row of capital project draws by id, with every column the API shows.\n\nNeeds one of: projects.read, projects.write.","tags":["Capital project draws"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read","projects.write"]},"delete":{"operationId":"delete_capital_project_draws_row","summary":"Delete a capital project draw","description":"Draw request (pay application) against a project's funding source for work completed in a period. Requested amount = sum of draw lines (derived). Funding posts one journal entry (journal_entry_id) bringing the cash into the property's bank account.\n\nDeletes one row of capital project draws. The database refuses it where other records still need the row.\n\nNeeds one of: projects.write.","tags":["Capital project draws"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/capital_projects":{"get":{"operationId":"list_capital_projects","summary":"List capital projects","description":"A capital improvement, renovation or construction project at a property, with a budget by cost code, change orders, vendor commitments, job costs (bill lines coded to the project) and draw requests. Revised budget, committed cost and actual cost are derived.\n\nPages through the capital projects table of the organization, oldest first. Filters: id, property_id, project_type, status, owner_id, manager_user_id, is_capitalized, cip_gl_account_id, planned_start_on, planned_completion_on, actual_start_on, completed_on, placed_in_service_on, budget_approved_by, created_by, relocation_cost_code_id.\n\nNeeds one of: projects.read.","tags":["Capital projects"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"project_type","in":"query","required":false,"schema":{"description":"Only rows whose project_type equals this.","type":"string","enum":["capital_improvement","renovation","unit_upgrade","ground_up_construction","repair_program","energy_retrofit","other"]},"description":"Only rows whose project_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["planning","approved","in_progress","substantially_complete","closed","canceled"]},"description":"Only rows whose status equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"manager_user_id","in":"query","required":false,"schema":{"description":"Only rows whose manager_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose manager_user_id equals this."},{"name":"is_capitalized","in":"query","required":false,"schema":{"description":"Only rows whose is_capitalized equals this.","type":"boolean"},"description":"Only rows whose is_capitalized equals this."},{"name":"cip_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose cip_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cip_gl_account_id equals this."},{"name":"planned_start_on","in":"query","required":false,"schema":{"description":"Only rows whose planned_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose planned_start_on equals this."},{"name":"planned_completion_on","in":"query","required":false,"schema":{"description":"Only rows whose planned_completion_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose planned_completion_on equals this."},{"name":"actual_start_on","in":"query","required":false,"schema":{"description":"Only rows whose actual_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose actual_start_on equals this."},{"name":"completed_on","in":"query","required":false,"schema":{"description":"Only rows whose completed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose completed_on equals this."},{"name":"placed_in_service_on","in":"query","required":false,"schema":{"description":"Only rows whose placed_in_service_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose placed_in_service_on equals this."},{"name":"budget_approved_by","in":"query","required":false,"schema":{"description":"Only rows whose budget_approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose budget_approved_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"relocation_cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose relocation_cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose relocation_cost_code_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/capital_projects/{id}":{"get":{"operationId":"get_capital_projects_row","summary":"Get a capital project","description":"A capital improvement, renovation or construction project at a property, with a budget by cost code, change orders, vendor commitments, job costs (bill lines coded to the project) and draw requests. Revised budget, committed cost and actual cost are derived.\n\nOne row of capital projects by id, with every column the API shows.\n\nNeeds one of: projects.read.","tags":["Capital projects"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]},"patch":{"operationId":"update_capital_projects_row","summary":"Update a capital project","description":"A capital improvement, renovation or construction project at a property, with a budget by cost code, change orders, vendor commitments, job costs (bill lines coded to the project) and draw requests. Revised budget, committed cost and actual cost are derived.\n\nChanges the given fields of one row of capital projects and returns it. Fields left out stay as they are.\n\nNeeds one of: projects.write.","tags":["Capital projects"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.properties (the property this capital project belongs to or points at)."},"project_number":{"type":"string","maxLength":100000,"description":"Project number of the capital project."},"name":{"type":"string","maxLength":100000,"description":"Name of the capital project."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the capital project."},{"type":"null"}]},"project_type":{"type":"string","enum":["capital_improvement","renovation","unit_upgrade","ground_up_construction","repair_program","energy_retrofit","other"],"description":"Project type of the capital project. One of: capital_improvement, renovation, unit_upgrade, ground_up_construction, repair_program, energy_retrofit, other."},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Owner funding the project when draws come from an owner (optional)."},{"type":"null"}]},"manager_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"User (auth.users.id): manager."},{"type":"null"}]},"retainage_rate":{"type":"number","description":"Default share of each draw line withheld as retainage (0.10 = 10%)."},"is_capitalized":{"type":"boolean","description":"True when costs are capitalized (bill lines coded to the CIP account and moved to a fixed asset at completion); false for expensed repair programs."},"cip_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Construction-in-progress account costs accumulate in; defaults to the CONSTRUCTION_IN_PROGRESS system account."},{"type":"null"}]},"planned_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Planned start date of the capital project."},{"type":"null"}]},"planned_completion_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Planned completion date of the capital project."},{"type":"null"}]},"actual_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Actual start date of the capital project."},{"type":"null"}]},"placed_in_service_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the finished work was capitalized into a fixed asset (place_capital_project_in_service)."},{"type":"null"}]},"cancel_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"Cancel reason of the capital project."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]},"relocation_cost_code_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The cost code whose budget line holds the temporary relocation budget; relocation cost from renovation_relocations is compared with it."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/categorization_rules":{"get":{"operationId":"list_categorization_rules","summary":"List categorization rules","description":"Bank transaction categorization: when an unmatched bank line matches the pattern (description and/or merchant, direction, amount range, bank account), suggest (or with is_auto_create, create) an entry to gl_account_id / property_id. Lower priority number wins. AI-suggested rules must be approved by a person before they become active.\n\nPages through the categorization rules table of the organization, oldest first. Filters: id, bank_account_id, match_type, direction, gl_account_id, property_id, vendor_id, is_auto_create, is_ai_suggested, approved_by, is_active, created_by.\n\nNeeds one of: banking.read, banking.write.","tags":["Categorization rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"match_type","in":"query","required":false,"schema":{"description":"Only rows whose match_type equals this.","type":"string","enum":["contains","starts_with","equals","regex"]},"description":"Only rows whose match_type equals this."},{"name":"direction","in":"query","required":false,"schema":{"description":"Only rows whose direction equals this.","type":"string","enum":["inflow","outflow","any"]},"description":"Only rows whose direction equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"is_auto_create","in":"query","required":false,"schema":{"description":"Only rows whose is_auto_create equals this.","type":"boolean"},"description":"Only rows whose is_auto_create equals this."},{"name":"is_ai_suggested","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_suggested equals this.","type":"boolean"},"description":"Only rows whose is_ai_suggested equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write"]}},"/v1/categorization_rules/{id}":{"get":{"operationId":"get_categorization_rules_row","summary":"Get a categorization rule","description":"Bank transaction categorization: when an unmatched bank line matches the pattern (description and/or merchant, direction, amount range, bank account), suggest (or with is_auto_create, create) an entry to gl_account_id / property_id. Lower priority number wins. AI-suggested rules must be approved by a person before they become active.\n\nOne row of categorization rules by id, with every column the API shows.\n\nNeeds one of: banking.read, banking.write.","tags":["Categorization rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write"]}},"/v1/certification_assets":{"get":{"operationId":"list_certification_assets","summary":"List certification assets","description":"Household assets with cash value (market value less cost to convert) and actual annual income. Assets disposed of for less than fair market value within 2 years are listed with disposed_on.\n\nPages through the certification assets table of the organization, oldest first. Filters: id, household_certification_id, certification_member_id, asset_type, disposed_on, is_excluded, verification_method, verified_on, document_id.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification assets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"certification_member_id","in":"query","required":false,"schema":{"description":"Only rows whose certification_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose certification_member_id equals this."},{"name":"asset_type","in":"query","required":false,"schema":{"description":"Only rows whose asset_type equals this.","type":"string","enum":["checking","savings","certificate_of_deposit","money_market","stocks_bonds","retirement_account","real_estate","cash_on_hand","life_insurance_cash_value","trust","cryptocurrency","other"]},"description":"Only rows whose asset_type equals this."},{"name":"disposed_on","in":"query","required":false,"schema":{"description":"Only rows whose disposed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose disposed_on equals this."},{"name":"is_excluded","in":"query","required":false,"schema":{"description":"Only rows whose is_excluded equals this.","type":"boolean"},"description":"Only rows whose is_excluded equals this."},{"name":"verification_method","in":"query","required":false,"schema":{"description":"Only rows whose verification_method equals this.","type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"]},"description":"Only rows whose verification_method equals this."},{"name":"verified_on","in":"query","required":false,"schema":{"description":"Only rows whose verified_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose verified_on equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_certification_assets_row","summary":"Create a certification asset","description":"Household assets with cash value (market value less cost to convert) and actual annual income. Assets disposed of for less than fair market value within 2 years are listed with disposed_on.\n\nInserts one row of certification assets in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Certification assets"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"certification_member_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certification member id"},"asset_type":{"type":"string","enum":["checking","savings","certificate_of_deposit","money_market","stocks_bonds","retirement_account","real_estate","cash_on_hand","life_insurance_cash_value","trust","cryptocurrency","other"],"description":"asset type"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"cash_value_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Net cash value: market value minus reasonable costs to convert to cash."},"annual_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Actual annual income the asset earns (interest, dividends, net rent)."},"disposed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"disposed on"},{"type":"null"}]},"is_excluded":{"type":"boolean","description":"Excluded asset (e.g. retirement accounts after HOTMA, necessary personal property)."},"verification_method":{"type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"],"description":"verification method"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["household_certification_id","certification_member_id","asset_type","cash_value_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_assets/{id}":{"get":{"operationId":"get_certification_assets_row","summary":"Get a certification asset","description":"Household assets with cash value (market value less cost to convert) and actual annual income. Assets disposed of for less than fair market value within 2 years are listed with disposed_on.\n\nOne row of certification assets by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_certification_assets_row","summary":"Update a certification asset","description":"Household assets with cash value (market value less cost to convert) and actual annual income. Assets disposed of for less than fair market value within 2 years are listed with disposed_on.\n\nChanges the given fields of one row of certification assets and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Certification assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"certification_member_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certification member id"},"asset_type":{"type":"string","enum":["checking","savings","certificate_of_deposit","money_market","stocks_bonds","retirement_account","real_estate","cash_on_hand","life_insurance_cash_value","trust","cryptocurrency","other"],"description":"asset type"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"cash_value_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Net cash value: market value minus reasonable costs to convert to cash."},"annual_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Actual annual income the asset earns (interest, dividends, net rent)."},"disposed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"disposed on"},{"type":"null"}]},"is_excluded":{"type":"boolean","description":"Excluded asset (e.g. retirement accounts after HOTMA, necessary personal property)."},"verification_method":{"type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"],"description":"verification method"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_deductions":{"get":{"operationId":"list_certification_deductions","summary":"List certification deductions","description":"Expense-based deductions claimed on a certification: childcare (to work or study), unreimbursed medical (elderly/disabled families) and disability assistance expenses. Dependent and elderly/disabled family allowances are computed, not entered.\n\nPages through the certification deductions table of the organization, oldest first. Filters: id, household_certification_id, certification_member_id, deduction_type, verification_method, document_id.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification deductions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"certification_member_id","in":"query","required":false,"schema":{"description":"Only rows whose certification_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose certification_member_id equals this."},{"name":"deduction_type","in":"query","required":false,"schema":{"description":"Only rows whose deduction_type equals this.","type":"string","enum":["childcare","medical","disability_assistance"]},"description":"Only rows whose deduction_type equals this."},{"name":"verification_method","in":"query","required":false,"schema":{"description":"Only rows whose verification_method equals this.","type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"]},"description":"Only rows whose verification_method equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_certification_deductions_row","summary":"Create a certification deduction","description":"Expense-based deductions claimed on a certification: childcare (to work or study), unreimbursed medical (elderly/disabled families) and disability assistance expenses. Dependent and elderly/disabled family allowances are computed, not entered.\n\nInserts one row of certification deductions in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Certification deductions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"certification_member_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certification member id"},{"type":"null"}]},"deduction_type":{"type":"string","enum":["childcare","medical","disability_assistance"],"description":"deduction type"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"annual_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"annual amount cents"},"verification_method":{"type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"],"description":"verification method"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["household_certification_id","deduction_type","annual_amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_deductions/{id}":{"get":{"operationId":"get_certification_deductions_row","summary":"Get a certification deduction","description":"Expense-based deductions claimed on a certification: childcare (to work or study), unreimbursed medical (elderly/disabled families) and disability assistance expenses. Dependent and elderly/disabled family allowances are computed, not entered.\n\nOne row of certification deductions by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification deductions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_certification_deductions_row","summary":"Update a certification deduction","description":"Expense-based deductions claimed on a certification: childcare (to work or study), unreimbursed medical (elderly/disabled families) and disability assistance expenses. Dependent and elderly/disabled family allowances are computed, not entered.\n\nChanges the given fields of one row of certification deductions and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Certification deductions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"certification_member_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certification member id"},{"type":"null"}]},"deduction_type":{"type":"string","enum":["childcare","medical","disability_assistance"],"description":"deduction type"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"annual_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"annual amount cents"},"verification_method":{"type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"],"description":"verification method"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_income_sources":{"get":{"operationId":"list_certification_income_sources","summary":"List certification income sources","description":"Each income source of a household member (wages, benefits, support) with verification. annual_amount_cents annualizes amount_cents by frequency.\n\nPages through the certification income sources table of the organization, oldest first. Filters: id, household_certification_id, certification_member_id, income_type, frequency, is_excluded, verification_method, verified_on, document_id.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification income sources"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"certification_member_id","in":"query","required":false,"schema":{"description":"Only rows whose certification_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose certification_member_id equals this."},{"name":"income_type","in":"query","required":false,"schema":{"description":"Only rows whose income_type equals this.","type":"string","enum":["employment","self_employment","social_security","ssi","pension","unemployment","tanf","child_support","alimony","veterans_benefits","disability","military_pay","gifts_contributions","other"]},"description":"Only rows whose income_type equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["weekly","biweekly","semimonthly","monthly","quarterly","semiannual","annual","one_time"]},"description":"Only rows whose frequency equals this."},{"name":"is_excluded","in":"query","required":false,"schema":{"description":"Only rows whose is_excluded equals this.","type":"boolean"},"description":"Only rows whose is_excluded equals this."},{"name":"verification_method","in":"query","required":false,"schema":{"description":"Only rows whose verification_method equals this.","type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"]},"description":"Only rows whose verification_method equals this."},{"name":"verified_on","in":"query","required":false,"schema":{"description":"Only rows whose verified_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose verified_on equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_certification_income_sources_row","summary":"Create a certification income source","description":"Each income source of a household member (wages, benefits, support) with verification. annual_amount_cents annualizes amount_cents by frequency.\n\nInserts one row of certification income sources in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Certification income sources"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"certification_member_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certification member id"},"income_type":{"type":"string","enum":["employment","self_employment","social_security","ssi","pension","unemployment","tanf","child_support","alimony","veterans_benefits","disability","military_pay","gifts_contributions","other"],"description":"income type"},"source_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"source name"},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount per frequency period (e.g. per paycheck for biweekly)."},"frequency":{"type":"string","enum":["weekly","biweekly","semimonthly","monthly","quarterly","semiannual","annual","one_time"],"description":"frequency"},"is_excluded":{"type":"boolean","description":"Excluded income per program rules (e.g. earnings of a minor, student financial aid exclusions); listed but not counted."},"verification_method":{"type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"],"description":"verification method"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["household_certification_id","certification_member_id","income_type","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_income_sources/{id}":{"get":{"operationId":"get_certification_income_sources_row","summary":"Get a certification income source","description":"Each income source of a household member (wages, benefits, support) with verification. annual_amount_cents annualizes amount_cents by frequency.\n\nOne row of certification income sources by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification income sources"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_certification_income_sources_row","summary":"Update a certification income source","description":"Each income source of a household member (wages, benefits, support) with verification. annual_amount_cents annualizes amount_cents by frequency.\n\nChanges the given fields of one row of certification income sources and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Certification income sources"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"certification_member_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certification member id"},"income_type":{"type":"string","enum":["employment","self_employment","social_security","ssi","pension","unemployment","tanf","child_support","alimony","veterans_benefits","disability","military_pay","gifts_contributions","other"],"description":"income type"},"source_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"source name"},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount per frequency period (e.g. per paycheck for biweekly)."},"frequency":{"type":"string","enum":["weekly","biweekly","semimonthly","monthly","quarterly","semiannual","annual","one_time"],"description":"frequency"},"is_excluded":{"type":"boolean","description":"Excluded income per program rules (e.g. earnings of a minor, student financial aid exclusions); listed but not counted."},"verification_method":{"type":"string","enum":["eiv","third_party_written","third_party_oral","document","self_certification","not_verified"],"description":"verification method"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_members":{"get":{"operationId":"list_certification_members","summary":"List certification members","description":"Household members on a certification (snapshot per certification, linked to their contact when one exists). Live-in aides and foster members are listed but excluded from household size where rules say so (is_counted_in_household).\n\nPages through the certification members table of the organization, oldest first. Filters: id, household_certification_id, contact_id, relationship, is_disabled, student_status, is_counted_in_household.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"relationship","in":"query","required":false,"schema":{"description":"Only rows whose relationship equals this.","type":"string","enum":["head","co_head","spouse","dependent","foster_child","foster_adult","live_in_aide","other_adult","other"]},"description":"Only rows whose relationship equals this."},{"name":"is_disabled","in":"query","required":false,"schema":{"description":"Only rows whose is_disabled equals this.","type":"boolean"},"description":"Only rows whose is_disabled equals this."},{"name":"student_status","in":"query","required":false,"schema":{"description":"Only rows whose student_status equals this.","type":"string","enum":["none","part_time","full_time"]},"description":"Only rows whose student_status equals this."},{"name":"is_counted_in_household","in":"query","required":false,"schema":{"description":"Only rows whose is_counted_in_household equals this.","type":"boolean"},"description":"Only rows whose is_counted_in_household equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_certification_members_row","summary":"Create a certification member","description":"Household members on a certification (snapshot per certification, linked to their contact when one exists). Live-in aides and foster members are listed but excluded from household size where rules say so (is_counted_in_household).\n\nInserts one row of certification members in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Certification members"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"member_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Line number on the 50059 / TIC (1 = head)."},"first_name":{"type":"string","maxLength":100000,"description":"first name"},"last_name":{"type":"string","maxLength":100000,"description":"last name"},"relationship":{"type":"string","enum":["head","co_head","spouse","dependent","foster_child","foster_adult","live_in_aide","other_adult","other"],"description":"relationship"},"ssn_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"Last 4 of SSN only; full SSN lives in the agency system (EIV/TRACS), never here."},{"type":"null"}]},"is_disabled":{"type":"boolean","description":"is disabled"},"is_counted_in_household":{"type":"boolean","description":"is counted in household"},"citizenship_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"HUD citizenship / eligible immigration status code (EC, EN, IC, IP, PV, ND, XX)."},{"type":"null"}]}},"required":["household_certification_id","member_number","first_name","last_name","relationship"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/certification_members/{id}":{"get":{"operationId":"get_certification_members_row","summary":"Get a certification member","description":"Household members on a certification (snapshot per certification, linked to their contact when one exists). Live-in aides and foster members are listed but excluded from household size where rules say so (is_counted_in_household).\n\nOne row of certification members by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Certification members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_certification_members_row","summary":"Update a certification member","description":"Household members on a certification (snapshot per certification, linked to their contact when one exists). Live-in aides and foster members are listed but excluded from household size where rules say so (is_counted_in_household).\n\nChanges the given fields of one row of certification members and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Certification members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"member_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Line number on the 50059 / TIC (1 = head)."},"first_name":{"type":"string","maxLength":100000,"description":"first name"},"last_name":{"type":"string","maxLength":100000,"description":"last name"},"relationship":{"type":"string","enum":["head","co_head","spouse","dependent","foster_child","foster_adult","live_in_aide","other_adult","other"],"description":"relationship"},"ssn_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"Last 4 of SSN only; full SSN lives in the agency system (EIV/TRACS), never here."},{"type":"null"}]},"is_disabled":{"type":"boolean","description":"is disabled"},"is_counted_in_household":{"type":"boolean","description":"is counted in household"},"citizenship_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"HUD citizenship / eligible immigration status code (EC, EN, IC, IP, PV, ND, XX)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_certification_members_row","summary":"Delete a certification member","description":"Household members on a certification (snapshot per certification, linked to their contact when one exists). Live-in aides and foster members are listed but excluded from household size where rules say so (is_counted_in_household).\n\nDeletes one row of certification members. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["Certification members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/charge_types":{"get":{"operationId":"list_charge_types","summary":"List charge types","description":"Org-configurable kinds of tenant charges (rent, pet rent, utilities, late fee, deposit...). Decides the GL account a charge credits and the order receipts pay charges off. Seeded per organization.\n\nPages through the charge types table of the organization, oldest first. Filters: id, gl_account_id, credit_gl_account_id, is_deposit, is_rent, is_late_fee_eligible, is_taxable, is_recurring_default, is_tenant_payable_online, is_system, created_by.\n\nNeeds one of: settings.write.","tags":["Charge types"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"credit_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose credit_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose credit_gl_account_id equals this."},{"name":"is_deposit","in":"query","required":false,"schema":{"description":"Only rows whose is_deposit equals this.","type":"boolean"},"description":"Only rows whose is_deposit equals this."},{"name":"is_rent","in":"query","required":false,"schema":{"description":"Only rows whose is_rent equals this.","type":"boolean"},"description":"Only rows whose is_rent equals this."},{"name":"is_late_fee_eligible","in":"query","required":false,"schema":{"description":"Only rows whose is_late_fee_eligible equals this.","type":"boolean"},"description":"Only rows whose is_late_fee_eligible equals this."},{"name":"is_taxable","in":"query","required":false,"schema":{"description":"Only rows whose is_taxable equals this.","type":"boolean"},"description":"Only rows whose is_taxable equals this."},{"name":"is_recurring_default","in":"query","required":false,"schema":{"description":"Only rows whose is_recurring_default equals this.","type":"boolean"},"description":"Only rows whose is_recurring_default equals this."},{"name":"is_tenant_payable_online","in":"query","required":false,"schema":{"description":"Only rows whose is_tenant_payable_online equals this.","type":"boolean"},"description":"Only rows whose is_tenant_payable_online equals this."},{"name":"is_system","in":"query","required":false,"schema":{"description":"Only rows whose is_system equals this.","type":"boolean"},"description":"Only rows whose is_system equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"post":{"operationId":"create_charge_types_row","summary":"Create a charge type","description":"Org-configurable kinds of tenant charges (rent, pet rent, utilities, late fee, deposit...). Decides the GL account a charge credits and the order receipts pay charges off. Seeded per organization.\n\nInserts one row of charge types in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Charge types"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":100000,"description":"Stable uppercase key (RENT, LATE_FEE, NSF_FEE, SECURITY_DEPOSIT, ...). System code paths look charge types up by code."},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Account credited when a charge of this type is posted: an income account, or a liability (SECURITY_DEPOSITS_HELD) for deposits."},"credit_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Account debited when a credit/concession is posted against this type (e.g. CONCESSIONS). Null = debit gl_account_id (reduce the income directly)."},{"type":"null"}]},"allocation_priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Receipts pay open charges in ascending priority, then oldest due date first. Lower = paid first."},"is_deposit":{"type":"boolean","description":"Refundable deposit: charges credit SECURITY_DEPOSITS_HELD, are excluded from late fees and are not covered by deposit dispositions."},"is_rent":{"type":"boolean","description":"Counts as rent: basis for percent_of_rent late fees, rent roll and rent-only autopay."},"is_late_fee_eligible":{"type":"boolean","description":"An unpaid past-due balance of this type can trigger late fees."},"is_taxable":{"type":"boolean","description":"Subject to sales/occupancy tax in the property's jurisdiction (rate in tax_rate where 0.06 = 6%)."},"tax_rate":{"anyOf":[{"type":"number","description":"tax rate"},{"type":"null"}]},"is_recurring_default":{"type":"boolean","description":"Offered by default when setting up recurring charges on a new lease."},"is_tenant_payable_online":{"type":"boolean","description":"Tenants may pay this type through the portal (some orgs require certified funds for certain charges)."},"default_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Suggested amount when staff add a charge of this type."},{"type":"null"}]},"is_system":{"type":"boolean","description":"Seeded type the code relies on (RENT, LATE_FEE, NSF_FEE, SECURITY_DEPOSIT...). Can be renamed, not removed."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["code","name","gl_account_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/charge_types/{id}":{"get":{"operationId":"get_charge_types_row","summary":"Get a charge type","description":"Org-configurable kinds of tenant charges (rent, pet rent, utilities, late fee, deposit...). Decides the GL account a charge credits and the order receipts pay charges off. Seeded per organization.\n\nOne row of charge types by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Charge types"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/charges/{id}":{"get":{"operationId":"get_charges_row","summary":"Get a charge","description":"Amounts billed to a tenant (or to a contact without a lease, e.g. an applicant). Each posts Dr AR_TENANTS / Cr the charge type's account on the accrual basis. Paid/open status is derived from receipt_allocations, credit_allocations and write_off_lines (see view charge_balances). Immutable; corrections are reversals.\n\nOne row of charges by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Charges"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/checks":{"get":{"operationId":"list_checks","summary":"List checks","description":"Paper or mailed checks drawn on a bank account. The money side is posted by the payment the check pays (exactly one of vendor_payment_id, owner_distribution_line_id, refund_id, security_deposit_disposition_id, receipt_refund_id) or, for a direct \"write check\" expense, by its own journal_entry_id. Voiding a check reverses that payment.\n\nPages through the checks table of the organization, oldest first. Filters: id, bank_account_id, payee_contact_id, payee_vendor_id, payee_owner_id, issued_on, status, vendor_payment_id, owner_distribution_line_id, refund_id, security_deposit_disposition_id, receipt_refund_id, journal_entry_id, cleared_on, void_journal_entry_id, mailing_provider, expected_delivery_on, created_by.\n\nNeeds one of: banking.read, payables.read.","tags":["Checks"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"payee_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose payee_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payee_contact_id equals this."},{"name":"payee_vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose payee_vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payee_vendor_id equals this."},{"name":"payee_owner_id","in":"query","required":false,"schema":{"description":"Only rows whose payee_owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payee_owner_id equals this."},{"name":"issued_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["to_print","printed","issued","voided","cleared","stale"]},"description":"Only rows whose status equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"owner_distribution_line_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_distribution_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_distribution_line_id equals this."},{"name":"refund_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_id equals this."},{"name":"security_deposit_disposition_id","in":"query","required":false,"schema":{"description":"Only rows whose security_deposit_disposition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose security_deposit_disposition_id equals this."},{"name":"receipt_refund_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_refund_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_refund_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"cleared_on","in":"query","required":false,"schema":{"description":"Only rows whose cleared_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cleared_on equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."},{"name":"mailing_provider","in":"query","required":false,"schema":{"description":"Only rows whose mailing_provider equals this.","type":"string","enum":["lob","checkbook","in_house"]},"description":"Only rows whose mailing_provider equals this."},{"name":"expected_delivery_on","in":"query","required":false,"schema":{"description":"Only rows whose expected_delivery_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expected_delivery_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","payables.read"]}},"/v1/checks/{id}":{"get":{"operationId":"get_checks_row","summary":"Get a check","description":"Paper or mailed checks drawn on a bank account. The money side is posted by the payment the check pays (exactly one of vendor_payment_id, owner_distribution_line_id, refund_id, security_deposit_disposition_id, receipt_refund_id) or, for a direct \"write check\" expense, by its own journal_entry_id. Voiding a check reverses that payment.\n\nOne row of checks by id, with every column the API shows.\n\nNeeds one of: banking.read, payables.read.","tags":["Checks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","payables.read"]}},"/v1/close_settings":{"get":{"operationId":"list_close_settings","summary":"List close settings","description":"Month-end close settings per organization. require_signoff: a hard close (close_accounting_period with status closed) needs a current sign-off on every close step that applies. Written by set_close_settings.\n\nPages through the close settings table of the organization, oldest first. Filters: id, require_signoff, updated_by.\n\nNeeds one of: gl.read, settings.write.","tags":["Close settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"require_signoff","in":"query","required":false,"schema":{"description":"Only rows whose require_signoff equals this.","type":"boolean"},"description":"Only rows whose require_signoff equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","settings.write"]}},"/v1/close_settings/{id}":{"get":{"operationId":"get_close_settings_row","summary":"Get a close setting","description":"Month-end close settings per organization. require_signoff: a hard close (close_accounting_period with status closed) needs a current sign-off on every close step that applies. Written by set_close_settings.\n\nOne row of close settings by id, with every column the API shows.\n\nNeeds one of: gl.read, settings.write.","tags":["Close settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","settings.write"]}},"/v1/close_task_templates":{"get":{"operationId":"list_close_task_templates","summary":"List close task templates","description":"The organization's own month-end close tasks (for example \"Accrue payroll\"), each with an assignee, a reviewer and a due day. Every month that is not closed gets a copy in close_tasks. Written by save_close_task_template and archive_close_task_template.\n\nPages through the close task templates table of the organization, oldest first. Filters: id, assignee_id, reviewer_id, is_active, created_by.\n\nNeeds one of: gl.read.","tags":["Close task templates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"assignee_id","in":"query","required":false,"schema":{"description":"Only rows whose assignee_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assignee_id equals this."},{"name":"reviewer_id","in":"query","required":false,"schema":{"description":"Only rows whose reviewer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reviewer_id equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/close_task_templates/{id}":{"get":{"operationId":"get_close_task_templates_row","summary":"Get a close task template","description":"The organization's own month-end close tasks (for example \"Accrue payroll\"), each with an assignee, a reviewer and a due day. Every month that is not closed gets a copy in close_tasks. Written by save_close_task_template and archive_close_task_template.\n\nOne row of close task templates by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Close task templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/close_tasks":{"get":{"operationId":"list_close_tasks","summary":"List close tasks","description":"One month's copy of a close task template: who does it, who reviews it, when it is due, and when it was done and reviewed. Copied when a template is saved (months not closed) and when a month is created. Written by the close task RPCs.\n\nPages through the close tasks table of the organization, oldest first. Filters: id, accounting_period_id, template_id, assignee_id, reviewer_id, due_on, completed_by, reviewed_by.\n\nNeeds one of: gl.read.","tags":["Close tasks"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"accounting_period_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_period_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_period_id equals this."},{"name":"template_id","in":"query","required":false,"schema":{"description":"Only rows whose template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose template_id equals this."},{"name":"assignee_id","in":"query","required":false,"schema":{"description":"Only rows whose assignee_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assignee_id equals this."},{"name":"reviewer_id","in":"query","required":false,"schema":{"description":"Only rows whose reviewer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reviewer_id equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"completed_by","in":"query","required":false,"schema":{"description":"Only rows whose completed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose completed_by equals this."},{"name":"reviewed_by","in":"query","required":false,"schema":{"description":"Only rows whose reviewed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reviewed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/close_tasks/{id}":{"get":{"operationId":"get_close_tasks_row","summary":"Get a close task","description":"One month's copy of a close task template: who does it, who reviews it, when it is due, and when it was done and reviewed. Copied when a template is saved (months not closed) and when a month is created. Written by the close task RPCs.\n\nOne row of close tasks by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Close tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/collections_accounts":{"get":{"operationId":"list_collections_accounts","summary":"List collections accounts","description":"A former tenant's debt placed with a collection agency, usually after write_off_balance. Recoveries the agency reports are tracked here; money actually received is recorded as a receipt.\n\nPages through the collections accounts table of the organization, oldest first. Filters: id, lease_id, contact_id, property_id, agency_vendor_id, placed_on, status, is_reported_to_credit_bureau, last_activity_on, closed_on, created_by, eviction_case_id, recalled_on, reported_to_credit_bureau_on.\n\nNeeds one of: receivables.read.","tags":["Collections accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"agency_vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose agency_vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose agency_vendor_id equals this."},{"name":"placed_on","in":"query","required":false,"schema":{"description":"Only rows whose placed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose placed_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["placed","in_progress","payment_arrangement","paid_in_full","settled","recalled","uncollectible"]},"description":"Only rows whose status equals this."},{"name":"is_reported_to_credit_bureau","in":"query","required":false,"schema":{"description":"Only rows whose is_reported_to_credit_bureau equals this.","type":"boolean"},"description":"Only rows whose is_reported_to_credit_bureau equals this."},{"name":"last_activity_on","in":"query","required":false,"schema":{"description":"Only rows whose last_activity_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_activity_on equals this."},{"name":"closed_on","in":"query","required":false,"schema":{"description":"Only rows whose closed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose closed_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"recalled_on","in":"query","required":false,"schema":{"description":"Only rows whose recalled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose recalled_on equals this."},{"name":"reported_to_credit_bureau_on","in":"query","required":false,"schema":{"description":"Only rows whose reported_to_credit_bureau_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reported_to_credit_bureau_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/collections_accounts/{id}":{"get":{"operationId":"get_collections_accounts_row","summary":"Get a collections account","description":"A former tenant's debt placed with a collection agency, usually after write_off_balance. Recoveries the agency reports are tracked here; money actually received is recorded as a receipt.\n\nOne row of collections accounts by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Collections accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]},"patch":{"operationId":"update_collections_accounts_row","summary":"Update a collections account","description":"A former tenant's debt placed with a collection agency, usually after write_off_balance. Recoveries the agency reports are tracked here; money actually received is recorded as a receipt.\n\nChanges the given fields of one row of collections accounts and returns it. Fields left out stay as they are.\n\nNeeds one of: receivables.write.","tags":["Collections accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"agency_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The collection agency as a vendor (for commission bills); or agency_name for a free-text agency."},{"type":"null"}]},"agency_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency name"},{"type":"null"}]},"placed_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"placed on"},"placed_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Debt amount handed to the agency."},"recovered_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Gross amount the agency reports collected to date."},"commission_rate":{"anyOf":[{"type":"number","description":"Agency contingency fee as a rate (0.35 = 35%)."},{"type":"null"}]},"is_reported_to_credit_bureau":{"type":"boolean","description":"The agency reported the debt to credit bureaus."},"last_activity_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"last activity on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"eviction_case_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Eviction case whose judgment / balance was placed (added in 00020)."},{"type":"null"}]},"recalled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the placement was pulled back from the agency (status recalled)."},{"type":"null"}]},"recall_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"recall reason"},{"type":"null"}]},"reported_to_credit_bureau_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the agency first reported the debt to the credit bureaus; set with is_reported_to_credit_bureau by public.record_collections_credit_report."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/collections_letters":{"get":{"operationId":"list_collections_letters","summary":"List collections letters","description":"A draft arrears letter, made from system template notice_demand_letter, which says it is not a legal notice. Staff edit it (update_collections_letter), send it (record_collections_letter_sent after the server renders the PDF) or skip it (skip_collections_letter). Never written by a model.\n\nPages through the collections letters table of the organization, oldest first. Filters: id, run_id, item_id, lease_id, property_id, status, respond_by_on, document_id, decided_by.\n\nNeeds one of: receivables.read.","tags":["Collections letters"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"run_id","in":"query","required":false,"schema":{"description":"Only rows whose run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose run_id equals this."},{"name":"item_id","in":"query","required":false,"schema":{"description":"Only rows whose item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose item_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","sending","sent","skipped"]},"description":"Only rows whose status equals this."},{"name":"respond_by_on","in":"query","required":false,"schema":{"description":"Only rows whose respond_by_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose respond_by_on equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/collections_letters/{id}":{"get":{"operationId":"get_collections_letters_row","summary":"Get a collections letter","description":"A draft arrears letter, made from system template notice_demand_letter, which says it is not a legal notice. Staff edit it (update_collections_letter), send it (record_collections_letter_sent after the server renders the PDF) or skip it (skip_collections_letter). Never written by a model.\n\nOne row of collections letters by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Collections letters"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/collections_recoveries":{"get":{"operationId":"list_collections_recoveries","summary":"List collections recoveries","description":"Itemized recoveries on a collections account: each amount the agency collected, its commission, and the receipt that recorded the money on the tenant ledger. collections_accounts.recovered_cents is kept equal to the sum of gross_amount_cents by record_collections_recovery(). The commission expense is booked as a vendor bill to the agency.\n\nPages through the collections recoveries table of the organization, oldest first. Filters: id, collections_account_id, receipt_id, recovered_on, is_remitted_by_agency, created_by.\n\nNeeds one of: legal.read, receivables.read.","tags":["Collections recoveries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"collections_account_id","in":"query","required":false,"schema":{"description":"Only rows whose collections_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose collections_account_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"recovered_on","in":"query","required":false,"schema":{"description":"Only rows whose recovered_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose recovered_on equals this."},{"name":"is_remitted_by_agency","in":"query","required":false,"schema":{"description":"Only rows whose is_remitted_by_agency equals this.","type":"boolean"},"description":"Only rows whose is_remitted_by_agency equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","receivables.read"]}},"/v1/collections_recoveries/{id}":{"get":{"operationId":"get_collections_recoveries_row","summary":"Get a collections recovery","description":"Itemized recoveries on a collections account: each amount the agency collected, its commission, and the receipt that recorded the money on the tenant ledger. collections_accounts.recovered_cents is kept equal to the sum of gross_amount_cents by record_collections_recovery(). The commission expense is booked as a vendor bill to the agency.\n\nOne row of collections recoveries by id, with every column the API shows.\n\nNeeds one of: legal.read, receivables.read.","tags":["Collections recoveries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","receivables.read"]}},"/v1/collections_referral_policies":{"get":{"operationId":"list_collections_referral_policies","summary":"List collections referral policies","description":"When an account is flagged for legal referral review: eligible tenant arrears (subsidy receivables never count) of at least min_arrears_cents, at least min_unpaid_periods months of rent unpaid (arrears / monthly rent, rounded down), and the oldest unpaid charge at least min_oldest_days old, combined with logic (any or all). Accounts with an active payment plan or an open payment dispute are held when the flags say so. A policy flags accounts for review; it never starts a proceeding, and it never replaces the applicable legal requirements. property_id null = the whole organization.\n\nPages through the collections referral policies table of the organization, oldest first. Filters: id, property_id, logic, exclude_payment_plans, exclude_open_disputes, requires_ledger_review, effective_on, ends_on, is_active, approved_by, created_by.\n\nNeeds one of: legal.read, legal.write.","tags":["Collections referral policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"logic","in":"query","required":false,"schema":{"description":"Only rows whose logic equals this.","type":"string","enum":["any","all"]},"description":"Only rows whose logic equals this."},{"name":"exclude_payment_plans","in":"query","required":false,"schema":{"description":"Only rows whose exclude_payment_plans equals this.","type":"boolean"},"description":"Only rows whose exclude_payment_plans equals this."},{"name":"exclude_open_disputes","in":"query","required":false,"schema":{"description":"Only rows whose exclude_open_disputes equals this.","type":"boolean"},"description":"Only rows whose exclude_open_disputes equals this."},{"name":"requires_ledger_review","in":"query","required":false,"schema":{"description":"Only rows whose requires_ledger_review equals this.","type":"boolean"},"description":"Only rows whose requires_ledger_review equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"post":{"operationId":"create_collections_referral_policies_row","summary":"Create a collections referral policy","description":"When an account is flagged for legal referral review: eligible tenant arrears (subsidy receivables never count) of at least min_arrears_cents, at least min_unpaid_periods months of rent unpaid (arrears / monthly rent, rounded down), and the oldest unpaid charge at least min_oldest_days old, combined with logic (any or all). Accounts with an active payment plan or an open payment dispute are held when the flags say so. A policy flags accounts for review; it never starts a proceeding, and it never replaces the applicable legal requirements. property_id null = the whole organization.\n\nInserts one row of collections referral policies in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: legal.write.","tags":["Collections referral policies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"min_arrears_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min arrears cents"},{"type":"null"}]},"min_unpaid_periods":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Months of rent unpaid: floor(eligible arrears / current monthly rent)."},{"type":"null"}]},"min_oldest_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days late of the oldest unpaid charge."},{"type":"null"}]},"logic":{"type":"string","enum":["any","all"],"description":"logic"},"exclude_payment_plans":{"type":"boolean","description":"exclude payment plans"},"exclude_open_disputes":{"type":"boolean","description":"exclude open disputes"},"requires_ledger_review":{"type":"boolean","description":"requires ledger review"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/collections_referral_policies/{id}":{"get":{"operationId":"get_collections_referral_policies_row","summary":"Get a collections referral policy","description":"When an account is flagged for legal referral review: eligible tenant arrears (subsidy receivables never count) of at least min_arrears_cents, at least min_unpaid_periods months of rent unpaid (arrears / monthly rent, rounded down), and the oldest unpaid charge at least min_oldest_days old, combined with logic (any or all). Accounts with an active payment plan or an open payment dispute are held when the flags say so. A policy flags accounts for review; it never starts a proceeding, and it never replaces the applicable legal requirements. property_id null = the whole organization.\n\nOne row of collections referral policies by id, with every column the API shows.\n\nNeeds one of: legal.read, legal.write.","tags":["Collections referral policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"patch":{"operationId":"update_collections_referral_policies_row","summary":"Update a collections referral policy","description":"When an account is flagged for legal referral review: eligible tenant arrears (subsidy receivables never count) of at least min_arrears_cents, at least min_unpaid_periods months of rent unpaid (arrears / monthly rent, rounded down), and the oldest unpaid charge at least min_oldest_days old, combined with logic (any or all). Accounts with an active payment plan or an open payment dispute are held when the flags say so. A policy flags accounts for review; it never starts a proceeding, and it never replaces the applicable legal requirements. property_id null = the whole organization.\n\nChanges the given fields of one row of collections referral policies and returns it. Fields left out stay as they are.\n\nNeeds one of: legal.write.","tags":["Collections referral policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"min_arrears_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min arrears cents"},{"type":"null"}]},"min_unpaid_periods":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Months of rent unpaid: floor(eligible arrears / current monthly rent)."},{"type":"null"}]},"min_oldest_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days late of the oldest unpaid charge."},{"type":"null"}]},"logic":{"type":"string","enum":["any","all"],"description":"logic"},"exclude_payment_plans":{"type":"boolean","description":"exclude payment plans"},"exclude_open_disputes":{"type":"boolean","description":"exclude open disputes"},"requires_ledger_review":{"type":"boolean","description":"requires ledger review"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]},"delete":{"operationId":"delete_collections_referral_policies_row","summary":"Delete a collections referral policy","description":"When an account is flagged for legal referral review: eligible tenant arrears (subsidy receivables never count) of at least min_arrears_cents, at least min_unpaid_periods months of rent unpaid (arrears / monthly rent, rounded down), and the oldest unpaid charge at least min_oldest_days old, combined with logic (any or all). Accounts with an active payment plan or an open payment dispute are held when the flags say so. A policy flags accounts for review; it never starts a proceeding, and it never replaces the applicable legal requirements. property_id null = the whole organization.\n\nDeletes one row of collections referral policies. The database refuses it where other records still need the row.\n\nNeeds one of: legal.write.","tags":["Collections referral policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/collections_runs":{"get":{"operationId":"list_collections_runs","summary":"List collections runs","description":"Its rows are in collections_run_items as they were on run_on; they never change after.\n\nPages through the collections runs table of the organization, oldest first. Filters: id, kind, period_on, run_on.\n\nNeeds one of: receivables.read.","tags":["Collections runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["unpaid_rent","arrears"]},"description":"Only rows whose kind equals this."},{"name":"period_on","in":"query","required":false,"schema":{"description":"Only rows whose period_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_on equals this."},{"name":"run_on","in":"query","required":false,"schema":{"description":"Only rows whose run_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose run_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/collections_runs/{id}":{"get":{"operationId":"get_collections_runs_row","summary":"Get a collections run","description":"Its rows are in collections_run_items as they were on run_on; they never change after.\n\nOne row of collections runs by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Collections runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/collections_settings":{"get":{"operationId":"list_collections_settings","summary":"List collections settings","description":"Per-organization settings of the monthly collections runs. No row means the defaults: both runs on, on the 10th, arrears over 2 months of rent or over $3,000. Saved through set_collections_settings.\n\nPages through the collections settings table of the organization, oldest first. Filters: id, unpaid_rent_enabled, arrears_letters_enabled, updated_by.\n\nNeeds one of: receivables.read.","tags":["Collections settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"unpaid_rent_enabled","in":"query","required":false,"schema":{"description":"Only rows whose unpaid_rent_enabled equals this.","type":"boolean"},"description":"Only rows whose unpaid_rent_enabled equals this."},{"name":"arrears_letters_enabled","in":"query","required":false,"schema":{"description":"Only rows whose arrears_letters_enabled equals this.","type":"boolean"},"description":"Only rows whose arrears_letters_enabled equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/collections_settings/{id}":{"get":{"operationId":"get_collections_settings_row","summary":"Get a collections setting","description":"Per-organization settings of the monthly collections runs. No row means the defaults: both runs on, on the 10th, arrears over 2 months of rent or over $3,000. Saved through set_collections_settings.\n\nOne row of collections settings by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Collections settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/commercial_insurance_certificates":{"get":{"operationId":"list_commercial_insurance_certificates","summary":"List commercial insurance certificates","description":"Certificates of insurance a commercial tenant (portal) or staff uploads against a lease's insurance requirement. Staff accept or reject each one (review_insurance_certificate); the accepted one on file is commercial_insurance_requirements.certificate_id. Rows are kept as history.\n\nPages through the commercial insurance certificates table of the organization, oldest first. Filters: id, property_id, lease_id, requirement_id, effective_on, expires_on, additional_insured, waiver_of_subrogation, primary_noncontributory, document_id, status, submitted_by, reviewed_by.\n\nNeeds one of: leasing.read.","tags":["Commercial insurance certificates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"requirement_id","in":"query","required":false,"schema":{"description":"Only rows whose requirement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requirement_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"additional_insured","in":"query","required":false,"schema":{"description":"Only rows whose additional_insured equals this.","type":"boolean"},"description":"Only rows whose additional_insured equals this."},{"name":"waiver_of_subrogation","in":"query","required":false,"schema":{"description":"Only rows whose waiver_of_subrogation equals this.","type":"boolean"},"description":"Only rows whose waiver_of_subrogation equals this."},{"name":"primary_noncontributory","in":"query","required":false,"schema":{"description":"Only rows whose primary_noncontributory equals this.","type":"boolean"},"description":"Only rows whose primary_noncontributory equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending_review","accepted","rejected"]},"description":"Only rows whose status equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"reviewed_by","in":"query","required":false,"schema":{"description":"Only rows whose reviewed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reviewed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/commercial_insurance_certificates/{id}":{"get":{"operationId":"get_commercial_insurance_certificates_row","summary":"Get a commercial insurance certificate","description":"Certificates of insurance a commercial tenant (portal) or staff uploads against a lease's insurance requirement. Staff accept or reject each one (review_insurance_certificate); the accepted one on file is commercial_insurance_requirements.certificate_id. Rows are kept as history.\n\nOne row of commercial insurance certificates by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Commercial insurance certificates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/commercial_insurance_requirements":{"get":{"operationId":"list_commercial_insurance_requirements","summary":"List commercial insurance requirements","description":"Insurance a commercial tenant must carry under its lease (certificate of insurance tracking). insurance_policy_id links the tenant's policy on file in insurance_policies; expiry tracking also flows into compliance_items / compliance deadlines.\n\nPages through the commercial insurance requirements table of the organization, oldest first. Filters: id, property_id, lease_id, coverage_type, requires_additional_insured, requires_waiver_of_subrogation, requires_primary_noncontributory, insurance_policy_id, status, certificate_expires_on, verified_by, created_by, certificate_id.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Commercial insurance requirements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"coverage_type","in":"query","required":false,"schema":{"description":"Only rows whose coverage_type equals this.","type":"string","enum":["general_liability","property","umbrella","workers_compensation","auto_liability","liquor_liability","business_interruption","professional_liability","builders_risk","other"]},"description":"Only rows whose coverage_type equals this."},{"name":"requires_additional_insured","in":"query","required":false,"schema":{"description":"Only rows whose requires_additional_insured equals this.","type":"boolean"},"description":"Only rows whose requires_additional_insured equals this."},{"name":"requires_waiver_of_subrogation","in":"query","required":false,"schema":{"description":"Only rows whose requires_waiver_of_subrogation equals this.","type":"boolean"},"description":"Only rows whose requires_waiver_of_subrogation equals this."},{"name":"requires_primary_noncontributory","in":"query","required":false,"schema":{"description":"Only rows whose requires_primary_noncontributory equals this.","type":"boolean"},"description":"Only rows whose requires_primary_noncontributory equals this."},{"name":"insurance_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose insurance_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose insurance_policy_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","compliant","insufficient","expired","waived"]},"description":"Only rows whose status equals this."},{"name":"certificate_expires_on","in":"query","required":false,"schema":{"description":"Only rows whose certificate_expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose certificate_expires_on equals this."},{"name":"verified_by","in":"query","required":false,"schema":{"description":"Only rows whose verified_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose verified_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"certificate_id","in":"query","required":false,"schema":{"description":"Only rows whose certificate_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose certificate_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_commercial_insurance_requirements_row","summary":"Create a commercial insurance requirement","description":"Insurance a commercial tenant must carry under its lease (certificate of insurance tracking). insurance_policy_id links the tenant's policy on file in insurance_policies; expiry tracking also flows into compliance_items / compliance deadlines.\n\nInserts one row of commercial insurance requirements in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Commercial insurance requirements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"coverage_type":{"type":"string","enum":["general_liability","property","umbrella","workers_compensation","auto_liability","liquor_liability","business_interruption","professional_liability","builders_risk","other"],"description":"coverage type"},"min_per_occurrence_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min per occurrence cents"},{"type":"null"}]},"min_aggregate_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min aggregate cents"},{"type":"null"}]},"requires_additional_insured":{"type":"boolean","description":"requires additional insured"},"requires_waiver_of_subrogation":{"type":"boolean","description":"requires waiver of subrogation"},"requires_primary_noncontributory":{"type":"boolean","description":"requires primary noncontributory"},"cancellation_notice_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cancellation notice days"},{"type":"null"}]},"insurance_policy_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Policy on file (public.insurance_policies, 00014) that satisfies this requirement."},{"type":"null"}]},"certificate_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Expiry date of the certificate on file; drives an insurance_expiry critical date."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"certificate_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The accepted certificate on file (commercial_insurance_certificates, 00130). Accepting a certificate sets it, with certificate_expires_on, verified_at, verified_by and status."},{"type":"null"}]}},"required":["property_id","lease_id","coverage_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/commercial_insurance_requirements/{id}":{"get":{"operationId":"get_commercial_insurance_requirements_row","summary":"Get a commercial insurance requirement","description":"Insurance a commercial tenant must carry under its lease (certificate of insurance tracking). insurance_policy_id links the tenant's policy on file in insurance_policies; expiry tracking also flows into compliance_items / compliance deadlines.\n\nOne row of commercial insurance requirements by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Commercial insurance requirements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_commercial_insurance_requirements_row","summary":"Update a commercial insurance requirement","description":"Insurance a commercial tenant must carry under its lease (certificate of insurance tracking). insurance_policy_id links the tenant's policy on file in insurance_policies; expiry tracking also flows into compliance_items / compliance deadlines.\n\nChanges the given fields of one row of commercial insurance requirements and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Commercial insurance requirements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"coverage_type":{"type":"string","enum":["general_liability","property","umbrella","workers_compensation","auto_liability","liquor_liability","business_interruption","professional_liability","builders_risk","other"],"description":"coverage type"},"min_per_occurrence_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min per occurrence cents"},{"type":"null"}]},"min_aggregate_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min aggregate cents"},{"type":"null"}]},"requires_additional_insured":{"type":"boolean","description":"requires additional insured"},"requires_waiver_of_subrogation":{"type":"boolean","description":"requires waiver of subrogation"},"requires_primary_noncontributory":{"type":"boolean","description":"requires primary noncontributory"},"cancellation_notice_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cancellation notice days"},{"type":"null"}]},"insurance_policy_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Policy on file (public.insurance_policies, 00014) that satisfies this requirement."},{"type":"null"}]},"certificate_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Expiry date of the certificate on file; drives an insurance_expiry critical date."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"certificate_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The accepted certificate on file (commercial_insurance_certificates, 00130). Accepting a certificate sets it, with certificate_expires_on, verified_at, verified_by and status."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_commercial_insurance_requirements_row","summary":"Delete a commercial insurance requirement","description":"Insurance a commercial tenant must carry under its lease (certificate of insurance tracking). insurance_policy_id links the tenant's policy on file in insurance_policies; expiry tracking also flows into compliance_items / compliance deadlines.\n\nDeletes one row of commercial insurance requirements. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Commercial insurance requirements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/commercial_lease_terms":{"get":{"operationId":"list_commercial_lease_terms","summary":"List commercial lease terms","description":"Commercial economics of a lease (one row per commercial or mixed-use lease): structure (gross / modified gross / NNN / absolute NNN / percentage), leased area, pro-rata share, base year or expense stop, deposit, clauses and reporting obligations. Base rent amounts stay on leases / lease_rent_schedules / recurring_charges; increases are in rent_escalations.\n\nPages through the commercial lease terms table of the organization, oldest first. Filters: id, property_id, lease_id, lease_structure, space_type, commencement_on, rent_commencement_on, has_percentage_rent, has_cam_recovery, has_tax_recovery, has_insurance_recovery, requires_sales_reporting, sales_report_frequency, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Commercial lease terms"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"lease_structure","in":"query","required":false,"schema":{"description":"Only rows whose lease_structure equals this.","type":"string","enum":["gross","modified_gross","single_net","double_net","nnn","absolute_nnn","percentage"]},"description":"Only rows whose lease_structure equals this."},{"name":"space_type","in":"query","required":false,"schema":{"description":"Only rows whose space_type equals this.","type":"string","enum":["office","retail","restaurant","medical","industrial","warehouse","flex","lab","land","kiosk","other"]},"description":"Only rows whose space_type equals this."},{"name":"commencement_on","in":"query","required":false,"schema":{"description":"Only rows whose commencement_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose commencement_on equals this."},{"name":"rent_commencement_on","in":"query","required":false,"schema":{"description":"Only rows whose rent_commencement_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose rent_commencement_on equals this."},{"name":"has_percentage_rent","in":"query","required":false,"schema":{"description":"Only rows whose has_percentage_rent equals this.","type":"boolean"},"description":"Only rows whose has_percentage_rent equals this."},{"name":"has_cam_recovery","in":"query","required":false,"schema":{"description":"Only rows whose has_cam_recovery equals this.","type":"boolean"},"description":"Only rows whose has_cam_recovery equals this."},{"name":"has_tax_recovery","in":"query","required":false,"schema":{"description":"Only rows whose has_tax_recovery equals this.","type":"boolean"},"description":"Only rows whose has_tax_recovery equals this."},{"name":"has_insurance_recovery","in":"query","required":false,"schema":{"description":"Only rows whose has_insurance_recovery equals this.","type":"boolean"},"description":"Only rows whose has_insurance_recovery equals this."},{"name":"requires_sales_reporting","in":"query","required":false,"schema":{"description":"Only rows whose requires_sales_reporting equals this.","type":"boolean"},"description":"Only rows whose requires_sales_reporting equals this."},{"name":"sales_report_frequency","in":"query","required":false,"schema":{"description":"Only rows whose sales_report_frequency equals this.","type":"string","enum":["monthly","quarterly","semiannual","annual"]},"description":"Only rows whose sales_report_frequency equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_commercial_lease_terms_row","summary":"Create a commercial lease term","description":"Commercial economics of a lease (one row per commercial or mixed-use lease): structure (gross / modified gross / NNN / absolute NNN / percentage), leased area, pro-rata share, base year or expense stop, deposit, clauses and reporting obligations. Base rent amounts stay on leases / lease_rent_schedules / recurring_charges; increases are in rent_escalations.\n\nInserts one row of commercial lease terms in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Commercial lease terms"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"lease_structure":{"type":"string","enum":["gross","modified_gross","single_net","double_net","nnn","absolute_nnn","percentage"],"description":"gross: landlord pays operating expenses; modified_gross: tenant pays increases over a base year or stop; single/double_net: tenant pays taxes (and insurance); nnn: tenant pays taxes, insurance and CAM; absolute_nnn: tenant also bears structural/capital costs; percentage: base rent plus a percentage "},"space_type":{"anyOf":[{"type":"string","enum":["office","retail","restaurant","medical","industrial","warehouse","flex","lab","land","kiosk","other"],"description":"space type"},{"type":"null"}]},"rentable_sqft":{"anyOf":[{"type":"number","description":"Leased rentable square feet (may differ from the unit's area for partial-floor or multi-suite leases)."},{"type":"null"}]},"usable_sqft":{"anyOf":[{"type":"number","description":"usable sqft"},{"type":"null"}]},"pro_rata_share_pct":{"anyOf":[{"type":"number","description":"Tenant's share of recoverable expenses, 100 = 100%. Usually rentable_sqft / pro_rata_denominator_sqft; copied to cam_pool_participants as the default share."},{"type":"null"}]},"pro_rata_denominator_sqft":{"anyOf":[{"type":"number","description":"Building / center area used as the pro-rata denominator (gross leasable area or rentable area of the building)."},{"type":"null"}]},"base_rent_per_sqft_year_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current base rent quoted in cents per rentable square foot per year (informational; billed rent is in lease_rent_schedules / recurring charges). Kept current by apply_rent_escalation_step: scaled by each base rent step's increase (new / previous monthly rent), rounded to the cent."},{"type":"null"}]},"base_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Calendar/fiscal year whose actual operating expenses form the base for a modified-gross lease; tenant pays its share of increases over that year."},{"type":"null"}]},"expense_stop_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Expense stop as a total annual amount for the building pool: tenant pays its share of expenses above it."},{"type":"null"}]},"expense_stop_per_sqft_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Expense stop quoted per rentable square foot per year, when the lease states it that way."},{"type":"null"}]},"security_deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cash security deposit required by the lease. Letters of credit and bonds are rows in lease_security_instruments; the cash deposit itself is charged and held through receivables (SECURITY_DEPOSITS_HELD)."},"commencement_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"commencement on"},{"type":"null"}]},"rent_commencement_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date base rent starts (after free rent / build-out), which may be later than commencement_on (possession / term start)."},{"type":"null"}]},"free_rent_months":{"type":"number","description":"free rent months"},"holdover_rent_pct":{"anyOf":[{"type":"number","description":"Holdover rent as a percent of the last base rent, 150 = 150%."},{"type":"null"}]},"permitted_use":{"anyOf":[{"type":"string","maxLength":100000,"description":"permitted use"},{"type":"null"}]},"exclusive_use_clause":{"anyOf":[{"type":"string","maxLength":100000,"description":"exclusive use clause"},{"type":"null"}]},"co_tenancy_clause":{"anyOf":[{"type":"string","maxLength":100000,"description":"Text of the co-tenancy clause (rent reduction if anchors close); tracked dates go in lease_critical_dates."},{"type":"null"}]},"radius_restriction_miles":{"anyOf":[{"type":"number","description":"radius restriction miles"},{"type":"null"}]},"operating_hours":{"anyOf":[{"type":"string","maxLength":100000,"description":"operating hours"},{"type":"null"}]},"has_percentage_rent":{"type":"boolean","description":"has percentage rent"},"has_cam_recovery":{"type":"boolean","description":"has cam recovery"},"has_tax_recovery":{"type":"boolean","description":"has tax recovery"},"has_insurance_recovery":{"type":"boolean","description":"has insurance recovery"},"requires_sales_reporting":{"type":"boolean","description":"requires sales reporting"},"sales_report_frequency":{"anyOf":[{"type":"string","enum":["monthly","quarterly","semiannual","annual"],"description":"sales report frequency"},{"type":"null"}]},"sales_report_due_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after each sales period end by which the tenant must submit tenant_sales_reports."},{"type":"null"}]},"cam_reconciliation_due_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after the recovery year end by which the landlord must deliver the reconciliation statement."},{"type":"null"}]},"audit_rights_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after a reconciliation statement during which the tenant may audit the landlord's books."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","lease_id","lease_structure"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/commercial_lease_terms/{id}":{"get":{"operationId":"get_commercial_lease_terms_row","summary":"Get a commercial lease term","description":"Commercial economics of a lease (one row per commercial or mixed-use lease): structure (gross / modified gross / NNN / absolute NNN / percentage), leased area, pro-rata share, base year or expense stop, deposit, clauses and reporting obligations. Base rent amounts stay on leases / lease_rent_schedules / recurring_charges; increases are in rent_escalations.\n\nOne row of commercial lease terms by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Commercial lease terms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_commercial_lease_terms_row","summary":"Update a commercial lease term","description":"Commercial economics of a lease (one row per commercial or mixed-use lease): structure (gross / modified gross / NNN / absolute NNN / percentage), leased area, pro-rata share, base year or expense stop, deposit, clauses and reporting obligations. Base rent amounts stay on leases / lease_rent_schedules / recurring_charges; increases are in rent_escalations.\n\nChanges the given fields of one row of commercial lease terms and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Commercial lease terms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"lease_structure":{"type":"string","enum":["gross","modified_gross","single_net","double_net","nnn","absolute_nnn","percentage"],"description":"gross: landlord pays operating expenses; modified_gross: tenant pays increases over a base year or stop; single/double_net: tenant pays taxes (and insurance); nnn: tenant pays taxes, insurance and CAM; absolute_nnn: tenant also bears structural/capital costs; percentage: base rent plus a percentage "},"space_type":{"anyOf":[{"type":"string","enum":["office","retail","restaurant","medical","industrial","warehouse","flex","lab","land","kiosk","other"],"description":"space type"},{"type":"null"}]},"rentable_sqft":{"anyOf":[{"type":"number","description":"Leased rentable square feet (may differ from the unit's area for partial-floor or multi-suite leases)."},{"type":"null"}]},"usable_sqft":{"anyOf":[{"type":"number","description":"usable sqft"},{"type":"null"}]},"pro_rata_share_pct":{"anyOf":[{"type":"number","description":"Tenant's share of recoverable expenses, 100 = 100%. Usually rentable_sqft / pro_rata_denominator_sqft; copied to cam_pool_participants as the default share."},{"type":"null"}]},"pro_rata_denominator_sqft":{"anyOf":[{"type":"number","description":"Building / center area used as the pro-rata denominator (gross leasable area or rentable area of the building)."},{"type":"null"}]},"base_rent_per_sqft_year_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current base rent quoted in cents per rentable square foot per year (informational; billed rent is in lease_rent_schedules / recurring charges). Kept current by apply_rent_escalation_step: scaled by each base rent step's increase (new / previous monthly rent), rounded to the cent."},{"type":"null"}]},"base_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Calendar/fiscal year whose actual operating expenses form the base for a modified-gross lease; tenant pays its share of increases over that year."},{"type":"null"}]},"expense_stop_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Expense stop as a total annual amount for the building pool: tenant pays its share of expenses above it."},{"type":"null"}]},"expense_stop_per_sqft_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Expense stop quoted per rentable square foot per year, when the lease states it that way."},{"type":"null"}]},"security_deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cash security deposit required by the lease. Letters of credit and bonds are rows in lease_security_instruments; the cash deposit itself is charged and held through receivables (SECURITY_DEPOSITS_HELD)."},"commencement_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"commencement on"},{"type":"null"}]},"rent_commencement_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date base rent starts (after free rent / build-out), which may be later than commencement_on (possession / term start)."},{"type":"null"}]},"free_rent_months":{"type":"number","description":"free rent months"},"holdover_rent_pct":{"anyOf":[{"type":"number","description":"Holdover rent as a percent of the last base rent, 150 = 150%."},{"type":"null"}]},"permitted_use":{"anyOf":[{"type":"string","maxLength":100000,"description":"permitted use"},{"type":"null"}]},"exclusive_use_clause":{"anyOf":[{"type":"string","maxLength":100000,"description":"exclusive use clause"},{"type":"null"}]},"co_tenancy_clause":{"anyOf":[{"type":"string","maxLength":100000,"description":"Text of the co-tenancy clause (rent reduction if anchors close); tracked dates go in lease_critical_dates."},{"type":"null"}]},"radius_restriction_miles":{"anyOf":[{"type":"number","description":"radius restriction miles"},{"type":"null"}]},"operating_hours":{"anyOf":[{"type":"string","maxLength":100000,"description":"operating hours"},{"type":"null"}]},"has_percentage_rent":{"type":"boolean","description":"has percentage rent"},"has_cam_recovery":{"type":"boolean","description":"has cam recovery"},"has_tax_recovery":{"type":"boolean","description":"has tax recovery"},"has_insurance_recovery":{"type":"boolean","description":"has insurance recovery"},"requires_sales_reporting":{"type":"boolean","description":"requires sales reporting"},"sales_report_frequency":{"anyOf":[{"type":"string","enum":["monthly","quarterly","semiannual","annual"],"description":"sales report frequency"},{"type":"null"}]},"sales_report_due_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after each sales period end by which the tenant must submit tenant_sales_reports."},{"type":"null"}]},"cam_reconciliation_due_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after the recovery year end by which the landlord must deliver the reconciliation statement."},{"type":"null"}]},"audit_rights_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after a reconciliation statement during which the tenant may audit the landlord's books."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/commercial_space_details":{"get":{"operationId":"list_commercial_space_details","summary":"List commercial space details","description":"Commercial attributes of a unit used as a suite / space (office, retail, industrial). One row per unit; residential units have none. Rentable vs usable area drives pro-rata shares and per-square-foot rent.\n\nPages through the commercial space details table of the organization, oldest first. Filters: id, property_id, unit_id, space_type, is_divisible, is_combinable, has_separate_hvac, has_separate_utility_meters, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Commercial space details"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"space_type","in":"query","required":false,"schema":{"description":"Only rows whose space_type equals this.","type":"string","enum":["office","retail","restaurant","medical","industrial","warehouse","flex","lab","land","kiosk","other"]},"description":"Only rows whose space_type equals this."},{"name":"is_divisible","in":"query","required":false,"schema":{"description":"Only rows whose is_divisible equals this.","type":"boolean"},"description":"Only rows whose is_divisible equals this."},{"name":"is_combinable","in":"query","required":false,"schema":{"description":"Only rows whose is_combinable equals this.","type":"boolean"},"description":"Only rows whose is_combinable equals this."},{"name":"has_separate_hvac","in":"query","required":false,"schema":{"description":"Only rows whose has_separate_hvac equals this.","type":"boolean"},"description":"Only rows whose has_separate_hvac equals this."},{"name":"has_separate_utility_meters","in":"query","required":false,"schema":{"description":"Only rows whose has_separate_utility_meters equals this.","type":"boolean"},"description":"Only rows whose has_separate_utility_meters equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/commercial_space_details/{id}":{"get":{"operationId":"get_commercial_space_details_row","summary":"Get a commercial space detail","description":"Commercial attributes of a unit used as a suite / space (office, retail, industrial). One row per unit; residential units have none. Rentable vs usable area drives pro-rata shares and per-square-foot rent.\n\nOne row of commercial space details by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Commercial space details"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/communication_endpoints":{"get":{"operationId":"list_communication_endpoints","summary":"List communication endpoints","description":"Phone numbers (SMS/voice/WhatsApp) and email addresses the organization sends from and receives on. Inbound messages, calls and emails are routed to an org (and optionally a property) by matching the address here.\n\nPages through the communication endpoints table of the organization, oldest first. Filters: id, channel, provider, property_id, is_default, is_ai_answering_enabled, created_by, is_leasing_line.\n\nNeeds one of: integrations.write.","tags":["Communication endpoints"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["sms","voice","email","whatsapp"]},"description":"Only rows whose channel equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["internal","twilio","resend","sendgrid","postmark","mailgun","ses","expo","meta_whatsapp","vonage","other"]},"description":"Only rows whose provider equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"is_default","in":"query","required":false,"schema":{"description":"Only rows whose is_default equals this.","type":"boolean"},"description":"Only rows whose is_default equals this."},{"name":"is_ai_answering_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_answering_enabled equals this.","type":"boolean"},"description":"Only rows whose is_ai_answering_enabled equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"is_leasing_line","in":"query","required":false,"schema":{"description":"Only rows whose is_leasing_line equals this.","type":"boolean"},"description":"Only rows whose is_leasing_line equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/communication_endpoints/{id}":{"get":{"operationId":"get_communication_endpoints_row","summary":"Get a communication endpoint","description":"Phone numbers (SMS/voice/WhatsApp) and email addresses the organization sends from and receives on. Inbound messages, calls and emails are routed to an org (and optionally a property) by matching the address here.\n\nOne row of communication endpoints by id, with every column the API shows.\n\nNeeds one of: integrations.write.","tags":["Communication endpoints"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/communication_settings":{"get":{"operationId":"list_communication_settings","summary":"List communication settings","description":"One row per organization: AI auto-reply policy, business hours, escalation rules and sender identity for outbound email/SMS.\n\nPages through the communication settings table of the organization, oldest first. Filters: id, default_ai_reply_mode, ai_escalate_on_negative_sentiment.\n\nNeeds one of: communications.read.","tags":["Communication settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"default_ai_reply_mode","in":"query","required":false,"schema":{"description":"Only rows whose default_ai_reply_mode equals this.","type":"string","enum":["off","suggest","auto_send"]},"description":"Only rows whose default_ai_reply_mode equals this."},{"name":"ai_escalate_on_negative_sentiment","in":"query","required":false,"schema":{"description":"Only rows whose ai_escalate_on_negative_sentiment equals this.","type":"boolean"},"description":"Only rows whose ai_escalate_on_negative_sentiment equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/communication_settings/{id}":{"get":{"operationId":"get_communication_settings_row","summary":"Get a communication setting","description":"One row per organization: AI auto-reply policy, business hours, escalation rules and sender identity for outbound email/SMS.\n\nOne row of communication settings by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Communication settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]},"patch":{"operationId":"update_communication_settings_row","summary":"Update a communication setting","description":"One row per organization: AI auto-reply policy, business hours, escalation rules and sender identity for outbound email/SMS.\n\nChanges the given fields of one row of communication settings and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Communication settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"default_ai_reply_mode":{"type":"string","enum":["off","suggest","auto_send"],"description":"ai_reply_mode given to new conversations: off or suggest (auto_send refused since 00056)."},"business_hours_start":{"type":"string","maxLength":100000,"description":"business hours start"},"business_hours_end":{"type":"string","maxLength":100000,"description":"business hours end"},"business_days":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"ISO weekdays (1 = Monday ... 7 = Sunday) considered business days, in organizations.timezone."},"after_hours_auto_reply":{"anyOf":[{"type":"string","maxLength":100000,"description":"after hours auto reply"},{"type":"null"}]},"emergency_keywords":{"type":"array","items":{"type":"string","maxLength":100000},"description":"Keywords that mark an inbound message urgency = emergency and page on-call staff (memberships.is_on_call)."},"first_response_target_minutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Service-level target for the first staff/AI response to an inbound message."},"default_from_email":{"anyOf":[{"type":"string","maxLength":100000,"description":"default from email"},{"type":"null"}]},"default_from_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"default from name"},{"type":"null"}]},"reply_to_email":{"anyOf":[{"type":"string","maxLength":100000,"description":"reply to email"},{"type":"null"}]},"sms_footer":{"anyOf":[{"type":"string","maxLength":100000,"description":"sms footer"},{"type":"null"}]},"default_quiet_hours_start":{"anyOf":[{"type":"string","maxLength":100000,"description":"Default local time after which non-urgent push/SMS notifications are deferred, unless a recipient sets their own quiet hours."},{"type":"null"}]},"default_quiet_hours_end":{"anyOf":[{"type":"string","maxLength":100000,"description":"default quiet hours end"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/communication_suppressions":{"get":{"operationId":"list_communication_suppressions","summary":"List communication suppressions","description":"Do-not-contact list per channel and address (SMS STOP keyword / TCPA opt-out, email hard bounces and spam complaints). A row with lifted_at null blocks all non-transactional sends to that address; senders must check it.\n\nPages through the communication suppressions table of the organization, oldest first. Filters: id, channel, contact_id, reason, lifted_by.\n\nNeeds one of: communications.read, communications.write.","tags":["Communication suppressions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["sms","voice","email","whatsapp"]},"description":"Only rows whose channel equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"reason","in":"query","required":false,"schema":{"description":"Only rows whose reason equals this.","type":"string","enum":["stop_keyword","user_request","hard_bounce","spam_complaint","invalid_address","carrier_block","admin"]},"description":"Only rows whose reason equals this."},{"name":"lifted_by","in":"query","required":false,"schema":{"description":"Only rows whose lifted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lifted_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read","communications.write"]}},"/v1/communication_suppressions/{id}":{"get":{"operationId":"get_communication_suppressions_row","summary":"Get a communication suppression","description":"Do-not-contact list per channel and address (SMS STOP keyword / TCPA opt-out, email hard bounces and spam complaints). A row with lifted_at null blocks all non-transactional sends to that address; senders must check it.\n\nOne row of communication suppressions by id, with every column the API shows.\n\nNeeds one of: communications.read, communications.write.","tags":["Communication suppressions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read","communications.write"]}},"/v1/compliance_audit_findings":{"get":{"operationId":"list_compliance_audit_findings","summary":"List compliance audit findings","description":"Problems found when auditing a compliance document (by AI or staff): expired, wrong insured, coverage below minimum, missing additional insured, missing signature, illegible... Open findings (resolved_at null) keep an item in pending_review.\n\nPages through the compliance audit findings table of the organization, oldest first. Filters: id, compliance_item_id, document_id, insurance_policy_id, finding_type, severity, resolved_by, lease_id, jurisdiction_rule_id, ai_run_id.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Compliance audit findings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"compliance_item_id","in":"query","required":false,"schema":{"description":"Only rows whose compliance_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose compliance_item_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"insurance_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose insurance_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose insurance_policy_id equals this."},{"name":"finding_type","in":"query","required":false,"schema":{"description":"Only rows whose finding_type equals this.","type":"string","enum":["expired","expires_soon","wrong_party","wrong_property","name_mismatch","coverage_below_minimum","missing_additional_insured","missing_signature","missing_page","illegible","wrong_document_type","date_mismatch","policy_number_mismatch","other","amount_mismatch","missing_disclosure","rule_violation","prohibited_clause"]},"description":"Only rows whose finding_type equals this."},{"name":"severity","in":"query","required":false,"schema":{"description":"Only rows whose severity equals this.","type":"string","enum":["info","warning","critical"]},"description":"Only rows whose severity equals this."},{"name":"resolved_by","in":"query","required":false,"schema":{"description":"Only rows whose resolved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resolved_by equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"jurisdiction_rule_id","in":"query","required":false,"schema":{"description":"Only rows whose jurisdiction_rule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose jurisdiction_rule_id equals this."},{"name":"ai_run_id","in":"query","required":false,"schema":{"description":"Only rows whose ai_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ai_run_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]}},"/v1/compliance_audit_findings/{id}":{"get":{"operationId":"get_compliance_audit_findings_row","summary":"Get a compliance audit finding","description":"Problems found when auditing a compliance document (by AI or staff): expired, wrong insured, coverage below minimum, missing additional insured, missing signature, illegible... Open findings (resolved_at null) keep an item in pending_review.\n\nOne row of compliance audit findings by id, with every column the API shows.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Compliance audit findings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]}},"/v1/compliance_reminders":{"get":{"operationId":"list_compliance_reminders","summary":"List compliance reminders","description":"Log of compliance deadline reminders sent to staff (documents.compliance_deadlines job): one row per deadline (a compliance item, an insurance policy, a vendor COI, or a lease's renewal/non-renewal notice) and reminder window, so each deadline is reminded once at 60, 30 and 7 days and once when overdue. Each reminder opens or escalates a task for the recipient and is summarized in an AI digest notification.\n\nPages through the compliance reminders table of the organization, oldest first. Filters: id, compliance_item_id, insurance_policy_id, vendor_insurance_policy_id, notice_lease_id, deadline_on, reminder_window, property_id, recipient_user_id, task_id, digest_notification_id.\n\nNeeds one of: compliance.read.","tags":["Compliance reminders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"compliance_item_id","in":"query","required":false,"schema":{"description":"Only rows whose compliance_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose compliance_item_id equals this."},{"name":"insurance_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose insurance_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose insurance_policy_id equals this."},{"name":"vendor_insurance_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_insurance_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_insurance_policy_id equals this."},{"name":"notice_lease_id","in":"query","required":false,"schema":{"description":"Only rows whose notice_lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose notice_lease_id equals this."},{"name":"deadline_on","in":"query","required":false,"schema":{"description":"Only rows whose deadline_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose deadline_on equals this."},{"name":"reminder_window","in":"query","required":false,"schema":{"description":"Only rows whose reminder_window equals this.","type":"string","enum":["within_60_days","within_30_days","within_7_days","overdue"]},"description":"Only rows whose reminder_window equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"recipient_user_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_user_id equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"digest_notification_id","in":"query","required":false,"schema":{"description":"Only rows whose digest_notification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose digest_notification_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read"]}},"/v1/compliance_reminders/{id}":{"get":{"operationId":"get_compliance_reminders_row","summary":"Get a compliance reminder","description":"Log of compliance deadline reminders sent to staff (documents.compliance_deadlines job): one row per deadline (a compliance item, an insurance policy, a vendor COI, or a lease's renewal/non-renewal notice) and reminder window, so each deadline is reminded once at 60, 30 and 7 days and once when overdue. Each reminder opens or escalates a task for the recipient and is summarized in an AI digest notification.\n\nOne row of compliance reminders by id, with every column the API shows.\n\nNeeds one of: compliance.read.","tags":["Compliance reminders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read"]}},"/v1/compliance_requirements":{"get":{"operationId":"list_compliance_requirements","summary":"List compliance requirements","description":"What must be on file, for whom, and how often: e.g. annual smoke/CO detector inspection for every property in a city, rental registration, lead paint disclosure for pre-1978 leases, renters insurance with $100k liability on every lease, vendor general liability COI with additional insured.\n\nPages through the compliance requirements table of the organization, oldest first. Filters: id, item_type, applies_to, jurisdiction_id, jurisdiction_rule_id, property_id, vendor_trade_id, requires_document, required_document_category, requires_additional_insured, responsible_user_id, is_active, created_by, inspection_template_id, category.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Compliance requirements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"item_type","in":"query","required":false,"schema":{"description":"Only rows whose item_type equals this.","type":"string","enum":["certificate","license","insurance","inspection","registration","disclosure","permit","tax_form","other"]},"description":"Only rows whose item_type equals this."},{"name":"applies_to","in":"query","required":false,"schema":{"description":"Only rows whose applies_to equals this.","type":"string","enum":["org","property","unit","vendor","lease"]},"description":"Only rows whose applies_to equals this."},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"description":"Only rows whose jurisdiction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose jurisdiction_id equals this."},{"name":"jurisdiction_rule_id","in":"query","required":false,"schema":{"description":"Only rows whose jurisdiction_rule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose jurisdiction_rule_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"vendor_trade_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_trade_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_trade_id equals this."},{"name":"requires_document","in":"query","required":false,"schema":{"description":"Only rows whose requires_document equals this.","type":"boolean"},"description":"Only rows whose requires_document equals this."},{"name":"required_document_category","in":"query","required":false,"schema":{"description":"Only rows whose required_document_category equals this.","type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"]},"description":"Only rows whose required_document_category equals this."},{"name":"requires_additional_insured","in":"query","required":false,"schema":{"description":"Only rows whose requires_additional_insured equals this.","type":"boolean"},"description":"Only rows whose requires_additional_insured equals this."},{"name":"responsible_user_id","in":"query","required":false,"schema":{"description":"Only rows whose responsible_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose responsible_user_id equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"inspection_template_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_template_id equals this."},{"name":"category","in":"query","required":false,"schema":{"description":"Only rows whose category equals this.","type":"string","enum":["agency","building"]},"description":"Only rows whose category equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"post":{"operationId":"create_compliance_requirements_row","summary":"Create a compliance requirement","description":"What must be on file, for whom, and how often: e.g. annual smoke/CO detector inspection for every property in a city, rental registration, lead paint disclosure for pre-1978 leases, renters insurance with $100k liability on every lease, vendor general liability COI with additional insured.\n\nInserts one row of compliance requirements in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write.","tags":["Compliance requirements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"item_type":{"type":"string","enum":["certificate","license","insurance","inspection","registration","disclosure","permit","tax_form","other"],"description":"item type"},"applies_to":{"type":"string","enum":["org","property","unit","vendor","lease"],"description":"Kind of record each item is for: org (one item for the company, e.g. broker license), property, unit, vendor, lease."},"jurisdiction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only records whose property is in this jurisdiction (or a descendant); null = everywhere."},{"type":"null"}]},"jurisdiction_rule_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Rule that creates this obligation (e.g. smoke_detector_inspection), for traceability."},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only this property (property/unit/lease scope); null = all properties matching the other filters."},{"type":"null"}]},"applies_to_property_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["single_family","multi_family","apartment_complex","condo","townhome","duplex","mobile_home","manufactured_home_community","student","senior","mixed_use","other","office","retail","shopping_center","industrial","flex","medical_office","self_storage","commercial_other","association"]},"description":"applies to property types"},{"type":"null"}]},"applies_built_before_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Only properties built before this year (e.g. 1978 lead paint)."},{"type":"null"}]},"vendor_trade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only vendors in this trade (e.g. electricians need a license)."},{"type":"null"}]},"cadence_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Recurs every N months (inspections, renewals); null = one-time or follows the document's own expiry."},{"type":"null"}]},"lead_time_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items become expiring_soon this many days before expires_on/due_on."},"requires_document":{"type":"boolean","description":"requires document"},"required_document_category":{"anyOf":[{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"required document category"},{"type":"null"}]},"min_coverage_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Insurance items: minimum liability coverage; lower coverage is an audit finding."},{"type":"null"}]},"requires_additional_insured":{"type":"boolean","description":"requires additional insured"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"responsible user id"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"due_month":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With due_day: a fixed calendar deadline each year (HPD registration Sept 1). Items are due on the next such date, and after completion expire on the following one."},{"type":"null"}]},"due_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of due_month (clamped to the month's last day)."},{"type":"null"}]},"applies_min_stories":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applies only to properties with at least this many stories (FISP: 7)."},{"type":"null"}]},"applies_min_building_sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applies only to properties of at least this building area (LL84: 25,000 sq ft)."},{"type":"null"}]},"applies_min_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applies only to properties with at least this many units (multiple dwelling rules: 3)."},{"type":"null"}]},"inspection_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The checklist staff fill in to complete each item of this requirement: an inspection from this template on the unit, or a common-area inspection on the building. Completing it completes the item."},{"type":"null"}]},"category":{"anyOf":[{"type":"string","enum":["agency","building"],"description":"Agency or building compliance; null = not classified. Lists filter by it."},{"type":"null"}]},"agency":{"anyOf":[{"type":"string","maxLength":100000,"description":"Regulating agency short name (HUD, HDC, HPD, HCR, DOB, FDNY, DEP); lists filter by it."},{"type":"null"}]}},"required":["name","item_type","applies_to"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/compliance_requirements/{id}":{"get":{"operationId":"get_compliance_requirements_row","summary":"Get a compliance requirement","description":"What must be on file, for whom, and how often: e.g. annual smoke/CO detector inspection for every property in a city, rental registration, lead paint disclosure for pre-1978 leases, renters insurance with $100k liability on every lease, vendor general liability COI with additional insured.\n\nOne row of compliance requirements by id, with every column the API shows.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Compliance requirements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"patch":{"operationId":"update_compliance_requirements_row","summary":"Update a compliance requirement","description":"What must be on file, for whom, and how often: e.g. annual smoke/CO detector inspection for every property in a city, rental registration, lead paint disclosure for pre-1978 leases, renters insurance with $100k liability on every lease, vendor general liability COI with additional insured.\n\nChanges the given fields of one row of compliance requirements and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write.","tags":["Compliance requirements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"item_type":{"type":"string","enum":["certificate","license","insurance","inspection","registration","disclosure","permit","tax_form","other"],"description":"item type"},"applies_to":{"type":"string","enum":["org","property","unit","vendor","lease"],"description":"Kind of record each item is for: org (one item for the company, e.g. broker license), property, unit, vendor, lease."},"jurisdiction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only records whose property is in this jurisdiction (or a descendant); null = everywhere."},{"type":"null"}]},"jurisdiction_rule_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Rule that creates this obligation (e.g. smoke_detector_inspection), for traceability."},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only this property (property/unit/lease scope); null = all properties matching the other filters."},{"type":"null"}]},"applies_to_property_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["single_family","multi_family","apartment_complex","condo","townhome","duplex","mobile_home","manufactured_home_community","student","senior","mixed_use","other","office","retail","shopping_center","industrial","flex","medical_office","self_storage","commercial_other","association"]},"description":"applies to property types"},{"type":"null"}]},"applies_built_before_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Only properties built before this year (e.g. 1978 lead paint)."},{"type":"null"}]},"vendor_trade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only vendors in this trade (e.g. electricians need a license)."},{"type":"null"}]},"cadence_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Recurs every N months (inspections, renewals); null = one-time or follows the document's own expiry."},{"type":"null"}]},"lead_time_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Items become expiring_soon this many days before expires_on/due_on."},"requires_document":{"type":"boolean","description":"requires document"},"required_document_category":{"anyOf":[{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"required document category"},{"type":"null"}]},"min_coverage_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Insurance items: minimum liability coverage; lower coverage is an audit finding."},{"type":"null"}]},"requires_additional_insured":{"type":"boolean","description":"requires additional insured"},"responsible_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"responsible user id"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"due_month":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"With due_day: a fixed calendar deadline each year (HPD registration Sept 1). Items are due on the next such date, and after completion expire on the following one."},{"type":"null"}]},"due_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of due_month (clamped to the month's last day)."},{"type":"null"}]},"applies_min_stories":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applies only to properties with at least this many stories (FISP: 7)."},{"type":"null"}]},"applies_min_building_sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applies only to properties of at least this building area (LL84: 25,000 sq ft)."},{"type":"null"}]},"applies_min_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applies only to properties with at least this many units (multiple dwelling rules: 3)."},{"type":"null"}]},"inspection_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The checklist staff fill in to complete each item of this requirement: an inspection from this template on the unit, or a common-area inspection on the building. Completing it completes the item."},{"type":"null"}]},"category":{"anyOf":[{"type":"string","enum":["agency","building"],"description":"Agency or building compliance; null = not classified. Lists filter by it."},{"type":"null"}]},"agency":{"anyOf":[{"type":"string","maxLength":100000,"description":"Regulating agency short name (HUD, HDC, HPD, HCR, DOB, FDNY, DEP); lists filter by it."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/contact_addresses":{"get":{"operationId":"list_contact_addresses","summary":"List contact addresses","description":"Which addresses a contact uses and for what (mailing, forwarding after move-out, previous residences). Dates are optional; ends_on is the last day the address applied (inclusive).\n\nPages through the contact addresses table of the organization, oldest first. Filters: id, contact_id, address_id, address_type, is_primary, effective_on, ends_on.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact addresses"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"address_id","in":"query","required":false,"schema":{"description":"Only rows whose address_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose address_id equals this."},{"name":"address_type","in":"query","required":false,"schema":{"description":"Only rows whose address_type equals this.","type":"string","enum":["mailing","physical","billing","forwarding","previous","tax","other"]},"description":"Only rows whose address_type equals this."},{"name":"is_primary","in":"query","required":false,"schema":{"description":"Only rows whose is_primary equals this.","type":"boolean"},"description":"Only rows whose is_primary equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_contact_addresses_row","summary":"Create a contact address","description":"Which addresses a contact uses and for what (mailing, forwarding after move-out, previous residences). Dates are optional; ends_on is the last day the address applied (inclusive).\n\nInserts one row of contact addresses in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Contact addresses"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"address_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"address id"},"address_type":{"type":"string","enum":["mailing","physical","billing","forwarding","previous","tax","other"],"description":"address type"},"is_primary":{"type":"boolean","description":"Primary mailing address used for notices and owner statements. At most one per contact."},"effective_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},{"type":"null"}]},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":["contact_id","address_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_addresses/{id}":{"get":{"operationId":"get_contact_addresses_row","summary":"Get a contact address","description":"Which addresses a contact uses and for what (mailing, forwarding after move-out, previous residences). Dates are optional; ends_on is the last day the address applied (inclusive).\n\nOne row of contact addresses by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact addresses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_contact_addresses_row","summary":"Update a contact address","description":"Which addresses a contact uses and for what (mailing, forwarding after move-out, previous residences). Dates are optional; ends_on is the last day the address applied (inclusive).\n\nChanges the given fields of one row of contact addresses and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Contact addresses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"address_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"address id"},"address_type":{"type":"string","enum":["mailing","physical","billing","forwarding","previous","tax","other"],"description":"address type"},"is_primary":{"type":"boolean","description":"Primary mailing address used for notices and owner statements. At most one per contact."},"effective_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},{"type":"null"}]},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]},"delete":{"operationId":"delete_contact_addresses_row","summary":"Delete a contact address","description":"Which addresses a contact uses and for what (mailing, forwarding after move-out, previous residences). Dates are optional; ends_on is the last day the address applied (inclusive).\n\nDeletes one row of contact addresses. The database refuses it where other records still need the row.\n\nNeeds one of: contacts.write.","tags":["Contact addresses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_change_requests":{"get":{"operationId":"list_contact_change_requests","summary":"List contact change requests","description":"A resident's request, from the tenant portal, to change their own contact details: add or remove an email or phone; add, update or remove a vehicle, pet or emergency contact. Staff with contacts.write approve (decide_contact_change_request applies it to contact_emails / contact_phones / vehicles / pets / emergency_contacts) or reject it. Never deleted: the request, what was proposed and the decision stay as history. Submit with submit_contact_change_request, withdraw with cancel_contact_change_request.\n\nPages through the contact change requests table of the organization, oldest first. Filters: id, contact_id, subject, operation, contact_email_id, contact_phone_id, vehicle_id, pet_id, emergency_contact_id, status, submitted_by, decided_by.\n\nNeeds one of: contacts.read.","tags":["Contact change requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"subject","in":"query","required":false,"schema":{"description":"Only rows whose subject equals this.","type":"string","enum":["email","phone","vehicle","pet","emergency_contact"]},"description":"Only rows whose subject equals this."},{"name":"operation","in":"query","required":false,"schema":{"description":"Only rows whose operation equals this.","type":"string","enum":["add","update","remove"]},"description":"Only rows whose operation equals this."},{"name":"contact_email_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_email_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_email_id equals this."},{"name":"contact_phone_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_phone_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_phone_id equals this."},{"name":"vehicle_id","in":"query","required":false,"schema":{"description":"Only rows whose vehicle_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vehicle_id equals this."},{"name":"pet_id","in":"query","required":false,"schema":{"description":"Only rows whose pet_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose pet_id equals this."},{"name":"emergency_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose emergency_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose emergency_contact_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","approved","rejected","canceled"]},"description":"Only rows whose status equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read"]}},"/v1/contact_change_requests/{id}":{"get":{"operationId":"get_contact_change_requests_row","summary":"Get a contact change request","description":"A resident's request, from the tenant portal, to change their own contact details: add or remove an email or phone; add, update or remove a vehicle, pet or emergency contact. Staff with contacts.write approve (decide_contact_change_request applies it to contact_emails / contact_phones / vehicles / pets / emergency_contacts) or reject it. Never deleted: the request, what was proposed and the decision stay as history. Submit with submit_contact_change_request, withdraw with cancel_contact_change_request.\n\nOne row of contact change requests by id, with every column the API shows.\n\nNeeds one of: contacts.read.","tags":["Contact change requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read"]}},"/v1/contact_emails":{"get":{"operationId":"list_contact_emails","summary":"List contact emails","description":"Email addresses of a contact. Exactly one may be primary; it is mirrored to contacts.primary_email.\n\nPages through the contact emails table of the organization, oldest first. Filters: id, contact_id, email_type, is_primary, is_verified.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact emails"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"email_type","in":"query","required":false,"schema":{"description":"Only rows whose email_type equals this.","type":"string","enum":["personal","work","billing","other"]},"description":"Only rows whose email_type equals this."},{"name":"is_primary","in":"query","required":false,"schema":{"description":"Only rows whose is_primary equals this.","type":"boolean"},"description":"Only rows whose is_primary equals this."},{"name":"is_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_verified equals this.","type":"boolean"},"description":"Only rows whose is_verified equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_contact_emails_row","summary":"Create a contact email","description":"Email addresses of a contact. Exactly one may be primary; it is mirrored to contacts.primary_email.\n\nInserts one row of contact emails in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Contact emails"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"email":{"type":"string","maxLength":100000,"description":"email"},"email_type":{"type":"string","enum":["personal","work","billing","other"],"description":"email type"},"is_primary":{"type":"boolean","description":"is primary"},"bounced_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Last hard bounce; senders should skip addresses that bounced."},{"type":"null"}]}},"required":["contact_id","email"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_emails/{id}":{"get":{"operationId":"get_contact_emails_row","summary":"Get a contact email","description":"Email addresses of a contact. Exactly one may be primary; it is mirrored to contacts.primary_email.\n\nOne row of contact emails by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact emails"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_contact_emails_row","summary":"Update a contact email","description":"Email addresses of a contact. Exactly one may be primary; it is mirrored to contacts.primary_email.\n\nChanges the given fields of one row of contact emails and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Contact emails"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"email":{"type":"string","maxLength":100000,"description":"email"},"email_type":{"type":"string","enum":["personal","work","billing","other"],"description":"email type"},"is_primary":{"type":"boolean","description":"is primary"},"bounced_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Last hard bounce; senders should skip addresses that bounced."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_notes":{"get":{"operationId":"list_contact_notes","summary":"List contact notes","description":"Internal staff notes on a contact. Never visible in portals. For a dated log of calls/emails/visits use interactions.\n\nPages through the contact notes table of the organization, oldest first. Filters: id, contact_id, is_pinned, created_by.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact notes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"is_pinned","in":"query","required":false,"schema":{"description":"Only rows whose is_pinned equals this.","type":"boolean"},"description":"Only rows whose is_pinned equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_contact_notes_row","summary":"Create a contact note","description":"Internal staff notes on a contact. Never visible in portals. For a dated log of calls/emails/visits use interactions.\n\nInserts one row of contact notes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Contact notes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"body":{"type":"string","maxLength":100000,"description":"body"},"is_pinned":{"type":"boolean","description":"Shown at the top of the contact profile (e.g. \"speak with daughter, hard of hearing\")."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["contact_id","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_notes/{id}":{"get":{"operationId":"get_contact_notes_row","summary":"Get a contact note","description":"Internal staff notes on a contact. Never visible in portals. For a dated log of calls/emails/visits use interactions.\n\nOne row of contact notes by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_contact_notes_row","summary":"Update a contact note","description":"Internal staff notes on a contact. Never visible in portals. For a dated log of calls/emails/visits use interactions.\n\nChanges the given fields of one row of contact notes and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Contact notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"body":{"type":"string","maxLength":100000,"description":"body"},"is_pinned":{"type":"boolean","description":"Shown at the top of the contact profile (e.g. \"speak with daughter, hard of hearing\")."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_phones":{"get":{"operationId":"list_contact_phones","summary":"List contact phones","description":"Phone numbers of a contact. Exactly one may be primary; it is mirrored to contacts.primary_phone.\n\nPages through the contact phones table of the organization, oldest first. Filters: id, contact_id, phone_type, is_primary, can_receive_sms.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact phones"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"phone_type","in":"query","required":false,"schema":{"description":"Only rows whose phone_type equals this.","type":"string","enum":["mobile","home","work","fax","other"]},"description":"Only rows whose phone_type equals this."},{"name":"is_primary","in":"query","required":false,"schema":{"description":"Only rows whose is_primary equals this.","type":"boolean"},"description":"Only rows whose is_primary equals this."},{"name":"can_receive_sms","in":"query","required":false,"schema":{"description":"Only rows whose can_receive_sms equals this.","type":"boolean"},"description":"Only rows whose can_receive_sms equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_contact_phones_row","summary":"Create a contact phone","description":"Phone numbers of a contact. Exactly one may be primary; it is mirrored to contacts.primary_phone.\n\nInserts one row of contact phones in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Contact phones"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"phone":{"type":"string","maxLength":100000,"description":"E.164 format, e.g. +15551234567. Use private.normalize_phone() to convert typed input."},"extension":{"anyOf":[{"type":"string","maxLength":100000,"description":"extension"},{"type":"null"}]},"phone_type":{"type":"string","enum":["mobile","home","work","fax","other"],"description":"phone type"},"is_primary":{"type":"boolean","description":"is primary"},"can_receive_sms":{"type":"boolean","description":"Number is SMS-capable (mobile). SMS consent itself is contacts.sms_opted_in_at / sms_opted_out_at."}},"required":["contact_id","phone"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_phones/{id}":{"get":{"operationId":"get_contact_phones_row","summary":"Get a contact phone","description":"Phone numbers of a contact. Exactly one may be primary; it is mirrored to contacts.primary_phone.\n\nOne row of contact phones by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact phones"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_contact_phones_row","summary":"Update a contact phone","description":"Phone numbers of a contact. Exactly one may be primary; it is mirrored to contacts.primary_phone.\n\nChanges the given fields of one row of contact phones and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Contact phones"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"phone":{"type":"string","maxLength":100000,"description":"E.164 format, e.g. +15551234567. Use private.normalize_phone() to convert typed input."},"extension":{"anyOf":[{"type":"string","maxLength":100000,"description":"extension"},{"type":"null"}]},"phone_type":{"type":"string","enum":["mobile","home","work","fax","other"],"description":"phone type"},"is_primary":{"type":"boolean","description":"is primary"},"can_receive_sms":{"type":"boolean","description":"Number is SMS-capable (mobile). SMS consent itself is contacts.sms_opted_in_at / sms_opted_out_at."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/contact_relationships":{"get":{"operationId":"list_contact_relationships","summary":"List contact relationships","description":"Directed relationship between two contacts: related_contact_id is the <relationship_type> of contact_id (e.g. related = spouse of contact; related = employer of contact; related = authorized_agent of an owner).\n\nPages through the contact relationships table of the organization, oldest first. Filters: id, contact_id, related_contact_id, relationship_type, created_by.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact relationships"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"related_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose related_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose related_contact_id equals this."},{"name":"relationship_type","in":"query","required":false,"schema":{"description":"Only rows whose relationship_type equals this.","type":"string","enum":["spouse","domestic_partner","parent","child","sibling","relative","roommate","employer","employee","business_partner","authorized_agent","attorney","caseworker","guardian","other"]},"description":"Only rows whose relationship_type equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]}},"/v1/contact_relationships/{id}":{"get":{"operationId":"get_contact_relationships_row","summary":"Get a contact relationship","description":"Directed relationship between two contacts: related_contact_id is the <relationship_type> of contact_id (e.g. related = spouse of contact; related = employer of contact; related = authorized_agent of an owner).\n\nOne row of contact relationships by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Contact relationships"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]}},"/v1/contact_tags":{"get":{"operationId":"list_contact_tags","summary":"List contact tags","description":"Organization-defined labels for contacts (e.g. VIP, Section 8, Spanish speaker, Do not rent). Lookup table; attach with contact_tag_links.\n\nPages through the contact tags table of the organization, oldest first. Filters: id.\n\nNeeds one of: contacts.write, settings.write.","tags":["Contact tags"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","settings.write"]}},"/v1/contact_tags/{id}":{"get":{"operationId":"get_contact_tags_row","summary":"Get a contact tag","description":"Organization-defined labels for contacts (e.g. VIP, Section 8, Spanish speaker, Do not rent). Lookup table; attach with contact_tag_links.\n\nOne row of contact tags by id, with every column the API shows.\n\nNeeds one of: contacts.write, settings.write.","tags":["Contact tags"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","settings.write"]}},"/v1/conversation_participants":{"get":{"operationId":"list_conversation_participants","summary":"List conversation participants","description":"Members of a conversation: exactly one of a staff user (user_id, role staff) or a contact (tenant, owner, vendor, applicant, prospect). Portal users read and post only in conversations where one of their contacts participates.\n\nPages through the conversation participants table of the organization, oldest first. Filters: id, conversation_id, user_id, contact_id, role, is_muted, preferred_channel, last_read_message_id, added_by.\n\nNeeds one of: communications.write.","tags":["Conversation participants"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"role","in":"query","required":false,"schema":{"description":"Only rows whose role equals this.","type":"string","enum":["staff","tenant","owner","vendor","applicant","prospect","other"]},"description":"Only rows whose role equals this."},{"name":"is_muted","in":"query","required":false,"schema":{"description":"Only rows whose is_muted equals this.","type":"boolean"},"description":"Only rows whose is_muted equals this."},{"name":"preferred_channel","in":"query","required":false,"schema":{"description":"Only rows whose preferred_channel equals this.","type":"string","enum":["in_app","email","sms","voice","whatsapp"]},"description":"Only rows whose preferred_channel equals this."},{"name":"last_read_message_id","in":"query","required":false,"schema":{"description":"Only rows whose last_read_message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose last_read_message_id equals this."},{"name":"added_by","in":"query","required":false,"schema":{"description":"Only rows whose added_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose added_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/conversation_participants/{id}":{"get":{"operationId":"get_conversation_participants_row","summary":"Get a conversation participant","description":"Members of a conversation: exactly one of a staff user (user_id, role staff) or a contact (tenant, owner, vendor, applicant, prospect). Portal users read and post only in conversations where one of their contacts participates.\n\nOne row of conversation participants by id, with every column the API shows.\n\nNeeds one of: communications.write.","tags":["Conversation participants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/conversations":{"get":{"operationId":"list_conversations","summary":"List conversations","description":"A message thread (the unified inbox). Can be about at most one subject (property, unit, lease, work order, service request, application, lead, owner or vendor) via explicit nullable FKs; participants in conversation_participants; messages in any channel (in-app, email, SMS, voice, WhatsApp) land in the same thread.\n\nPages through the conversations table of the organization, oldest first. Filters: id, kind, status, property_id, unit_id, lease_id, work_order_id, service_request_id, rental_application_id, lead_id, owner_id, vendor_id, scope_property_id, assigned_user_id, ai_reply_mode, primary_channel, priority, awaiting_response, closed_by, created_by, snooze_until_activity, snoozed_by, topic, urgency, labeled_by.\n\nNeeds one of: communications.read.","tags":["Conversations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["direct","group","support"]},"description":"Only rows whose kind equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","snoozed","closed"]},"description":"Only rows whose status equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"lead_id","in":"query","required":false,"schema":{"description":"Only rows whose lead_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lead_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"scope_property_id","in":"query","required":false,"schema":{"description":"Only rows whose scope_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose scope_property_id equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"ai_reply_mode","in":"query","required":false,"schema":{"description":"Only rows whose ai_reply_mode equals this.","type":"string","enum":["off","suggest","auto_send"]},"description":"Only rows whose ai_reply_mode equals this."},{"name":"primary_channel","in":"query","required":false,"schema":{"description":"Only rows whose primary_channel equals this.","type":"string","enum":["in_app","email","sms","voice","whatsapp"]},"description":"Only rows whose primary_channel equals this."},{"name":"priority","in":"query","required":false,"schema":{"description":"Only rows whose priority equals this.","type":"string","enum":["low","normal","high","urgent"]},"description":"Only rows whose priority equals this."},{"name":"awaiting_response","in":"query","required":false,"schema":{"description":"Only rows whose awaiting_response equals this.","type":"boolean"},"description":"Only rows whose awaiting_response equals this."},{"name":"closed_by","in":"query","required":false,"schema":{"description":"Only rows whose closed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose closed_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"snooze_until_activity","in":"query","required":false,"schema":{"description":"Only rows whose snooze_until_activity equals this.","type":"boolean"},"description":"Only rows whose snooze_until_activity equals this."},{"name":"snoozed_by","in":"query","required":false,"schema":{"description":"Only rows whose snoozed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose snoozed_by equals this."},{"name":"topic","in":"query","required":false,"schema":{"description":"Only rows whose topic equals this.","type":"string","enum":["maintenance","payment","lease","move","parking_amenities","noise_neighbor","documents","general","spam"]},"description":"Only rows whose topic equals this."},{"name":"urgency","in":"query","required":false,"schema":{"description":"Only rows whose urgency equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose urgency equals this."},{"name":"labeled_by","in":"query","required":false,"schema":{"description":"Only rows whose labeled_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose labeled_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/conversations/{id}":{"get":{"operationId":"get_conversations_row","summary":"Get a conversation","description":"A message thread (the unified inbox). Can be about at most one subject (property, unit, lease, work order, service request, application, lead, owner or vendor) via explicit nullable FKs; participants in conversation_participants; messages in any channel (in-app, email, SMS, voice, WhatsApp) land in the same thread.\n\nOne row of conversations by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]},"patch":{"operationId":"update_conversations_row","summary":"Update a conversation","description":"A message thread (the unified inbox). Can be about at most one subject (property, unit, lease, work order, service request, application, lead, owner or vendor) via explicit nullable FKs; participants in conversation_participants; messages in any channel (in-app, email, SMS, voice, WhatsApp) land in the same thread.\n\nChanges the given fields of one row of conversations and returns it. Fields left out stay as they are.\n\nNeeds one of: communications.write.","tags":["Conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["direct","group","support"],"description":"direct = one external party and staff; group = several external parties (e.g. all co-tenants of a lease); support = tenant/owner/vendor-initiated help request routed to the team inbox."},"title":{"anyOf":[{"type":"string","maxLength":100000,"description":"title"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"service_request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},{"type":"null"}]},"rental_application_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rental application id"},{"type":"null"}]},"lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"scope_property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Derived (trigger): the property the subject belongs to, used for property-scoped staff access. Not user-editable."},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff user who owns follow-up on this thread."},{"type":"null"}]},"primary_channel":{"type":"string","enum":["in_app","email","sms","voice","whatsapp"],"description":"Channel replies default to (last channel the external party used)."},"priority":{"type":"string","enum":["low","normal","high","urgent"],"description":"priority"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last message at"},{"type":"null"}]},"last_message_preview":{"anyOf":[{"type":"string","maxLength":100000,"description":"Denormalized first ~200 characters of the latest visible message, for inbox lists (maintained by trigger)."},{"type":"null"}]},"last_inbound_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last inbound at"},{"type":"null"}]},"last_outbound_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last outbound at"},{"type":"null"}]},"first_response_due_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When a response is due under communication_settings.first_response_target_minutes; cleared once staff or AI replies."},{"type":"null"}]},"awaiting_response":{"type":"boolean","description":"True when the latest non-internal message is inbound and unanswered (maintained by trigger)."},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"snoozed until"},{"type":"null"}]},"snooze_until_activity":{"type":"boolean","description":"Snoozed \"until there is new activity\": status is snoozed with snoozed_until a year out (the 00013 check needs a time); the existing inbound-message trigger reopens it. Cleared whenever the conversation leaves snoozed."},"topic":{"anyOf":[{"type":"string","enum":["maintenance","payment","lease","move","parking_amenities","noise_neighbor","documents","general","spam"],"description":"What the conversation is about (conversation_topic); null until labeled. Set only through public.set_conversation_labels (staff, or an approved Inbox agent proposal)."},{"type":"null"}]},"urgency":{"anyOf":[{"type":"string","enum":["low","normal","high","emergency"],"description":"How urgent the conversation is (low, normal, high, emergency); null until labeled. An emergency label also raises priority to urgent. Set only through public.set_conversation_labels."},{"type":"null"}]},"labeled_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When topic and urgency were last set."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/corporate_card_statements":{"get":{"operationId":"list_corporate_card_statements","summary":"List corporate card statements","description":"Monthly statement of a corporate card as printed by the issuer. Reconciled when every transaction in it is billed, matched or excluded and the transactions tie to new charges - credits. bill_id is the AP bill to the issuer generated from the coded charges.\n\nPages through the corporate card statements table of the organization, oldest first. Filters: id, corporate_card_id, statement_on, period_start_on, period_end_on, due_on, status, bill_id, document_id, reconciled_by, created_by.\n\nNeeds one of: payables.read.","tags":["Corporate card statements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"corporate_card_id","in":"query","required":false,"schema":{"description":"Only rows whose corporate_card_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corporate_card_id equals this."},{"name":"statement_on","in":"query","required":false,"schema":{"description":"Only rows whose statement_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose statement_on equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","reconciled","closed"]},"description":"Only rows whose status equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"reconciled_by","in":"query","required":false,"schema":{"description":"Only rows whose reconciled_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reconciled_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/corporate_card_statements/{id}":{"get":{"operationId":"get_corporate_card_statements_row","summary":"Get a corporate card statement","description":"Monthly statement of a corporate card as printed by the issuer. Reconciled when every transaction in it is billed, matched or excluded and the transactions tie to new charges - credits. bill_id is the AP bill to the issuer generated from the coded charges.\n\nOne row of corporate card statements by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Corporate card statements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/corporate_card_transactions":{"get":{"operationId":"list_corporate_card_transactions","summary":"List corporate card transactions","description":"One charge or credit on a corporate card (imported from the issuer feed or entered). Coded to a GL account and property (plus optional unit, work order, project), then billed to the issuer on the statement's AP bill; or matched to a vendor payment already recorded as paid by card; or excluded.\n\nPages through the corporate card transactions table of the organization, oldest first. Filters: id, corporate_card_id, corporate_card_statement_id, transaction_on, posted_on, status, gl_account_id, property_id, unit_id, work_order_id, capital_project_id, cost_code_id, receipt_document_id, bill_id, vendor_payment_id, coded_by.\n\nNeeds one of: payables.read.","tags":["Corporate card transactions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"corporate_card_id","in":"query","required":false,"schema":{"description":"Only rows whose corporate_card_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corporate_card_id equals this."},{"name":"corporate_card_statement_id","in":"query","required":false,"schema":{"description":"Only rows whose corporate_card_statement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corporate_card_statement_id equals this."},{"name":"transaction_on","in":"query","required":false,"schema":{"description":"Only rows whose transaction_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose transaction_on equals this."},{"name":"posted_on","in":"query","required":false,"schema":{"description":"Only rows whose posted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose posted_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["unreviewed","coded","billed","matched","excluded"]},"description":"Only rows whose status equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"receipt_document_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_document_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"coded_by","in":"query","required":false,"schema":{"description":"Only rows whose coded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose coded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/corporate_card_transactions/{id}":{"get":{"operationId":"get_corporate_card_transactions_row","summary":"Get a corporate card transaction","description":"One charge or credit on a corporate card (imported from the issuer feed or entered). Coded to a GL account and property (plus optional unit, work order, project), then billed to the issuer on the statement's AP bill; or matched to a vendor payment already recorded as paid by card; or excluded.\n\nOne row of corporate card transactions by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Corporate card transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/corporate_cards":{"get":{"operationId":"list_corporate_cards","summary":"List corporate cards","description":"Company credit card used by staff for property purchases. Charges are coded to GL accounts and properties and billed to the card issuer (issuer_vendor_id) as an AP bill per statement, which is then paid like any bill.\n\nPages through the corporate cards table of the organization, oldest first. Filters: id, issuer_vendor_id, cardholder_user_id, is_active, created_by.\n\nNeeds one of: payables.read, payables.write.","tags":["Corporate cards"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"issuer_vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose issuer_vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose issuer_vendor_id equals this."},{"name":"cardholder_user_id","in":"query","required":false,"schema":{"description":"Only rows whose cardholder_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cardholder_user_id equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","payables.write"]}},"/v1/corporate_cards/{id}":{"get":{"operationId":"get_corporate_cards_row","summary":"Get a corporate card","description":"Company credit card used by staff for property purchases. Charges are coded to GL accounts and properties and billed to the card issuer (issuer_vendor_id) as an AP bill per statement, which is then paid like any bill.\n\nOne row of corporate cards by id, with every column the API shows.\n\nNeeds one of: payables.read, payables.write.","tags":["Corporate cards"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","payables.write"]}},"/v1/cost_codes":{"get":{"operationId":"list_cost_codes","summary":"List cost codes","description":"Job-cost categories (CSI-style: 03-000 Concrete, 09-900 Painting) that project budgets, commitments, bills and draws are coded to.\n\nPages through the cost codes table of the organization, oldest first. Filters: id, parent_id, default_gl_account_id, created_by.\n\nNeeds one of: projects.write.","tags":["Cost codes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"parent_id","in":"query","required":false,"schema":{"description":"Only rows whose parent_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose parent_id equals this."},{"name":"default_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose default_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose default_gl_account_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]},"post":{"operationId":"create_cost_codes_row","summary":"Create a cost code","description":"Job-cost categories (CSI-style: 03-000 Concrete, 09-900 Painting) that project budgets, commitments, bills and draws are coded to.\n\nInserts one row of cost codes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: projects.write.","tags":["Cost codes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","maxLength":100000,"description":"Code of the cost code."},"name":{"type":"string","maxLength":100000,"description":"Name of the cost code."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the cost code."},{"type":"null"}]},"parent_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.cost_codes (the cost code this cost code belongs to or points at)."},{"type":"null"}]},"default_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"GL account suggested when a bill line is coded to this cost code (e.g. Construction in Progress)."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":["code","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/cost_codes/{id}":{"get":{"operationId":"get_cost_codes_row","summary":"Get a cost code","description":"Job-cost categories (CSI-style: 03-000 Concrete, 09-900 Painting) that project budgets, commitments, bills and draws are coded to.\n\nOne row of cost codes by id, with every column the API shows.\n\nNeeds one of: projects.write.","tags":["Cost codes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/court_hearings":{"get":{"operationId":"list_court_hearings","summary":"List court hearings","description":"Court dates of an eviction case (initial appearance, trial, motions, mediation) and what happened. A continuance is a new row linked from the old one via continued_to_hearing_id. Upcoming hearings feed the shared calendar.\n\nPages through the court hearings table of the organization, oldest first. Filters: id, eviction_case_id, hearing_type, is_virtual, result, continued_to_hearing_id, attended_by_user_id, created_by.\n\nNeeds one of: legal.read, legal.write.","tags":["Court hearings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"hearing_type","in":"query","required":false,"schema":{"description":"Only rows whose hearing_type equals this.","type":"string","enum":["initial_appearance","trial","status_conference","motion","mediation","default_hearing","appeal","other"]},"description":"Only rows whose hearing_type equals this."},{"name":"is_virtual","in":"query","required":false,"schema":{"description":"Only rows whose is_virtual equals this.","type":"boolean"},"description":"Only rows whose is_virtual equals this."},{"name":"result","in":"query","required":false,"schema":{"description":"Only rows whose result equals this.","type":"string","enum":["scheduled","held","continued","cancelled","no_show_tenant","no_show_landlord"]},"description":"Only rows whose result equals this."},{"name":"continued_to_hearing_id","in":"query","required":false,"schema":{"description":"Only rows whose continued_to_hearing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose continued_to_hearing_id equals this."},{"name":"attended_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose attended_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose attended_by_user_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]}},"/v1/court_hearings/{id}":{"get":{"operationId":"get_court_hearings_row","summary":"Get a court hearing","description":"Court dates of an eviction case (initial appearance, trial, motions, mediation) and what happened. A continuance is a new row linked from the old one via continued_to_hearing_id. Upcoming hearings feed the shared calendar.\n\nOne row of court hearings by id, with every column the API shows.\n\nNeeds one of: legal.read, legal.write.","tags":["Court hearings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"patch":{"operationId":"update_court_hearings_row","summary":"Update a court hearing","description":"Court dates of an eviction case (initial appearance, trial, motions, mediation) and what happened. A continuance is a new row linked from the old one via continued_to_hearing_id. Upcoming hearings feed the shared calendar.\n\nChanges the given fields of one row of court hearings and returns it. Fields left out stay as they are.\n\nNeeds one of: legal.write.","tags":["Court hearings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"eviction_case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"eviction case id"},"hearing_type":{"type":"string","enum":["initial_appearance","trial","status_conference","motion","mediation","default_hearing","appeal","other"],"description":"hearing type"},"scheduled_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled at"},"courtroom":{"anyOf":[{"type":"string","maxLength":100000,"description":"courtroom"},{"type":"null"}]},"judge_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"judge name"},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"location"},{"type":"null"}]},"is_virtual":{"type":"boolean","description":"is virtual"},"virtual_link":{"anyOf":[{"type":"string","maxLength":100000,"description":"virtual link"},{"type":"null"}]},"result":{"type":"string","enum":["scheduled","held","continued","cancelled","no_show_tenant","no_show_landlord"],"description":"scheduled (upcoming), held, continued (postponed), cancelled, no_show_tenant (often default judgment), no_show_landlord."},"outcome_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"outcome notes"},{"type":"null"}]},"continued_to_hearing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"continued to hearing id"},{"type":"null"}]},"attended_by_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff member who attends for the landlord."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]},"delete":{"operationId":"delete_court_hearings_row","summary":"Delete a court hearing","description":"Court dates of an eviction case (initial appearance, trial, motions, mediation) and what happened. A continuance is a new row linked from the old one via continued_to_hearing_id. Upcoming hearings feed the shared calendar.\n\nDeletes one row of court hearings. The database refuses it where other records still need the row.\n\nNeeds one of: legal.write.","tags":["Court hearings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/credit_allocations":{"get":{"operationId":"list_credit_allocations","summary":"List credit allocations","description":"Application of a credit to a charge. No journal entry of its own (the credit already relieved AR). Active rows (reversed_at is null) reduce the charge's open amount.\n\nPages through the credit allocations table of the organization, oldest first. Filters: id, credit_id, charge_id, property_id, lease_id, allocated_on, reversed_on, reversed_by, created_by.\n\nNeeds one of: receivables.read.","tags":["Credit allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"credit_id","in":"query","required":false,"schema":{"description":"Only rows whose credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose credit_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"allocated_on","in":"query","required":false,"schema":{"description":"Only rows whose allocated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose allocated_on equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"reversed_by","in":"query","required":false,"schema":{"description":"Only rows whose reversed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversed_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/credit_allocations/{id}":{"get":{"operationId":"get_credit_allocations_row","summary":"Get a credit allocation","description":"Application of a credit to a charge. No journal entry of its own (the credit already relieved AR). Active rows (reversed_at is null) reduce the charge's open amount.\n\nOne row of credit allocations by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Credit allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/credits":{"get":{"operationId":"list_credits","summary":"List credits","description":"Non-cash reductions of what a tenant owes: concessions (first month free), credit memos, goodwill, rent abatement. Posts Dr concession/income account / Cr AR_TENANTS (accrual only). Applied to charges through credit_allocations; an unapplied credit is a credit balance on the tenant ledger and is applied to the next charges automatically.\n\nPages through the credits table of the organization, oldest first. Filters: id, lease_id, contact_id, property_id, unit_id, charge_type_id, gl_account_id, kind, credit_on, journal_entry_id, reversed_on, reversed_by, reversal_journal_entry_id, transferred_from_credit_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["concession","credit_memo","goodwill","rent_abatement","utility_adjustment","other","lease_transfer"]},"description":"Only rows whose kind equals this."},{"name":"credit_on","in":"query","required":false,"schema":{"description":"Only rows whose credit_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose credit_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"reversed_by","in":"query","required":false,"schema":{"description":"Only rows whose reversed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversed_by equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."},{"name":"transferred_from_credit_id","in":"query","required":false,"schema":{"description":"Only rows whose transferred_from_credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose transferred_from_credit_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/credits/{id}":{"get":{"operationId":"get_credits_row","summary":"Get a credit","description":"Non-cash reductions of what a tenant owes: concessions (first month free), credit memos, goodwill, rent abatement. Posts Dr concession/income account / Cr AR_TENANTS (accrual only). Applied to charges through credit_allocations; an unapplied credit is a credit balance on the tenant ledger and is applied to the next charges automatically.\n\nOne row of credits by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/custom_field_definitions":{"get":{"operationId":"list_custom_field_definitions","summary":"List custom field definitions","description":"Organization-defined extra fields on a kind of record (entity), e.g. \"Gate code\" on units or \"Insurance agent\" on owners. Values live in custom_field_values, one typed column per field_type, so they can be filtered and summed.\n\nPages through the custom field definitions table of the organization, oldest first. Filters: id, entity, field_type, is_required, is_visible_in_portal, is_searchable, created_by.\n\nNeeds one of: settings.write.","tags":["Custom field definitions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"entity","in":"query","required":false,"schema":{"description":"Only rows whose entity equals this.","type":"string","enum":["property","building","unit","lease","contact","owner","vendor","work_order","rental_application","bill","fixed_asset","capital_project"]},"description":"Only rows whose entity equals this."},{"name":"field_type","in":"query","required":false,"schema":{"description":"Only rows whose field_type equals this.","type":"string","enum":["text","long_text","integer","decimal","money","date","boolean","single_select","multi_select"]},"description":"Only rows whose field_type equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."},{"name":"is_visible_in_portal","in":"query","required":false,"schema":{"description":"Only rows whose is_visible_in_portal equals this.","type":"boolean"},"description":"Only rows whose is_visible_in_portal equals this."},{"name":"is_searchable","in":"query","required":false,"schema":{"description":"Only rows whose is_searchable equals this.","type":"boolean"},"description":"Only rows whose is_searchable equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"post":{"operationId":"create_custom_field_definitions_row","summary":"Create a custom field definition","description":"Organization-defined extra fields on a kind of record (entity), e.g. \"Gate code\" on units or \"Insurance agent\" on owners. Values live in custom_field_values, one typed column per field_type, so they can be filtered and summed.\n\nInserts one row of custom field definitions in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Custom field definitions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"type":"string","enum":["property","building","unit","lease","contact","owner","vendor","work_order","rental_application","bill","fixed_asset","capital_project"],"description":"Kind of record the field appears on; values link through the matching FK column of custom_field_values."},"key":{"type":"string","maxLength":100000,"description":"Stable snake_case identifier used by imports, the API and the AI assistant (unique per entity)."},"label":{"type":"string","maxLength":100000,"description":"Label of the custom field definition."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the custom field definition."},{"type":"null"}]},"help_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Help text of the custom field definition."},{"type":"null"}]},"field_type":{"type":"string","enum":["text","long_text","integer","decimal","money","date","boolean","single_select","multi_select"],"description":"Data type; decides which value column of custom_field_values holds the value. Cannot change once values exist."},"is_required":{"type":"boolean","description":"Apps require a value when the record is created or edited (not enforced on existing rows)."},"is_visible_in_portal":{"type":"boolean","description":"Shown to tenants (lease, unit, property fields) or owners (owner, property fields) in their portals."},"is_searchable":{"type":"boolean","description":"True when the custom field definition is searchable."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Display order within the entity's custom field section (ascending)."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":["entity","key","label","field_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/custom_field_definitions/{id}":{"get":{"operationId":"get_custom_field_definitions_row","summary":"Get a custom field definition","description":"Organization-defined extra fields on a kind of record (entity), e.g. \"Gate code\" on units or \"Insurance agent\" on owners. Values live in custom_field_values, one typed column per field_type, so they can be filtered and summed.\n\nOne row of custom field definitions by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Custom field definitions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"patch":{"operationId":"update_custom_field_definitions_row","summary":"Update a custom field definition","description":"Organization-defined extra fields on a kind of record (entity), e.g. \"Gate code\" on units or \"Insurance agent\" on owners. Values live in custom_field_values, one typed column per field_type, so they can be filtered and summed.\n\nChanges the given fields of one row of custom field definitions and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Custom field definitions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"type":"string","enum":["property","building","unit","lease","contact","owner","vendor","work_order","rental_application","bill","fixed_asset","capital_project"],"description":"Kind of record the field appears on; values link through the matching FK column of custom_field_values."},"key":{"type":"string","maxLength":100000,"description":"Stable snake_case identifier used by imports, the API and the AI assistant (unique per entity)."},"label":{"type":"string","maxLength":100000,"description":"Label of the custom field definition."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the custom field definition."},{"type":"null"}]},"help_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Help text of the custom field definition."},{"type":"null"}]},"field_type":{"type":"string","enum":["text","long_text","integer","decimal","money","date","boolean","single_select","multi_select"],"description":"Data type; decides which value column of custom_field_values holds the value. Cannot change once values exist."},"is_required":{"type":"boolean","description":"Apps require a value when the record is created or edited (not enforced on existing rows)."},"is_visible_in_portal":{"type":"boolean","description":"Shown to tenants (lease, unit, property fields) or owners (owner, property fields) in their portals."},"is_searchable":{"type":"boolean","description":"True when the custom field definition is searchable."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Display order within the entity's custom field section (ascending)."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/custom_field_options":{"get":{"operationId":"list_custom_field_options","summary":"List custom field options","description":"Allowed choices of a single_select or multi_select custom field.\n\nPages through the custom field options table of the organization, oldest first. Filters: id, custom_field_definition_id.\n\nNeeds one of: settings.write.","tags":["Custom field options"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"custom_field_definition_id","in":"query","required":false,"schema":{"description":"Only rows whose custom_field_definition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose custom_field_definition_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"post":{"operationId":"create_custom_field_options_row","summary":"Create a custom field option","description":"Allowed choices of a single_select or multi_select custom field.\n\nInserts one row of custom field options in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Custom field options"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"custom_field_definition_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.custom_field_definitions (the custom field definition this custom field option belongs to or points at)."},"value":{"type":"string","maxLength":100000,"description":"Stable machine value of the choice (unique per field); label is what users see."},"label":{"type":"string","maxLength":100000,"description":"Label of the custom field option."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Position of the custom field option."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":["custom_field_definition_id","value","label"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/custom_field_options/{id}":{"get":{"operationId":"get_custom_field_options_row","summary":"Get a custom field option","description":"Allowed choices of a single_select or multi_select custom field.\n\nOne row of custom field options by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Custom field options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"patch":{"operationId":"update_custom_field_options_row","summary":"Update a custom field option","description":"Allowed choices of a single_select or multi_select custom field.\n\nChanges the given fields of one row of custom field options and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Custom field options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"custom_field_definition_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.custom_field_definitions (the custom field definition this custom field option belongs to or points at)."},"value":{"type":"string","maxLength":100000,"description":"Stable machine value of the choice (unique per field); label is what users see."},"label":{"type":"string","maxLength":100000,"description":"Label of the custom field option."},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Position of the custom field option."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/custom_field_value_options":{"get":{"operationId":"list_custom_field_value_options","summary":"List custom field value options","description":"Chosen options of a multi_select custom field value (one row per chosen option).\n\nPages through the custom field value options table of the organization, oldest first. Filters: id, custom_field_value_id, custom_field_option_id.\n\nNeeds one of: org.admin.","tags":["Custom field value options"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"custom_field_value_id","in":"query","required":false,"schema":{"description":"Only rows whose custom_field_value_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose custom_field_value_id equals this."},{"name":"custom_field_option_id","in":"query","required":false,"schema":{"description":"Only rows whose custom_field_option_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose custom_field_option_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/custom_field_value_options/{id}":{"get":{"operationId":"get_custom_field_value_options_row","summary":"Get a custom field value option","description":"Chosen options of a multi_select custom field value (one row per chosen option).\n\nOne row of custom field value options by id, with every column the API shows.\n\nNeeds one of: org.admin.","tags":["Custom field value options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/custom_field_values":{"get":{"operationId":"list_custom_field_values","summary":"List custom field values","description":"Value of one custom field on one record. Exactly one parent FK column is set (the one matching entity) and at most one typed value column (the one matching the definition's field_type; multi_select choices are rows in custom_field_value_options). Query example: units with gate code = '1234': join custom_field_definitions d on d.key = 'gate_code' and d.entity = 'unit' where v.unit_id = units.id and v.text_value = '1234'.\n\nPages through the custom field values table of the organization, oldest first. Filters: id, custom_field_definition_id, entity, property_id, building_id, unit_id, lease_id, contact_id, owner_id, vendor_id, work_order_id, rental_application_id, bill_id, fixed_asset_id, capital_project_id, scope_property_id, date_value, boolean_value, custom_field_option_id, created_by, updated_by.\n\nNeeds one of: org.admin.","tags":["Custom field values"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"custom_field_definition_id","in":"query","required":false,"schema":{"description":"Only rows whose custom_field_definition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose custom_field_definition_id equals this."},{"name":"entity","in":"query","required":false,"schema":{"description":"Only rows whose entity equals this.","type":"string","enum":["property","building","unit","lease","contact","owner","vendor","work_order","rental_application","bill","fixed_asset","capital_project"]},"description":"Only rows whose entity equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"fixed_asset_id","in":"query","required":false,"schema":{"description":"Only rows whose fixed_asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose fixed_asset_id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"scope_property_id","in":"query","required":false,"schema":{"description":"Only rows whose scope_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose scope_property_id equals this."},{"name":"date_value","in":"query","required":false,"schema":{"description":"Only rows whose date_value equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose date_value equals this."},{"name":"boolean_value","in":"query","required":false,"schema":{"description":"Only rows whose boolean_value equals this.","type":"boolean"},"description":"Only rows whose boolean_value equals this."},{"name":"custom_field_option_id","in":"query","required":false,"schema":{"description":"Only rows whose custom_field_option_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose custom_field_option_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/custom_field_values/{id}":{"get":{"operationId":"get_custom_field_values_row","summary":"Get a custom field value","description":"Value of one custom field on one record. Exactly one parent FK column is set (the one matching entity) and at most one typed value column (the one matching the definition's field_type; multi_select choices are rows in custom_field_value_options). Query example: units with gate code = '1234': join custom_field_definitions d on d.key = 'gate_code' and d.entity = 'unit' where v.unit_id = units.id and v.text_value = '1234'.\n\nOne row of custom field values by id, with every column the API shows.\n\nNeeds one of: org.admin.","tags":["Custom field values"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/dashboard_layouts":{"get":{"operationId":"list_dashboard_layouts","summary":"List dashboard layouts","description":"Saved dashboard views: the widgets in order (keys the web app knows), an optional property scope, and the role preset it started from. Personal views have user_id; shared team views have is_shared. Sharing a view never grants access to the records behind it: every widget still reads as the viewer. Critical alerts stay in the persistent alert area even when a view leaves their widget out.\n\nPages through the dashboard layouts table of the organization, oldest first. Filters: id, user_id, is_shared, is_default, created_by.\n\nNeeds one of: settings.write.","tags":["Dashboard layouts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"is_shared","in":"query","required":false,"schema":{"description":"Only rows whose is_shared equals this.","type":"boolean"},"description":"Only rows whose is_shared equals this."},{"name":"is_default","in":"query","required":false,"schema":{"description":"Only rows whose is_default equals this.","type":"boolean"},"description":"Only rows whose is_default equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"post":{"operationId":"create_dashboard_layouts_row","summary":"Create a dashboard layout","description":"Saved dashboard views: the widgets in order (keys the web app knows), an optional property scope, and the role preset it started from. Personal views have user_id; shared team views have is_shared. Sharing a view never grants access to the records behind it: every widget still reads as the viewer. Critical alerts stay in the persistent alert area even when a view leaves their widget out.\n\nInserts one row of dashboard layouts in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Dashboard layouts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"preset":{"anyOf":[{"type":"string","maxLength":100000,"description":"preset"},{"type":"null"}]},"widgets":{"type":"array","items":{"type":"string","maxLength":100000},"description":"Widget keys in display order, each optionally suffixed \":wide\" (for example \"property_comparison:wide\")."},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"is_shared":{"type":"boolean","description":"is shared"},"is_default":{"type":"boolean","description":"The person's (or, shared, the team's) default view."},"alert_thresholds":{"anyOf":[{"description":"Per-metric alert thresholds the person set, as {metric_key: number} (a preference payload, read only by the web app)."},{"type":"null"}]}},"required":["name","widgets"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/dashboard_layouts/{id}":{"get":{"operationId":"get_dashboard_layouts_row","summary":"Get a dashboard layout","description":"Saved dashboard views: the widgets in order (keys the web app knows), an optional property scope, and the role preset it started from. Personal views have user_id; shared team views have is_shared. Sharing a view never grants access to the records behind it: every widget still reads as the viewer. Critical alerts stay in the persistent alert area even when a view leaves their widget out.\n\nOne row of dashboard layouts by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Dashboard layouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"delete":{"operationId":"delete_dashboard_layouts_row","summary":"Delete a dashboard layout","description":"Saved dashboard views: the widgets in order (keys the web app knows), an optional property scope, and the role preset it started from. Personal views have user_id; shared team views have is_shared. Sharing a view never grants access to the records behind it: every widget still reads as the viewer. Critical alerts stay in the persistent alert area even when a view leaves their widget out.\n\nDeletes one row of dashboard layouts. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Dashboard layouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/deposit_alternative_claims":{"get":{"operationId":"list_deposit_alternative_claims","summary":"List deposit alternative claims","description":"Claim filed with the provider for unpaid rent or damages covered by a deposit alternative. When the provider pays, the money is recorded as an ordinary receipt on the lease (receipt_id), which is what hits the ledger.\n\nPages through the deposit alternative claims table of the organization, oldest first. Filters: id, deposit_alternative_enrollment_id, status, filed_on, paid_on, receipt_id, created_by.\n\nNeeds one of: leasing.read.","tags":["Deposit alternative claims"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"deposit_alternative_enrollment_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_alternative_enrollment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_alternative_enrollment_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","submitted","approved","partially_approved","denied","paid"]},"description":"Only rows whose status equals this."},{"name":"filed_on","in":"query","required":false,"schema":{"description":"Only rows whose filed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose filed_on equals this."},{"name":"paid_on","in":"query","required":false,"schema":{"description":"Only rows whose paid_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paid_on equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/deposit_alternative_claims/{id}":{"get":{"operationId":"get_deposit_alternative_claims_row","summary":"Get a deposit alternative claim","description":"Claim filed with the provider for unpaid rent or damages covered by a deposit alternative. When the provider pays, the money is recorded as an ordinary receipt on the lease (receipt_id), which is what hits the ledger.\n\nOne row of deposit alternative claims by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Deposit alternative claims"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/deposit_alternative_enrollments":{"get":{"operationId":"list_deposit_alternative_enrollments","summary":"List deposit alternative enrollments","description":"A resident's purchase of a deposit alternative for a lease. The provider collects the premium directly; the property waives deposit_waived_cents of the cash deposit and claims against the coverage at move-out.\n\nPages through the deposit alternative enrollments table of the organization, oldest first. Filters: id, deposit_alternative_product_id, lease_id, contact_id, status, premium_frequency, effective_on, ends_on, canceled_on, created_by.\n\nNeeds one of: leasing.read.","tags":["Deposit alternative enrollments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"deposit_alternative_product_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_alternative_product_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_alternative_product_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["quoted","pending","active","canceled","expired","claimed"]},"description":"Only rows whose status equals this."},{"name":"premium_frequency","in":"query","required":false,"schema":{"description":"Only rows whose premium_frequency equals this.","type":"string","enum":["one_time","monthly","annual"]},"description":"Only rows whose premium_frequency equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"canceled_on","in":"query","required":false,"schema":{"description":"Only rows whose canceled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose canceled_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/deposit_alternative_enrollments/{id}":{"get":{"operationId":"get_deposit_alternative_enrollments_row","summary":"Get a deposit alternative enrollment","description":"A resident's purchase of a deposit alternative for a lease. The provider collects the premium directly; the property waives deposit_waived_cents of the cash deposit and claims against the coverage at move-out.\n\nOne row of deposit alternative enrollments by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Deposit alternative enrollments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/deposit_alternative_product_properties":{"get":{"operationId":"list_deposit_alternative_product_properties","summary":"List deposit alternative product properties","description":"Which properties offer a deposit alternative product, effective-dated.\n\nPages through the deposit alternative product properties table of the organization, oldest first. Filters: id, deposit_alternative_product_id, property_id, effective_on, ends_on.\n\nNeeds one of: leasing.write.","tags":["Deposit alternative product properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"deposit_alternative_product_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_alternative_product_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_alternative_product_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/deposit_alternative_product_properties/{id}":{"get":{"operationId":"get_deposit_alternative_product_properties_row","summary":"Get a deposit alternative product property","description":"Which properties offer a deposit alternative product, effective-dated.\n\nOne row of deposit alternative product properties by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Deposit alternative product properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/deposit_alternative_products":{"get":{"operationId":"list_deposit_alternative_products","summary":"List deposit alternative products","description":"Deposit alternative an organization offers residents (surety bond, deposit-waiver insurance, institutional guarantee, deposit installments), with its coverage and premium terms. Offered at properties through deposit_alternative_product_properties.\n\nPages through the deposit alternative products table of the organization, oldest first. Filters: id, provider, product_type, premium_frequency, is_active, created_by.\n\nNeeds one of: leasing.write.","tags":["Deposit alternative products"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["leaselock","rhino","jetty","the_guarantors","obligo","sure_deposit","other"]},"description":"Only rows whose provider equals this."},{"name":"product_type","in":"query","required":false,"schema":{"description":"Only rows whose product_type equals this.","type":"string","enum":["surety_bond","deposit_waiver_insurance","lease_guarantee","deposit_installments"]},"description":"Only rows whose product_type equals this."},{"name":"premium_frequency","in":"query","required":false,"schema":{"description":"Only rows whose premium_frequency equals this.","type":"string","enum":["one_time","monthly","annual"]},"description":"Only rows whose premium_frequency equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/deposit_alternative_products/{id}":{"get":{"operationId":"get_deposit_alternative_products_row","summary":"Get a deposit alternative product","description":"Deposit alternative an organization offers residents (surety bond, deposit-waiver insurance, institutional guarantee, deposit installments), with its coverage and premium terms. Offered at properties through deposit_alternative_product_properties.\n\nOne row of deposit alternative products by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Deposit alternative products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/deposit_deduction_prices":{"get":{"operationId":"list_deposit_deduction_prices","summary":"List deposit deduction prices","description":"The org's price list for move-out deductions: the standard charge for an inspection item (matched by item name, case-insensitive), used when the inspector entered no cost. Staff with receivables.write edit it.\n\nPages through the deposit deduction prices table of the organization, oldest first. Filters: id, created_by.\n\nNeeds one of: maintenance.read, receivables.read.","tags":["Deposit deduction prices"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","receivables.read"]},"post":{"operationId":"create_deposit_deduction_prices_row","summary":"Create a deposit deduction price","description":"The org's price list for move-out deductions: the standard charge for an inspection item (matched by item name, case-insensitive), used when the inspector entered no cost. Staff with receivables.write edit it.\n\nInserts one row of deposit deduction prices in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: receivables.write.","tags":["Deposit deduction prices"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_name":{"type":"string","maxLength":100000,"description":"The inspection item it prices, as inspection_items.item reads (Carpet, Mirror, Blinds). Unique per org, case-insensitive."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The standard deduction for the item, in cents."}},"required":["item_name","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/deposit_deduction_prices/{id}":{"get":{"operationId":"get_deposit_deduction_prices_row","summary":"Get a deposit deduction price","description":"The org's price list for move-out deductions: the standard charge for an inspection item (matched by item name, case-insensitive), used when the inspector entered no cost. Staff with receivables.write edit it.\n\nOne row of deposit deduction prices by id, with every column the API shows.\n\nNeeds one of: maintenance.read, receivables.read.","tags":["Deposit deduction prices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","receivables.read"]},"patch":{"operationId":"update_deposit_deduction_prices_row","summary":"Update a deposit deduction price","description":"The org's price list for move-out deductions: the standard charge for an inspection item (matched by item name, case-insensitive), used when the inspector entered no cost. Staff with receivables.write edit it.\n\nChanges the given fields of one row of deposit deduction prices and returns it. Fields left out stay as they are.\n\nNeeds one of: receivables.write.","tags":["Deposit deduction prices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"item_name":{"type":"string","maxLength":100000,"description":"The inspection item it prices, as inspection_items.item reads (Carpet, Mirror, Blinds). Unique per org, case-insensitive."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The standard deduction for the item, in cents."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]},"delete":{"operationId":"delete_deposit_deduction_prices_row","summary":"Delete a deposit deduction price","description":"The org's price list for move-out deductions: the standard charge for an inspection item (matched by item name, case-insensitive), used when the inspector entered no cost. Staff with receivables.write edit it.\n\nDeletes one row of deposit deduction prices. The database refuses it where other records still need the row.\n\nNeeds one of: receivables.write.","tags":["Deposit deduction prices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/deposit_disposition_draft_lines":{"get":{"operationId":"list_deposit_disposition_draft_lines","summary":"List deposit disposition draft lines","description":"One deduction of a drafted deposit disposition. amount_cents is null until staff enter it (an inspection item with no cost and no price); approval needs every amount.\n\nPages through the deposit disposition draft lines table of the organization, oldest first. Filters: id, draft_id, inspection_item_id, source.\n\nNeeds one of: receivables.read.","tags":["Deposit disposition draft lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"draft_id","in":"query","required":false,"schema":{"description":"Only rows whose draft_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose draft_id equals this."},{"name":"inspection_item_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_item_id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["inspection","price_list","manual"]},"description":"Only rows whose source equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_disposition_draft_lines/{id}":{"get":{"operationId":"get_deposit_disposition_draft_lines_row","summary":"Get a deposit disposition draft line","description":"One deduction of a drafted deposit disposition. amount_cents is null until staff enter it (an inspection item with no cost and no price); approval needs every amount.\n\nOne row of deposit disposition draft lines by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Deposit disposition draft lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_disposition_drafts":{"get":{"operationId":"list_deposit_disposition_drafts","summary":"List deposit disposition drafts","description":"A deposit disposition drafted from a completed move-out inspection, for staff to review, edit and approve.\n\nPages through the deposit disposition drafts table of the organization, oldest first. Filters: id, lease_id, property_id, inspection_id, status, disposition_id, decided_by, created_by.\n\nNeeds one of: receivables.read.","tags":["Deposit disposition drafts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","approved","discarded"]},"description":"Only rows whose status equals this."},{"name":"disposition_id","in":"query","required":false,"schema":{"description":"Only rows whose disposition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose disposition_id equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_disposition_drafts/{id}":{"get":{"operationId":"get_deposit_disposition_drafts_row","summary":"Get a deposit disposition draft","description":"A deposit disposition drafted from a completed move-out inspection, for staff to review, edit and approve.\n\nOne row of deposit disposition drafts by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Deposit disposition drafts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_interest_payments":{"get":{"operationId":"list_deposit_interest_payments","summary":"List deposit interest payments","description":"Security deposit interest paid for a period: yearly credits to the tenant's ledger (payout annually, credit_id) and the interest added at disposition (payout move_out, disposition_id). The next period starts the day after the latest period_to of the lease (and of the leases renewed into it). Written only by the deposit interest functions.\n\nPages through the deposit interest payments table of the organization, oldest first. Filters: id, lease_id, property_id, payout, period_from, period_to, method, compounding, credit_id, disposition_id.\n\nNeeds one of: receivables.read.","tags":["Deposit interest payments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"payout","in":"query","required":false,"schema":{"description":"Only rows whose payout equals this.","type":"string","enum":["annually","move_out"]},"description":"Only rows whose payout equals this."},{"name":"period_from","in":"query","required":false,"schema":{"description":"Only rows whose period_from equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_from equals this."},{"name":"period_to","in":"query","required":false,"schema":{"description":"Only rows whose period_to equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_to equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["simple","compound"]},"description":"Only rows whose method equals this."},{"name":"compounding","in":"query","required":false,"schema":{"description":"Only rows whose compounding equals this.","type":"string","enum":["monthly","quarterly","annually"]},"description":"Only rows whose compounding equals this."},{"name":"credit_id","in":"query","required":false,"schema":{"description":"Only rows whose credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose credit_id equals this."},{"name":"disposition_id","in":"query","required":false,"schema":{"description":"Only rows whose disposition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose disposition_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_interest_payments/{id}":{"get":{"operationId":"get_deposit_interest_payments_row","summary":"Get a deposit interest payment","description":"Security deposit interest paid for a period: yearly credits to the tenant's ledger (payout annually, credit_id) and the interest added at disposition (payout move_out, disposition_id). The next period starts the day after the latest period_to of the lease (and of the leases renewed into it). Written only by the deposit interest functions.\n\nOne row of deposit interest payments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Deposit interest payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_interest_positions":{"get":{"operationId":"list_deposit_interest_positions","summary":"List deposit interest positions","description":"The date a lease deposit's interest is already paid through, set by staff for interest paid outside the app (before go-live, by hand) (00136, set_deposit_interest_paid_through). Interest runs from the day after the later of this date and the latest deposit_interest_payments period, so no period is paid twice.\n\nPages through the deposit interest positions table of the organization, oldest first. Filters: id, lease_id, property_id, paid_through_on, set_by.\n\nNeeds one of: receivables.read.","tags":["Deposit interest positions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"paid_through_on","in":"query","required":false,"schema":{"description":"Only rows whose paid_through_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paid_through_on equals this."},{"name":"set_by","in":"query","required":false,"schema":{"description":"Only rows whose set_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose set_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_interest_positions/{id}":{"get":{"operationId":"get_deposit_interest_positions_row","summary":"Get a deposit interest position","description":"The date a lease deposit's interest is already paid through, set by staff for interest paid outside the app (before go-live, by hand) (00136, set_deposit_interest_paid_through). Interest runs from the day after the later of this date and the latest deposit_interest_payments period, so no period is paid twice.\n\nOne row of deposit interest positions by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Deposit interest positions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_interest_settings":{"get":{"operationId":"list_deposit_interest_settings","summary":"List deposit interest settings","description":"Interest the company pays tenants on security deposits: one row per property, or per state (region_code, matched to properties.region). A property row overrides the state row. Nothing applies without a row: the built-in statute rules apply only through a row that follows them (opt-in). A rate of 0 turns interest off. Written through set_deposit_interest_setting.\n\nPages through the deposit interest settings table of the organization, oldest first. Filters: id, property_id, follows_built_in, method, compounding, payout, created_by.\n\nNeeds one of: receivables.read.","tags":["Deposit interest settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"follows_built_in","in":"query","required":false,"schema":{"description":"Only rows whose follows_built_in equals this.","type":"boolean"},"description":"Only rows whose follows_built_in equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["simple","compound"]},"description":"Only rows whose method equals this."},{"name":"compounding","in":"query","required":false,"schema":{"description":"Only rows whose compounding equals this.","type":"string","enum":["monthly","quarterly","annually"]},"description":"Only rows whose compounding equals this."},{"name":"payout","in":"query","required":false,"schema":{"description":"Only rows whose payout equals this.","type":"string","enum":["annually","move_out"]},"description":"Only rows whose payout equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_interest_settings/{id}":{"get":{"operationId":"get_deposit_interest_settings_row","summary":"Get a deposit interest setting","description":"Interest the company pays tenants on security deposits: one row per property, or per state (region_code, matched to properties.region). A property row overrides the state row. Nothing applies without a row: the built-in statute rules apply only through a row that follows them (opt-in). A rate of 0 turns interest off. Written through set_deposit_interest_setting.\n\nOne row of deposit interest settings by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Deposit interest settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposit_items":{"get":{"operationId":"list_deposit_items","summary":"List deposit items","description":"One receipt or owner contribution included in a deposit. is_active becomes false when the deposit is voided (the item can then be deposited again); an item is in at most one active deposit.\n\nPages through the deposit items table of the organization, oldest first. Filters: id, deposit_id, receipt_id, owner_contribution_id, property_id, is_active.\n\nNeeds one of: banking.read.","tags":["Deposit items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"deposit_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"owner_contribution_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_contribution_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_contribution_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/deposit_items/{id}":{"get":{"operationId":"get_deposit_items_row","summary":"Get a deposit item","description":"One receipt or owner contribution included in a deposit. is_active becomes false when the deposit is voided (the item can then be deposited again); an item is in at most one active deposit.\n\nOne row of deposit items by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Deposit items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/deposits":{"get":{"operationId":"list_deposits","summary":"List deposits","description":"A bank deposit slip: checks, cash and money orders (receipts and owner contributions sitting in UNDEPOSITED_FUNDS) taken to the bank together. Posts Dr bank GL / Cr UNDEPOSITED_FUNDS per property fund in one journal entry. Matches one bank feed line.\n\nPages through the deposits table of the organization, oldest first. Filters: id, bank_account_id, deposited_on, status, journal_entry_id, void_journal_entry_id, created_by, deposit_method, slip_document_id, remote_capture_status, retain_items_until.\n\nNeeds one of: banking.read.","tags":["Deposits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"deposited_on","in":"query","required":false,"schema":{"description":"Only rows whose deposited_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose deposited_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["posted","voided"]},"description":"Only rows whose status equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"deposit_method","in":"query","required":false,"schema":{"description":"Only rows whose deposit_method equals this.","type":"string","enum":["branch","atm","mobile_capture","remote_scanner","night_drop","armored_pickup","other"]},"description":"Only rows whose deposit_method equals this."},{"name":"slip_document_id","in":"query","required":false,"schema":{"description":"Only rows whose slip_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose slip_document_id equals this."},{"name":"remote_capture_status","in":"query","required":false,"schema":{"description":"Only rows whose remote_capture_status equals this.","type":"string","enum":["submitted","accepted","rejected"]},"description":"Only rows whose remote_capture_status equals this."},{"name":"retain_items_until","in":"query","required":false,"schema":{"description":"Only rows whose retain_items_until equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose retain_items_until equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/deposits/{id}":{"get":{"operationId":"get_deposits_row","summary":"Get a deposit","description":"A bank deposit slip: checks, cash and money orders (receipts and owner contributions sitting in UNDEPOSITED_FUNDS) taken to the bank together. Posts Dr bank GL / Cr UNDEPOSITED_FUNDS per property fund in one journal entry. Matches one bank feed line.\n\nOne row of deposits by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Deposits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/depreciation_schedules":{"get":{"operationId":"list_depreciation_schedules","summary":"List depreciation schedules","description":"The rows of an asset sum exactly to cost - salvage). Posted rows never change.\n\nPages through the depreciation schedules table of the organization, oldest first. Filters: id, fixed_asset_id, property_id, period_on, status, journal_entry_id.\n\nNeeds one of: gl.read.","tags":["Depreciation schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"fixed_asset_id","in":"query","required":false,"schema":{"description":"Only rows whose fixed_asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose fixed_asset_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"period_on","in":"query","required":false,"schema":{"description":"Only rows whose period_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["scheduled","posted","skipped"]},"description":"Only rows whose status equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/depreciation_schedules/{id}":{"get":{"operationId":"get_depreciation_schedules_row","summary":"Get a depreciation schedule","description":"The rows of an asset sum exactly to cost - salvage). Posted rows never change.\n\nOne row of depreciation schedules by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Depreciation schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/disputes":{"get":{"operationId":"list_disputes","summary":"List disputes","description":"Chargebacks and inquiries on card (or unauthorized ACH) payments, with evidence deadlines. Upserted from processor webhooks by record_dispute_update. Opening a dispute moves the payment to disputed; lost/accepted reverses the receipt in the ledger; won restores it.\n\nPages through the disputes table of the organization, oldest first. Filters: id, payment_transaction_id, processor_account_id, reason, status, assigned_to.\n\nNeeds one of: receivables.read.","tags":["Disputes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"processor_account_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_account_id equals this."},{"name":"reason","in":"query","required":false,"schema":{"description":"Only rows whose reason equals this.","type":"string","enum":["fraudulent","unrecognized","duplicate","product_not_received","credit_not_processed","subscription_canceled","ach_unauthorized","general","other"]},"description":"Only rows whose reason equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["warning_needs_response","warning_under_review","warning_closed","needs_response","under_review","won","lost","accepted"]},"description":"Only rows whose status equals this."},{"name":"assigned_to","in":"query","required":false,"schema":{"description":"Only rows whose assigned_to equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_to equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/disputes/{id}":{"get":{"operationId":"get_disputes_row","summary":"Get a dispute","description":"Chargebacks and inquiries on card (or unauthorized ACH) payments, with evidence deadlines. Upserted from processor webhooks by record_dispute_update. Opening a dispute moves the payment to disputed; lost/accepted reverses the receipt in the ledger; won restores it.\n\nOne row of disputes by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Disputes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/distribution_waterfalls":{"get":{"operationId":"list_distribution_waterfalls","summary":"List distribution waterfalls","description":"The distribution waterfall of an investment entity (from its operating agreement): an ordered list of waterfall_tiers. At most one active waterfall per entity. Returns accrue as simple (non-compounding) interest, actual/365, on unreturned capital.\n\nPages through the distribution waterfalls table of the organization, oldest first. Filters: id, investment_entity_id, effective_on, is_active, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Distribution waterfalls"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/distribution_waterfalls/{id}":{"get":{"operationId":"get_distribution_waterfalls_row","summary":"Get a distribution waterfall","description":"The distribution waterfall of an investment entity (from its operating agreement): an ordered list of waterfall_tiers. At most one active waterfall per entity. Returns accrue as simple (non-compounding) interest, actual/365, on unreturned capital.\n\nOne row of distribution waterfalls by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Distribution waterfalls"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/document_links":{"get":{"operationId":"list_document_links","summary":"List document links","description":"What a document is about: each row links one document to exactly one record (property, building, unit, lease, amendment, renewal offer, application, contact, owner, vendor, vendor contract, work order, service request, inspection, bill, owner statement, management agreement, conversation, message or task). A document can have many links (an invoice linked to its bill and its work order). Legal cases add their own nullable legal_case_id column here by ALTER.\n\nPages through the document links table of the organization, oldest first. Filters: id, document_id, property_id, building_id, unit_id, lease_id, lease_amendment_id, renewal_offer_id, rental_application_id, contact_id, owner_id, vendor_id, vendor_contract_id, work_order_id, service_request_id, inspection_id, bill_id, owner_statement_id, management_agreement_id, conversation_id, message_id, task_id, scope_property_id, created_by, is_primary, record_id, eviction_case_id, legal_notice_id, journal_entry_id, purchase_order_id, vendor_payment_id, receipt_id, deposit_id.\n\nNeeds one of: documents.write.","tags":["Document links"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"renewal_offer_id","in":"query","required":false,"schema":{"description":"Only rows whose renewal_offer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renewal_offer_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"vendor_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_contract_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"owner_statement_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_statement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_statement_id equals this."},{"name":"management_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose management_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_agreement_id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"scope_property_id","in":"query","required":false,"schema":{"description":"Only rows whose scope_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose scope_property_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"is_primary","in":"query","required":false,"schema":{"description":"Only rows whose is_primary equals this.","type":"boolean"},"description":"Only rows whose is_primary equals this."},{"name":"record_id","in":"query","required":false,"schema":{"description":"Only rows whose record_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose record_id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"legal_notice_id","in":"query","required":false,"schema":{"description":"Only rows whose legal_notice_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose legal_notice_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"purchase_order_id","in":"query","required":false,"schema":{"description":"Only rows whose purchase_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose purchase_order_id equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"deposit_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]},"post":{"operationId":"create_document_links_row","summary":"Create a document link","description":"What a document is about: each row links one document to exactly one record (property, building, unit, lease, amendment, renewal offer, application, contact, owner, vendor, vendor contract, work order, service request, inspection, bill, owner statement, management agreement, conversation, message or task). A document can have many links (an invoice linked to its bill and its work order). Legal cases add their own nullable legal_case_id column here by ALTER.\n\nInserts one row of document links in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: documents.write.","tags":["Document links"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"document_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"lease_amendment_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease amendment id"},{"type":"null"}]},"renewal_offer_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renewal offer id"},{"type":"null"}]},"rental_application_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rental application id"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"vendor_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor contract id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"service_request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},{"type":"null"}]},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},{"type":"null"}]},"bill_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bill id"},{"type":"null"}]},"owner_statement_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner statement id"},{"type":"null"}]},"management_agreement_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"management agreement id"},{"type":"null"}]},"conversation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"conversation id"},{"type":"null"}]},"message_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"message id"},{"type":"null"}]},"task_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"task id"},{"type":"null"}]},"scope_property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Derived (trigger): the property the linked record belongs to, for property-scoped staff access and \"all documents of a property\" queries."},{"type":"null"}]},"is_primary":{"type":"boolean","description":"The record the document was generated from or uploaded for; other links are its parents (property, unit, contacts) so the document also shows on related records."},"record_type":{"anyOf":[{"type":"string","maxLength":100000,"description":"Derived (trigger): which target column is set, as its name without _id (lease, unit, work_order, owner_statement ...). Picks up target columns added later automatically."},{"type":"null"}]},"record_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Derived (trigger): the id in the target column."},{"type":"null"}]},"record_label":{"anyOf":[{"type":"string","maxLength":100000,"description":"Derived (trigger, at link time): human label of the target, e.g. \"Lease - Maple Court 2B\" or \"WO-1042 Leaking sink\". Not refreshed when the target is renamed."},{"type":"null"}]},"eviction_case_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Eviction case this document is attached to (filings, judgments, writs)."},{"type":"null"}]},"legal_notice_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Legal notice this document is attached to (served notice PDF, proof of service)."},{"type":"null"}]},"journal_entry_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Journal entry this document supports (receipt, invoice, workpaper). public.attach_journal_entry_document adds it; a reversal carries the original entry's links."},{"type":"null"}]},"purchase_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Purchase order this document supports (signed PO, quote, approval). public.attach_record_document adds it."},{"type":"null"}]},"vendor_payment_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor payment this document supports (check image, remittance, bank confirmation). public.attach_record_document adds it."},{"type":"null"}]},"receipt_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Receipt this document supports (check image, money order, payment confirmation). public.attach_record_document adds it."},{"type":"null"}]},"deposit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Bank deposit this document supports (stamped deposit slip, bank confirmation). public.attach_record_document adds it."},{"type":"null"}]}},"required":["document_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/document_links/{id}":{"get":{"operationId":"get_document_links_row","summary":"Get a document link","description":"What a document is about: each row links one document to exactly one record (property, building, unit, lease, amendment, renewal offer, application, contact, owner, vendor, vendor contract, work order, service request, inspection, bill, owner statement, management agreement, conversation, message or task). A document can have many links (an invoice linked to its bill and its work order). Legal cases add their own nullable legal_case_id column here by ALTER.\n\nOne row of document links by id, with every column the API shows.\n\nNeeds one of: documents.write.","tags":["Document links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]},"delete":{"operationId":"delete_document_links_row","summary":"Delete a document link","description":"What a document is about: each row links one document to exactly one record (property, building, unit, lease, amendment, renewal offer, application, contact, owner, vendor, vendor contract, work order, service request, inspection, bill, owner statement, management agreement, conversation, message or task). A document can have many links (an invoice linked to its bill and its work order). Legal cases add their own nullable legal_case_id column here by ALTER.\n\nDeletes one row of document links. The database refuses it where other records still need the row.\n\nNeeds one of: documents.write.","tags":["Document links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/document_settings":{"get":{"operationId":"list_document_settings","summary":"List document settings","description":"One row per organization (absent = defaults): which e-signature provider sends envelopes, and the defaults for envelope expiry, reminders and the ESIGN consumer disclosure.\n\nPages through the document settings table of the organization, oldest first. Filters: id, esign_provider.\n\nNeeds one of: settings.write.","tags":["Document settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"esign_provider","in":"query","required":false,"schema":{"description":"Only rows whose esign_provider equals this.","type":"string","enum":["native","dropbox_sign","docusign"]},"description":"Only rows whose esign_provider equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/document_settings/{id}":{"get":{"operationId":"get_document_settings_row","summary":"Get a document setting","description":"One row per organization (absent = defaults): which e-signature provider sends envelopes, and the defaults for envelope expiry, reminders and the ESIGN consumer disclosure.\n\nOne row of document settings by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Document settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/document_template_fields":{"get":{"operationId":"list_document_template_fields","summary":"List document template fields","description":"Pdf_form templates only: a field placed on a page of the base PDF. Boxes are page fractions (0..1, top-left origin). A field with role_key is filled by that signer; a field with only merge_path is stamped at generation from the context (e.g. lease.monthly_rent_cents).\n\nPages through the document template fields table of the organization, oldest first. Filters: id, template_version_id, field_type, is_required.\n\nNeeds one of: documents.read.","tags":["Document template fields"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"template_version_id","in":"query","required":false,"schema":{"description":"Only rows whose template_version_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose template_version_id equals this."},{"name":"field_type","in":"query","required":false,"schema":{"description":"Only rows whose field_type equals this.","type":"string","enum":["signature","initials","date_signed","printed_name","text","checkbox","date","dropdown"]},"description":"Only rows whose field_type equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/document_template_fields/{id}":{"get":{"operationId":"get_document_template_fields_row","summary":"Get a document template field","description":"Pdf_form templates only: a field placed on a page of the base PDF. Boxes are page fractions (0..1, top-left origin). A field with role_key is filled by that signer; a field with only merge_path is stamped at generation from the context (e.g. lease.monthly_rent_cents).\n\nOne row of document template fields by id, with every column the API shows.\n\nNeeds one of: documents.read.","tags":["Document template fields"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/document_template_versions":{"get":{"operationId":"list_document_template_versions","summary":"List document template versions","description":"Versions of a versioned template, immutable once published. generated templates store a TemplateBody (body: {schemaVersion, blocks, ...}); pdf_form templates point at the uploaded base PDF (base_document_id) and place fields in document_template_fields. At most one unpublished draft per template; document_templates.current_version_id is the live one. Generated documents record the exact version they were rendered from.\n\nPages through the document template versions table of the organization, oldest first. Filters: id, template_id, base_document_id, is_system_seed, published_by, created_by.\n\nNeeds one of: documents.read.","tags":["Document template versions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"template_id","in":"query","required":false,"schema":{"description":"Only rows whose template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose template_id equals this."},{"name":"base_document_id","in":"query","required":false,"schema":{"description":"Only rows whose base_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose base_document_id equals this."},{"name":"is_system_seed","in":"query","required":false,"schema":{"description":"Only rows whose is_system_seed equals this.","type":"boolean"},"description":"Only rows whose is_system_seed equals this."},{"name":"published_by","in":"query","required":false,"schema":{"description":"Only rows whose published_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose published_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/document_template_versions/{id}":{"get":{"operationId":"get_document_template_versions_row","summary":"Get a document template version","description":"Versions of a versioned template, immutable once published. generated templates store a TemplateBody (body: {schemaVersion, blocks, ...}); pdf_form templates point at the uploaded base PDF (base_document_id) and place fields in document_template_fields. At most one unpublished draft per template; document_templates.current_version_id is the live one. Generated documents record the exact version they were rendered from.\n\nOne row of document template versions by id, with every column the API shows.\n\nNeeds one of: documents.read.","tags":["Document template versions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/document_templates":{"get":{"operationId":"list_document_templates","summary":"List document templates","description":"Lease, addendum, notice, disclosure and letter templates with {{merge_field}} placeholders, optionally jurisdiction-specific (a state lease, a city notice). org_id null = platform library template; orgs copy and edit their own. Versions are immutable once used: edit by creating version + 1 (supersedes_template_id). Template fields, version history and generations are in 00016_paperwork.\n\nPages through the document templates table of the organization, oldest first. Filters: id, kind, jurisdiction_id, body_format, supersedes_template_id, requires_signature, is_active, created_by, category, context_type, format, is_system, current_version_id.\n\nNeeds one of: documents.write.","tags":["Document templates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["lease","addendum","notice","letter","disclosure","agreement","statement","form","other"]},"description":"Only rows whose kind equals this."},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"description":"Only rows whose jurisdiction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose jurisdiction_id equals this."},{"name":"body_format","in":"query","required":false,"schema":{"description":"Only rows whose body_format equals this.","type":"string","enum":["html","markdown","pdf_form"]},"description":"Only rows whose body_format equals this."},{"name":"supersedes_template_id","in":"query","required":false,"schema":{"description":"Only rows whose supersedes_template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose supersedes_template_id equals this."},{"name":"requires_signature","in":"query","required":false,"schema":{"description":"Only rows whose requires_signature equals this.","type":"boolean"},"description":"Only rows whose requires_signature equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"category","in":"query","required":false,"schema":{"description":"Only rows whose category equals this.","type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"]},"description":"Only rows whose category equals this."},{"name":"context_type","in":"query","required":false,"schema":{"description":"Only rows whose context_type equals this.","type":"string","enum":["lease","rental_application","service_request","work_order","inspection","bill","receipt","owner_statement","owner","vendor","contact","property"]},"description":"Only rows whose context_type equals this."},{"name":"format","in":"query","required":false,"schema":{"description":"Only rows whose format equals this.","type":"string","enum":["generated","pdf_form"]},"description":"Only rows whose format equals this."},{"name":"is_system","in":"query","required":false,"schema":{"description":"Only rows whose is_system equals this.","type":"boolean"},"description":"Only rows whose is_system equals this."},{"name":"current_version_id","in":"query","required":false,"schema":{"description":"Only rows whose current_version_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose current_version_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]},"post":{"operationId":"create_document_templates_row","summary":"Create a document template","description":"Lease, addendum, notice, disclosure and letter templates with {{merge_field}} placeholders, optionally jurisdiction-specific (a state lease, a city notice). org_id null = platform library template; orgs copy and edit their own. Versions are immutable once used: edit by creating version + 1 (supersedes_template_id). Template fields, version history and generations are in 00016_paperwork.\n\nInserts one row of document templates in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: documents.write.","tags":["Document templates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["lease","addendum","notice","letter","disclosure","agreement","statement","form","other"],"description":"kind"},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"notice_type":{"anyOf":[{"type":"string","maxLength":100000,"description":"For notices: specific kind, e.g. pay_or_quit, notice_to_vacate, entry_notice, rent_increase, lease_violation, non_renewal."},{"type":"null"}]},"jurisdiction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"jurisdiction id"},{"type":"null"}]},"locale":{"type":"string","maxLength":100000,"description":"locale"},"body_format":{"type":"string","enum":["html","markdown","pdf_form"],"description":"body format"},"body":{"anyOf":[{"type":"string","maxLength":100000,"description":"Template body (HTML or Markdown) with {{merge_field}} placeholders and signature tags."},{"type":"null"}]},"pdf_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"For pdf_form templates: the fillable PDF in Storage."},{"type":"null"}]},"merge_fields":{"type":"array","items":{"type":"string","maxLength":100000},"description":"Merge fields the template uses (tenant_names, unit_address, rent_amount, lease_start_date, ...)."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"version"},"supersedes_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"supersedes template id"},{"type":"null"}]},"requires_signature":{"type":"boolean","description":"requires signature"},"is_active":{"type":"boolean","description":"is active"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"category":{"anyOf":[{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"Filing category of documents generated from this template (documents.category). Defaults from kind when omitted (and kind from it)."},{"type":"null"}]},"context_type":{"anyOf":[{"type":"string","enum":["lease","rental_application","service_request","work_order","inspection","bill","receipt","owner_statement","owner","vendor","contact","property"],"description":"Record type the template is generated from; decides the merge fields (get_document_context). Set = a versioned template (body in document_template_versions); null = a 00014 inline-body template."},{"type":"null"}]},"format":{"type":"string","enum":["generated","pdf_form"],"description":"generated (block body) or pdf_form (uploaded base PDF with placed fields, document_template_fields)."},"system_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stable key of a template shipped by the engine (residential_lease, notice_late_rent ...); null for org-authored templates. Unique per org."},{"type":"null"}]},"is_system":{"type":"boolean","description":"Seeded by seed_system_document_templates. Orgs can edit and publish their own versions; re-seeding never overwrites a version the org published."},"current_version_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The published version used for new documents (set only by publish_document_template_version; constraint document_templates_current_version_id_fkey)."},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/document_templates/{id}":{"get":{"operationId":"get_document_templates_row","summary":"Get a document template","description":"Lease, addendum, notice, disclosure and letter templates with {{merge_field}} placeholders, optionally jurisdiction-specific (a state lease, a city notice). org_id null = platform library template; orgs copy and edit their own. Versions are immutable once used: edit by creating version + 1 (supersedes_template_id). Template fields, version history and generations are in 00016_paperwork.\n\nOne row of document templates by id, with every column the API shows.\n\nNeeds one of: documents.write.","tags":["Document templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]},"patch":{"operationId":"update_document_templates_row","summary":"Update a document template","description":"Lease, addendum, notice, disclosure and letter templates with {{merge_field}} placeholders, optionally jurisdiction-specific (a state lease, a city notice). org_id null = platform library template; orgs copy and edit their own. Versions are immutable once used: edit by creating version + 1 (supersedes_template_id). Template fields, version history and generations are in 00016_paperwork.\n\nChanges the given fields of one row of document templates and returns it. Fields left out stay as they are.\n\nNeeds one of: documents.write.","tags":["Document templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["lease","addendum","notice","letter","disclosure","agreement","statement","form","other"],"description":"kind"},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"notice_type":{"anyOf":[{"type":"string","maxLength":100000,"description":"For notices: specific kind, e.g. pay_or_quit, notice_to_vacate, entry_notice, rent_increase, lease_violation, non_renewal."},{"type":"null"}]},"jurisdiction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"jurisdiction id"},{"type":"null"}]},"locale":{"type":"string","maxLength":100000,"description":"locale"},"body_format":{"type":"string","enum":["html","markdown","pdf_form"],"description":"body format"},"body":{"anyOf":[{"type":"string","maxLength":100000,"description":"Template body (HTML or Markdown) with {{merge_field}} placeholders and signature tags."},{"type":"null"}]},"pdf_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"For pdf_form templates: the fillable PDF in Storage."},{"type":"null"}]},"merge_fields":{"type":"array","items":{"type":"string","maxLength":100000},"description":"Merge fields the template uses (tenant_names, unit_address, rent_amount, lease_start_date, ...)."},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"version"},"supersedes_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"supersedes template id"},{"type":"null"}]},"requires_signature":{"type":"boolean","description":"requires signature"},"is_active":{"type":"boolean","description":"is active"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"category":{"anyOf":[{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"Filing category of documents generated from this template (documents.category). Defaults from kind when omitted (and kind from it)."},{"type":"null"}]},"context_type":{"anyOf":[{"type":"string","enum":["lease","rental_application","service_request","work_order","inspection","bill","receipt","owner_statement","owner","vendor","contact","property"],"description":"Record type the template is generated from; decides the merge fields (get_document_context). Set = a versioned template (body in document_template_versions); null = a 00014 inline-body template."},{"type":"null"}]},"format":{"type":"string","enum":["generated","pdf_form"],"description":"generated (block body) or pdf_form (uploaded base PDF with placed fields, document_template_fields)."},"system_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stable key of a template shipped by the engine (residential_lease, notice_late_rent ...); null for org-authored templates. Unique per org."},{"type":"null"}]},"is_system":{"type":"boolean","description":"Seeded by seed_system_document_templates. Orgs can edit and publish their own versions; re-seeding never overwrites a version the org published."},"current_version_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The published version used for new documents (set only by publish_document_template_version; constraint document_templates_current_version_id_fkey)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/eiv_household_flags":{"get":{"operationId":"list_eiv_household_flags","summary":"List eiv household flags","description":"A household member an Existing Tenant Search or Multiple Subsidy report lists as receiving assistance elsewhere. Staff follow up (the other owner or housing agency) and record the outcome; open until resolved.\n\nPages through the eiv household flags table of the organization, oldest first. Filters: id, eiv_import_id, eiv_import_member_id, lease_id, report_type, resolved_on, resolved_by.\n\nNeeds one of: affordable.read.","tags":["EIV household flags"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eiv_import_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_import_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_import_id equals this."},{"name":"eiv_import_member_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_import_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_import_member_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"report_type","in":"query","required":false,"schema":{"description":"Only rows whose report_type equals this.","type":"string","enum":["existing_tenant_search","deceased_tenants","failed_verification","new_hires","multiple_subsidy","identity_verification","income_discrepancy","no_income","income_report"]},"description":"Only rows whose report_type equals this."},{"name":"resolved_on","in":"query","required":false,"schema":{"description":"Only rows whose resolved_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose resolved_on equals this."},{"name":"resolved_by","in":"query","required":false,"schema":{"description":"Only rows whose resolved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resolved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_household_flags/{id}":{"get":{"operationId":"get_eiv_household_flags_row","summary":"Get an eiv household flag","description":"A household member an Existing Tenant Search or Multiple Subsidy report lists as receiving assistance elsewhere. Staff follow up (the other owner or housing agency) and record the outcome; open until resolved.\n\nOne row of eiv household flags by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["EIV household flags"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_import_households":{"get":{"operationId":"list_eiv_import_households","summary":"List eiv import households","description":"Income Report comparison for one household: annual income EIV reports for its matched members against the same kinds of income (employment, unemployment, Social Security, SSI) on its current certification. is_discrepancy when they differ by $200 a month or more, or by 10% or more of the certified amount. Open until resolved.\n\nPages through the eiv import households table of the organization, oldest first. Filters: id, eiv_import_id, lease_id, household_certification_id, is_discrepancy, resolved_on, resolved_by.\n\nNeeds one of: affordable.read.","tags":["EIV import households"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eiv_import_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_import_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_import_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"is_discrepancy","in":"query","required":false,"schema":{"description":"Only rows whose is_discrepancy equals this.","type":"boolean"},"description":"Only rows whose is_discrepancy equals this."},{"name":"resolved_on","in":"query","required":false,"schema":{"description":"Only rows whose resolved_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose resolved_on equals this."},{"name":"resolved_by","in":"query","required":false,"schema":{"description":"Only rows whose resolved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resolved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_import_households/{id}":{"get":{"operationId":"get_eiv_import_households_row","summary":"Get an eiv import household","description":"Income Report comparison for one household: annual income EIV reports for its matched members against the same kinds of income (employment, unemployment, Social Security, SSI) on its current certification. is_discrepancy when they differ by $200 a month or more, or by 10% or more of the certified amount. Open until resolved.\n\nOne row of eiv import households by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["EIV import households"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_import_members":{"get":{"operationId":"list_eiv_import_members","summary":"List eiv import members","description":"A person on an imported EIV report and the household member it matched (same last name and last four SSN digits on the household's current certification at the property). Unmatched people have no lease.\n\nPages through the eiv import members table of the organization, oldest first. Filters: id, eiv_import_id, lease_id, household_certification_id, certification_member_id.\n\nNeeds one of: affordable.read.","tags":["EIV import members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eiv_import_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_import_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_import_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"certification_member_id","in":"query","required":false,"schema":{"description":"Only rows whose certification_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose certification_member_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_import_members/{id}":{"get":{"operationId":"get_eiv_import_members_row","summary":"Get an eiv import member","description":"A person on an imported EIV report and the household member it matched (same last name and last four SSN digits on the household's current certification at the property). Unmatched people have no lease.\n\nOne row of eiv import members by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["EIV import members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_imports":{"get":{"operationId":"list_eiv_imports","summary":"List eiv imports","description":"An EIV report file staff uploaded for a property (or one household): the report, the date HUD ran it and the counts of people, matched household members and findings. Written only by import_eiv_report, which also logs the review in eiv_report_reviews.\n\nPages through the eiv imports table of the organization, oldest first. Filters: id, property_id, lease_id, report_type, report_date, eiv_report_review_id, imported_by.\n\nNeeds one of: affordable.read.","tags":["EIV imports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"report_type","in":"query","required":false,"schema":{"description":"Only rows whose report_type equals this.","type":"string","enum":["existing_tenant_search","deceased_tenants","failed_verification","new_hires","multiple_subsidy","identity_verification","income_discrepancy","no_income","income_report"]},"description":"Only rows whose report_type equals this."},{"name":"report_date","in":"query","required":false,"schema":{"description":"Only rows whose report_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose report_date equals this."},{"name":"eiv_report_review_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_report_review_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_report_review_id equals this."},{"name":"imported_by","in":"query","required":false,"schema":{"description":"Only rows whose imported_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose imported_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_imports/{id}":{"get":{"operationId":"get_eiv_imports_row","summary":"Get an eiv import","description":"An EIV report file staff uploaded for a property (or one household): the report, the date HUD ran it and the counts of people, matched household members and findings. Written only by import_eiv_report, which also logs the review in eiv_report_reviews.\n\nOne row of eiv imports by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["EIV imports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_member_incomes":{"get":{"operationId":"list_eiv_member_incomes","summary":"List eiv member incomes","description":"One income line of a person on an EIV Income Report: wages from one employer or unemployment for a quarter, or a monthly Social Security or SSI benefit.\n\nPages through the eiv member incomes table of the organization, oldest first. Filters: id, eiv_import_id, eiv_import_member_id, income_kind, period_end.\n\nNeeds one of: affordable.read.","tags":["EIV member incomes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eiv_import_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_import_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_import_id equals this."},{"name":"eiv_import_member_id","in":"query","required":false,"schema":{"description":"Only rows whose eiv_import_member_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eiv_import_member_id equals this."},{"name":"income_kind","in":"query","required":false,"schema":{"description":"Only rows whose income_kind equals this.","type":"string","enum":["wages","unemployment","social_security","ssi"]},"description":"Only rows whose income_kind equals this."},{"name":"period_end","in":"query","required":false,"schema":{"description":"Only rows whose period_end equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_member_incomes/{id}":{"get":{"operationId":"get_eiv_member_incomes_row","summary":"Get an eiv member income","description":"One income line of a person on an EIV Income Report: wages from one employer or unemployment for a quarter, or a monthly Social Security or SSI benefit.\n\nOne row of eiv member incomes by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["EIV member incomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/eiv_report_reviews":{"get":{"operationId":"list_eiv_report_reviews","summary":"List eiv report reviews","description":"The EIV master file: each time staff ran and reviewed an Enterprise Income Verification report for a property, and how many households it flagged. mor_readiness checks the monthly and quarterly reports are current.\n\nPages through the eiv report reviews table of the organization, oldest first. Filters: id, property_id, report_type, reviewed_on, reviewed_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["EIV report reviews"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"report_type","in":"query","required":false,"schema":{"description":"Only rows whose report_type equals this.","type":"string","enum":["existing_tenant_search","deceased_tenants","failed_verification","new_hires","multiple_subsidy","identity_verification","income_discrepancy","no_income","income_report"]},"description":"Only rows whose report_type equals this."},{"name":"reviewed_on","in":"query","required":false,"schema":{"description":"Only rows whose reviewed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reviewed_on equals this."},{"name":"reviewed_by","in":"query","required":false,"schema":{"description":"Only rows whose reviewed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reviewed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_eiv_report_reviews_row","summary":"Create an eiv report review","description":"The EIV master file: each time staff ran and reviewed an Enterprise Income Verification report for a property, and how many households it flagged. mor_readiness checks the monthly and quarterly reports are current.\n\nInserts one row of eiv report reviews in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["EIV report reviews"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"report_type":{"type":"string","enum":["existing_tenant_search","deceased_tenants","failed_verification","new_hires","multiple_subsidy","identity_verification","income_discrepancy","no_income","income_report"],"description":"report type"},"issues_found":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Households the report flagged for follow-up."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","report_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/eiv_report_reviews/{id}":{"get":{"operationId":"get_eiv_report_reviews_row","summary":"Get an eiv report review","description":"The EIV master file: each time staff ran and reviewed an Enterprise Income Verification report for a property, and how many households it flagged. mor_readiness checks the monthly and quarterly reports are current.\n\nOne row of eiv report reviews by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["EIV report reviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/emergency_contacts":{"get":{"operationId":"list_emergency_contacts","summary":"List emergency contacts","description":"Who to call in an emergency for a contact (usually a tenant). The emergency person is itself a contact so their phone/email live in contact_phones/contact_emails. Use add_emergency_contact() to create both in one call.\n\nPages through the emergency contacts table of the organization, oldest first. Filters: id, contact_id, emergency_person_contact_id, can_authorize_entry.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Emergency contacts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"emergency_person_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose emergency_person_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose emergency_person_contact_id equals this."},{"name":"can_authorize_entry","in":"query","required":false,"schema":{"description":"Only rows whose can_authorize_entry equals this.","type":"boolean"},"description":"Only rows whose can_authorize_entry equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]}},"/v1/emergency_contacts/{id}":{"get":{"operationId":"get_emergency_contacts_row","summary":"Get an emergency contact","description":"Who to call in an emergency for a contact (usually a tenant). The emergency person is itself a contact so their phone/email live in contact_phones/contact_emails. Use add_emergency_contact() to create both in one call.\n\nOne row of emergency contacts by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Emergency contacts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_emergency_contacts_row","summary":"Update an emergency contact","description":"Who to call in an emergency for a contact (usually a tenant). The emergency person is itself a contact so their phone/email live in contact_phones/contact_emails. Use add_emergency_contact() to create both in one call.\n\nChanges the given fields of one row of emergency contacts and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Emergency contacts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The contact (tenant, owner) who listed this emergency contact."},"emergency_person_contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The person to call."},"relationship":{"anyOf":[{"type":"string","maxLength":100000,"description":"Free text as given by the tenant, e.g. \"mother\", \"neighbor\"."},{"type":"null"}]},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"1 = call first."},"can_authorize_entry":{"type":"boolean","description":"Tenant authorized this person to approve entry to the unit or receive belongings."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]},"delete":{"operationId":"delete_emergency_contacts_row","summary":"Delete an emergency contact","description":"Who to call in an emergency for a contact (usually a tenant). The emergency person is itself a contact so their phone/email live in contact_phones/contact_emails. Use add_emergency_contact() to create both in one call.\n\nDeletes one row of emergency contacts. The database refuses it where other records still need the row.\n\nNeeds one of: contacts.write.","tags":["Emergency contacts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/entity_holdings":{"get":{"operationId":"list_entity_holdings","summary":"List entity holdings","description":"An investment entity's ownership of another investment entity (a fund that owns SPVs). The parent's net asset value and look-through figures include its ownership_pct of each child held on the date.\n\nPages through the entity holdings table of the organization, oldest first. Filters: id, parent_entity_id, child_entity_id, effective_on, ends_on, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Entity holdings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"parent_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose parent_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose parent_entity_id equals this."},{"name":"child_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose child_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose child_entity_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"post":{"operationId":"create_entity_holdings_row","summary":"Create an entity holding","description":"An investment entity's ownership of another investment entity (a fund that owns SPVs). The parent's net asset value and look-through figures include its ownership_pct of each child held on the date.\n\nInserts one row of entity holdings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: investments.write.","tags":["Entity holdings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parent_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"parent entity id"},"child_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"child entity id"},"ownership_pct":{"type":"number","description":"Percent of the child entity the parent owns (0-100]."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day held; null while held."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["parent_entity_id","child_entity_id","ownership_pct"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/entity_holdings/{id}":{"get":{"operationId":"get_entity_holdings_row","summary":"Get an entity holding","description":"An investment entity's ownership of another investment entity (a fund that owns SPVs). The parent's net asset value and look-through figures include its ownership_pct of each child held on the date.\n\nOne row of entity holdings by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Entity holdings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_entity_holdings_row","summary":"Update an entity holding","description":"An investment entity's ownership of another investment entity (a fund that owns SPVs). The parent's net asset value and look-through figures include its ownership_pct of each child held on the date.\n\nChanges the given fields of one row of entity holdings and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Entity holdings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"parent_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"parent entity id"},"child_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"child entity id"},"ownership_pct":{"type":"number","description":"Percent of the child entity the parent owns (0-100]."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day held; null while held."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/entity_income_allocations":{"get":{"operationId":"list_entity_income_allocations","summary":"List entity income allocations","description":"A periodic allocation of an investment entity's net income or loss to its investors' capital accounts (book capital, the K-1 current-year income). Not a journal entry: no cash moves. Corrections void the run and allocate again.\n\nPages through the entity income allocations table of the organization, oldest first. Filters: id, investment_entity_id, period_start_on, period_end_on, created_by, voided_by.\n\nNeeds one of: investments.read.","tags":["Entity income allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"voided_by","in":"query","required":false,"schema":{"description":"Only rows whose voided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose voided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/entity_income_allocations/{id}":{"get":{"operationId":"get_entity_income_allocations_row","summary":"Get an entity income allocation","description":"A periodic allocation of an investment entity's net income or loss to its investors' capital accounts (book capital, the K-1 current-year income). Not a journal entry: no cash moves. Corrections void the run and allocate again.\n\nOne row of entity income allocations by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Entity income allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/entity_properties":{"get":{"operationId":"list_entity_properties","summary":"List entity properties","description":"Assets held by an investment entity: which properties, what percentage, from when to when (effective dated), with acquisition and disposition economics. The legal ownership used by owner accounting is still property_ownerships for the entity's owner_id; link_entity_property() keeps them consistent.\n\nPages through the entity properties table of the organization, oldest first. Filters: id, investment_entity_id, property_id, effective_on, ends_on, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Entity properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/entity_properties/{id}":{"get":{"operationId":"get_entity_properties_row","summary":"Get an entity property","description":"Assets held by an investment entity: which properties, what percentage, from when to when (effective dated), with acquisition and disposition economics. The legal ownership used by owner accounting is still property_ownerships for the entity's owner_id; link_entity_property() keeps them consistent.\n\nOne row of entity properties by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Entity properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_entity_properties_row","summary":"Update an entity property","description":"Assets held by an investment entity: which properties, what percentage, from when to when (effective dated), with acquisition and disposition economics. The legal ownership used by owner accounting is still property_ownerships for the entity's owner_id; link_entity_property() keeps them consistent.\n\nChanges the given fields of one row of entity properties and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Entity properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"ownership_pct":{"type":"number","description":"Percent of the property the entity owns, 100 = 100%."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Acquisition / closing date (first day owned)."},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day owned (sale closing date); null = still held."},{"type":"null"}]},"acquisition_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"acquisition price cents"},{"type":"null"}]},"acquisition_costs_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Closing and due-diligence costs capitalized on purchase, minor units."},{"type":"null"}]},"loan_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Acquisition debt amount, minor units (informational, for investor reporting)."},{"type":"null"}]},"disposition_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Gross sale price when sold, minor units."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]},"delete":{"operationId":"delete_entity_properties_row","summary":"Delete an entity property","description":"Assets held by an investment entity: which properties, what percentage, from when to when (effective dated), with acquisition and disposition economics. The legal ownership used by owner accounting is still property_ownerships for the entity's owner_id; link_entity_property() keeps them consistent.\n\nDeletes one row of entity properties. The database refuses it where other records still need the row.\n\nNeeds one of: investments.write.","tags":["Entity properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/esign_envelopes":{"get":{"operationId":"list_esign_envelopes","summary":"List esign envelopes","description":"An e-signature request for one document (lease, renewal, amendment, management agreement, vendor contract) through the native signer, Dropbox Sign or DocuSign. Signers in esign_signers; template versions, generations, signer field values, the e-sign event trail and signing RPCs are added by 00016_paperwork. On completion the executed PDF is signed_document_id.\n\nPages through the esign envelopes table of the organization, oldest first. Filters: id, provider, status, document_id, signed_document_id, lease_id, renewal_offer_id, lease_amendment_id, management_agreement_id, vendor_contract_id, is_sequential, sent_by, created_by, generated_document_id, activates_lease, renewal_offer_term_id, voided_by.\n\nNeeds one of: leasing.read.","tags":["Esign envelopes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["native","dropbox_sign","docusign"]},"description":"Only rows whose provider equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","sent","viewed","partially_signed","completed","declined","voided","expired"]},"description":"Only rows whose status equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"signed_document_id","in":"query","required":false,"schema":{"description":"Only rows whose signed_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose signed_document_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"renewal_offer_id","in":"query","required":false,"schema":{"description":"Only rows whose renewal_offer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renewal_offer_id equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"management_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose management_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_agreement_id equals this."},{"name":"vendor_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_contract_id equals this."},{"name":"is_sequential","in":"query","required":false,"schema":{"description":"Only rows whose is_sequential equals this.","type":"boolean"},"description":"Only rows whose is_sequential equals this."},{"name":"sent_by","in":"query","required":false,"schema":{"description":"Only rows whose sent_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose sent_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"generated_document_id","in":"query","required":false,"schema":{"description":"Only rows whose generated_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose generated_document_id equals this."},{"name":"activates_lease","in":"query","required":false,"schema":{"description":"Only rows whose activates_lease equals this.","type":"boolean"},"description":"Only rows whose activates_lease equals this."},{"name":"renewal_offer_term_id","in":"query","required":false,"schema":{"description":"Only rows whose renewal_offer_term_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renewal_offer_term_id equals this."},{"name":"voided_by","in":"query","required":false,"schema":{"description":"Only rows whose voided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose voided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/esign_envelopes/{id}":{"get":{"operationId":"get_esign_envelopes_row","summary":"Get an esign envelope","description":"An e-signature request for one document (lease, renewal, amendment, management agreement, vendor contract) through the native signer, Dropbox Sign or DocuSign. Signers in esign_signers; template versions, generations, signer field values, the e-sign event trail and signing RPCs are added by 00016_paperwork. On completion the executed PDF is signed_document_id.\n\nOne row of esign envelopes by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Esign envelopes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/esign_events":{"get":{"operationId":"list_esign_events","summary":"List esign events","description":"Append-only audit trail of an envelope (created, sent, email_sent, reminded, viewed, consented, downloaded, field_filled, signed, declined, voided, expired, completed, hook_failed) with actor, IP and user agent. Printed on the certificate of completion; rows can never be updated or deleted (trigger, every role).\n\nPages through the esign events table of the organization, oldest first. Filters: id, envelope_id, signer_id, event_type, actor_user_id.\n\nNeeds one of: leasing.read.","tags":["Esign events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"envelope_id","in":"query","required":false,"schema":{"description":"Only rows whose envelope_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose envelope_id equals this."},{"name":"signer_id","in":"query","required":false,"schema":{"description":"Only rows whose signer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose signer_id equals this."},{"name":"event_type","in":"query","required":false,"schema":{"description":"Only rows whose event_type equals this.","type":"string","enum":["created","sent","email_sent","reminded","viewed","consented","downloaded","field_filled","signed","declined","voided","expired","completed","hook_failed"]},"description":"Only rows whose event_type equals this."},{"name":"actor_user_id","in":"query","required":false,"schema":{"description":"Only rows whose actor_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose actor_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/esign_events/{id}":{"get":{"operationId":"get_esign_events_row","summary":"Get an esign event","description":"Append-only audit trail of an envelope (created, sent, email_sent, reminded, viewed, consented, downloaded, field_filled, signed, declined, voided, expired, completed, hook_failed) with actor, IP and user agent. Printed on the certificate of completion; rows can never be updated or deleted (trigger, every role).\n\nOne row of esign events by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Esign events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/esign_fields":{"get":{"operationId":"list_esign_fields","summary":"List esign fields","description":"Every field a signer fills in an envelope (from the engine's extractFields or the pdf_form placements): key, type, required flag, and the value once signed. Field keys are stable so the executed render puts each value in place.\n\nPages through the esign fields table of the organization, oldest first. Filters: id, envelope_id, signer_id, field_type, is_required.\n\nNeeds one of: leasing.read.","tags":["Esign fields"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"envelope_id","in":"query","required":false,"schema":{"description":"Only rows whose envelope_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose envelope_id equals this."},{"name":"signer_id","in":"query","required":false,"schema":{"description":"Only rows whose signer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose signer_id equals this."},{"name":"field_type","in":"query","required":false,"schema":{"description":"Only rows whose field_type equals this.","type":"string","enum":["signature","initials","date_signed","printed_name","text","checkbox","date","dropdown"]},"description":"Only rows whose field_type equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/esign_fields/{id}":{"get":{"operationId":"get_esign_fields_row","summary":"Get an esign field","description":"Every field a signer fills in an envelope (from the engine's extractFields or the pdf_form placements): key, type, required flag, and the value once signed. Field keys are stable so the executed render puts each value in place.\n\nOne row of esign fields by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Esign fields"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/eviction_case_defendants":{"get":{"operationId":"list_eviction_case_defendants","summary":"List eviction case defendants","description":"People named as defendants in an eviction (lease tenants and adult occupants), and whether each was served with the summons. Service is recorded with record_eviction_defendant_service.\n\nPages through the eviction case defendants table of the organization, oldest first. Filters: id, eviction_case_id, contact_id, is_served, served_on.\n\nNeeds one of: legal.read, legal.write.","tags":["Eviction case defendants"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"is_served","in":"query","required":false,"schema":{"description":"Only rows whose is_served equals this.","type":"boolean"},"description":"Only rows whose is_served equals this."},{"name":"served_on","in":"query","required":false,"schema":{"description":"Only rows whose served_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose served_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"post":{"operationId":"create_eviction_case_defendants_row","summary":"Create an eviction case defendant","description":"People named as defendants in an eviction (lease tenants and adult occupants), and whether each was served with the summons. Service is recorded with record_eviction_defendant_service.\n\nInserts one row of eviction case defendants in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: legal.write.","tags":["Eviction case defendants"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eviction_case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"eviction case id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"is_served":{"type":"boolean","description":"is served"},"served_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the summons was served on this defendant; set exactly when is_served."},{"type":"null"}]},"service_method":{"anyOf":[{"type":"string","maxLength":100000,"description":"How the summons was served (personal, substituted, posting, certified mail, ...), free text as the court reports it."},{"type":"null"}]}},"required":["eviction_case_id","contact_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/eviction_case_defendants/{id}":{"get":{"operationId":"get_eviction_case_defendants_row","summary":"Get an eviction case defendant","description":"People named as defendants in an eviction (lease tenants and adult occupants), and whether each was served with the summons. Service is recorded with record_eviction_defendant_service.\n\nOne row of eviction case defendants by id, with every column the API shows.\n\nNeeds one of: legal.read, legal.write.","tags":["Eviction case defendants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"delete":{"operationId":"delete_eviction_case_defendants_row","summary":"Delete an eviction case defendant","description":"People named as defendants in an eviction (lease tenants and adult occupants), and whether each was served with the summons. Service is recorded with record_eviction_defendant_service.\n\nDeletes one row of eviction case defendants. The database refuses it where other records still need the row.\n\nNeeds one of: legal.write.","tags":["Eviction case defendants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/eviction_case_events":{"get":{"operationId":"list_eviction_case_events","summary":"List eviction case events","description":"Timeline of an eviction case: status changes (written by trigger, from_status/to_status set) and free notes (both null).\n\nPages through the eviction case events table of the organization, oldest first. Filters: id, eviction_case_id, from_status, to_status, event_on, actor_user_id.\n\nNeeds one of: legal.read, legal.write.","tags":["Eviction case events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"from_status","in":"query","required":false,"schema":{"description":"Only rows whose from_status equals this.","type":"string","enum":["pending","notice_served","filed","hearing_scheduled","judgment","writ","possession","dismissed","settled","closed"]},"description":"Only rows whose from_status equals this."},{"name":"to_status","in":"query","required":false,"schema":{"description":"Only rows whose to_status equals this.","type":"string","enum":["pending","notice_served","filed","hearing_scheduled","judgment","writ","possession","dismissed","settled","closed"]},"description":"Only rows whose to_status equals this."},{"name":"event_on","in":"query","required":false,"schema":{"description":"Only rows whose event_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose event_on equals this."},{"name":"actor_user_id","in":"query","required":false,"schema":{"description":"Only rows whose actor_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose actor_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"post":{"operationId":"create_eviction_case_events_row","summary":"Create an eviction case event","description":"Timeline of an eviction case: status changes (written by trigger, from_status/to_status set) and free notes (both null).\n\nInserts one row of eviction case events in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: legal.write.","tags":["Eviction case events"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eviction_case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"eviction case id"},"event_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the event happened (e.g. filing date), not when it was recorded."},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"actor user id"},{"type":"null"}]}},"required":["eviction_case_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/eviction_case_events/{id}":{"get":{"operationId":"get_eviction_case_events_row","summary":"Get an eviction case event","description":"Timeline of an eviction case: status changes (written by trigger, from_status/to_status set) and free notes (both null).\n\nOne row of eviction case events by id, with every column the API shows.\n\nNeeds one of: legal.read, legal.write.","tags":["Eviction case events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]}},"/v1/feature_flags":{"get":{"operationId":"list_feature_flags","summary":"List feature flags","description":"Per-organization override of a feature flag (absent = feature_flag_definitions.default_enabled).\n\nPages through the feature flags table of the organization, oldest first. Filters: id, is_enabled, set_by.\n\nNeeds one of: settings.write.","tags":["Feature flags"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"set_by","in":"query","required":false,"schema":{"description":"Only rows whose set_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose set_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/feature_flags/{id}":{"get":{"operationId":"get_feature_flags_row","summary":"Get a feature flag","description":"Per-organization override of a feature flag (absent = feature_flag_definitions.default_enabled).\n\nOne row of feature flags by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Feature flags"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/fixed_asset_tax_books":{"get":{"operationId":"list_fixed_asset_tax_books","summary":"List fixed asset tax books","description":"The tax book of a fixed asset, kept beside the book depreciation of fixed_assets: MACRS-style method, recovery period and convention, Section 179 expense and bonus depreciation. Tax depreciation per year comes from fixed_asset_tax_depreciation; nothing posts to the journal (tax depreciation is reported, not booked). Written by set_fixed_asset_tax_book.\n\nPages through the fixed asset tax books table of the organization, oldest first. Filters: id, fixed_asset_id, placed_in_service_on, created_by.\n\nNeeds one of: gl.read.","tags":["Fixed asset tax books"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"fixed_asset_id","in":"query","required":false,"schema":{"description":"Only rows whose fixed_asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose fixed_asset_id equals this."},{"name":"placed_in_service_on","in":"query","required":false,"schema":{"description":"Only rows whose placed_in_service_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose placed_in_service_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/fixed_asset_tax_books/{id}":{"get":{"operationId":"get_fixed_asset_tax_books_row","summary":"Get a fixed asset tax book","description":"The tax book of a fixed asset, kept beside the book depreciation of fixed_assets: MACRS-style method, recovery period and convention, Section 179 expense and bonus depreciation. Tax depreciation per year comes from fixed_asset_tax_depreciation; nothing posts to the journal (tax depreciation is reported, not booked). Written by set_fixed_asset_tax_book.\n\nOne row of fixed asset tax books by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Fixed asset tax books"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/fixed_assets":{"get":{"operationId":"list_fixed_assets","summary":"List fixed assets","description":"Fixed-asset register: capitalized land, buildings, improvements and equipment of a property fund (property_id) or the management company (property_id null), with depreciation parameters. Book value = acquisition cost - posted depreciation (derived; Separate from assets, the maintenance equipment register, which a fixed asset can point to.\n\nPages through the fixed assets table of the organization, oldest first. Filters: id, property_id, asset_class, status, asset_id, capital_project_id, vendor_id, bill_id, asset_gl_account_id, accumulated_depreciation_gl_account_id, depreciation_expense_gl_account_id, acquired_on, placed_in_service_on, depreciation_method, depreciation_convention, acquisition_journal_entry_id, disposed_on, disposal_type, disposal_journal_entry_id, created_by.\n\nNeeds one of: gl.read, projects.read.","tags":["Fixed assets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"asset_class","in":"query","required":false,"schema":{"description":"Only rows whose asset_class equals this.","type":"string","enum":["land","land_improvement","building","building_improvement","furniture_fixtures","appliances","equipment","vehicle","computer_equipment","leasehold_improvement","other"]},"description":"Only rows whose asset_class equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","in_service","fully_depreciated","disposed"]},"description":"Only rows whose status equals this."},{"name":"asset_id","in":"query","required":false,"schema":{"description":"Only rows whose asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose asset_id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"asset_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose asset_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose asset_gl_account_id equals this."},{"name":"accumulated_depreciation_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose accumulated_depreciation_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accumulated_depreciation_gl_account_id equals this."},{"name":"depreciation_expense_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose depreciation_expense_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose depreciation_expense_gl_account_id equals this."},{"name":"acquired_on","in":"query","required":false,"schema":{"description":"Only rows whose acquired_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose acquired_on equals this."},{"name":"placed_in_service_on","in":"query","required":false,"schema":{"description":"Only rows whose placed_in_service_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose placed_in_service_on equals this."},{"name":"depreciation_method","in":"query","required":false,"schema":{"description":"Only rows whose depreciation_method equals this.","type":"string","enum":["straight_line","declining_balance","sum_of_years_digits","none"]},"description":"Only rows whose depreciation_method equals this."},{"name":"depreciation_convention","in":"query","required":false,"schema":{"description":"Only rows whose depreciation_convention equals this.","type":"string","enum":["full_month","mid_month","half_year"]},"description":"Only rows whose depreciation_convention equals this."},{"name":"acquisition_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose acquisition_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose acquisition_journal_entry_id equals this."},{"name":"disposed_on","in":"query","required":false,"schema":{"description":"Only rows whose disposed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose disposed_on equals this."},{"name":"disposal_type","in":"query","required":false,"schema":{"description":"Only rows whose disposal_type equals this.","type":"string","enum":["sale","retirement","casualty","transfer"]},"description":"Only rows whose disposal_type equals this."},{"name":"disposal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose disposal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose disposal_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","projects.read"]}},"/v1/fixed_assets/{id}":{"get":{"operationId":"get_fixed_assets_row","summary":"Get a fixed asset","description":"Fixed-asset register: capitalized land, buildings, improvements and equipment of a property fund (property_id) or the management company (property_id null), with depreciation parameters. Book value = acquisition cost - posted depreciation (derived; Separate from assets, the maintenance equipment register, which a fixed asset can point to.\n\nOne row of fixed assets by id, with every column the API shows.\n\nNeeds one of: gl.read, projects.read.","tags":["Fixed assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","projects.read"]},"patch":{"operationId":"update_fixed_assets_row","summary":"Update a fixed asset","description":"Fixed-asset register: capitalized land, buildings, improvements and equipment of a property fund (property_id) or the management company (property_id null), with depreciation parameters. Book value = acquisition cost - posted depreciation (derived; Separate from assets, the maintenance equipment register, which a fixed asset can point to.\n\nChanges the given fields of one row of fixed assets and returns it. Fields left out stay as they are.\n\nNeeds one of: gl.write.","tags":["Fixed assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Fund that owns the asset: a property, or null for the management company's own books."},{"type":"null"}]},"asset_number":{"type":"string","maxLength":100000,"description":"Asset number of the fixed asset."},"name":{"type":"string","maxLength":100000,"description":"Name of the fixed asset."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the fixed asset."},{"type":"null"}]},"asset_class":{"type":"string","enum":["land","land_improvement","building","building_improvement","furniture_fixtures","appliances","equipment","vehicle","computer_equipment","leasehold_improvement","other"],"description":"Asset class of the fixed asset. One of: land, land_improvement, building, building_improvement, furniture_fixtures, appliances, equipment, vehicle, computer_equipment, leasehold_improvement, other."},"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Matching row in the maintenance equipment register (public.assets), when the asset is a piece of equipment."},{"type":"null"}]},"capital_project_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Project whose costs were capitalized into this asset."},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.vendors (the vendor this fixed asset belongs to or points at)."},{"type":"null"}]},"bill_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor bill the purchase came from, when it was bought outright."},{"type":"null"}]},"asset_gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Fixed-asset GL account carrying the cost (Land, Buildings and Improvements, Furniture Fixtures and Appliances...)."},"accumulated_depreciation_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Contra-asset account credited by depreciation (ACCUMULATED_DEPRECIATION by default)."},{"type":"null"}]},"depreciation_expense_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Expense account debited by depreciation (DEPRECIATION_EXPENSE by default, below NOI)."},{"type":"null"}]},"acquired_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Acquired date of the fixed asset."},"placed_in_service_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Placed in service date of the fixed asset."},{"type":"null"}]},"acquisition_cost_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Capitalized cost (depreciable base before salvage) in minor units."},"salvage_value_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Estimated value at the end of the useful life; not depreciated."},"useful_life_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Depreciable life in months (e.g. 330 for 27.5-year residential rental property)."},{"type":"null"}]},"depreciation_method":{"type":"string","enum":["straight_line","declining_balance","sum_of_years_digits","none"],"description":"Depreciation method of the fixed asset. One of: straight_line, declining_balance, sum_of_years_digits, none."},"depreciation_convention":{"type":"string","enum":["full_month","mid_month","half_year"],"description":"Depreciation convention of the fixed asset. One of: full_month, mid_month, half_year."},"declining_balance_factor":{"anyOf":[{"type":"number","description":"Declining-balance multiple: 2 = double declining, 1.5 = 150%."},{"type":"null"}]},"acquisition_journal_entry_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Entry that put the cost in the asset account when the register posted it (Dr asset / Cr funding account). Null when the cost was booked elsewhere (a bill coded to the asset account)."},{"type":"null"}]},"disposed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Disposed date of the fixed asset."},{"type":"null"}]},"disposal_type":{"anyOf":[{"type":"string","enum":["sale","retirement","casualty","transfer"],"description":"Disposal type of the fixed asset. One of: sale, retirement, casualty, transfer."},{"type":"null"}]},"disposal_proceeds_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cash or receivable received on disposal."},{"type":"null"}]},"disposal_journal_entry_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Disposal entry: removes cost and accumulated depreciation and books the gain or loss."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"Notes of the fixed asset."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/floor_plans/{id}":{"get":{"operationId":"get_floor_plans_row","summary":"Get a floor plan","description":"Unit types of a property (e.g. \"2x2 Willow\"). Units reference a floor plan for default beds/baths/sqft and marketing; unit columns override.\n\nOne row of floor plans by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Floor plans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_floor_plans_row","summary":"Update a floor plan","description":"Unit types of a property (e.g. \"2x2 Willow\"). Units reference a floor plan for default beds/baths/sqft and marketing; unit columns override.\n\nChanges the given fields of one row of floor plans and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Floor plans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"bedrooms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = studio."},"bathrooms":{"type":"number","description":"Full baths count 1, half baths 0.5 (e.g. 1.5)."},"sqft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sqft"},{"type":"null"}]},"market_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current asking rent for this floor plan per month; history in market_rent_history."},{"type":"null"}]},"deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deposit cents"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"image_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"Floor plan drawing in Supabase Storage (bucket property-photos)."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/generated_documents":{"get":{"operationId":"list_generated_documents","summary":"List generated documents","description":"A document rendered from a template: the exact template version, the source record (one typed FK column per context type, no polymorphic id) and the frozen merge data. The executed copy of a signed document is re-rendered from this version and snapshot, so it matches what signers reviewed.\n\nPages through the generated documents table of the organization, oldest first. Filters: id, template_id, template_version_id, document_id, context_type, lease_id, rental_application_id, service_request_id, work_order_id, inspection_id, bill_id, receipt_id, owner_statement_id, owner_id, vendor_id, contact_id, property_id, record_id, generated_by.\n\nNeeds one of: documents.read.","tags":["Generated documents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"template_id","in":"query","required":false,"schema":{"description":"Only rows whose template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose template_id equals this."},{"name":"template_version_id","in":"query","required":false,"schema":{"description":"Only rows whose template_version_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose template_version_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"context_type","in":"query","required":false,"schema":{"description":"Only rows whose context_type equals this.","type":"string","enum":["lease","rental_application","service_request","work_order","inspection","bill","receipt","owner_statement","owner","vendor","contact","property"]},"description":"Only rows whose context_type equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"owner_statement_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_statement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_statement_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"record_id","in":"query","required":false,"schema":{"description":"Only rows whose record_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose record_id equals this."},{"name":"generated_by","in":"query","required":false,"schema":{"description":"Only rows whose generated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose generated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/generated_documents/{id}":{"get":{"operationId":"get_generated_documents_row","summary":"Get a generated document","description":"A document rendered from a template: the exact template version, the source record (one typed FK column per context type, no polymorphic id) and the frozen merge data. The executed copy of a signed document is re-rendered from this version and snapshot, so it matches what signers reviewed.\n\nOne row of generated documents by id, with every column the API shows.\n\nNeeds one of: documents.read.","tags":["Generated documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/gl_account_tree_groups":{"get":{"operationId":"list_gl_account_tree_groups","summary":"List gl account tree groups","description":"One reporting line of an account tree, such as \"Repairs and maintenance: elevators\". Shown in sort_order.\n\nPages through the gl account tree groups table of the organization, oldest first. Filters: id, tree_id.\n\nNeeds one of: gl.read, gl.write.","tags":["GL account tree groups"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"tree_id","in":"query","required":false,"schema":{"description":"Only rows whose tree_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tree_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]},"post":{"operationId":"create_gl_account_tree_groups_row","summary":"Create a gl account tree group","description":"One reporting line of an account tree, such as \"Repairs and maintenance: elevators\". Shown in sort_order.\n\nInserts one row of gl account tree groups in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write.","tags":["GL account tree groups"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tree_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tree id"},"name":{"type":"string","maxLength":100000,"description":"name"},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"}},"required":["tree_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/gl_account_tree_groups/{id}":{"get":{"operationId":"get_gl_account_tree_groups_row","summary":"Get a gl account tree group","description":"One reporting line of an account tree, such as \"Repairs and maintenance: elevators\". Shown in sort_order.\n\nOne row of gl account tree groups by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write.","tags":["GL account tree groups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]},"delete":{"operationId":"delete_gl_account_tree_groups_row","summary":"Delete a gl account tree group","description":"One reporting line of an account tree, such as \"Repairs and maintenance: elevators\". Shown in sort_order.\n\nDeletes one row of gl account tree groups. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write.","tags":["GL account tree groups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/gl_account_trees":{"get":{"operationId":"list_gl_account_trees","summary":"List gl account trees","description":"A named way to group the chart of accounts for one audience (executives, asset managers, a lender). Each income and expense account sits in at most one group of a tree; the amounts always come from the same journal lines.\n\nPages through the gl account trees table of the organization, oldest first. Filters: id, created_by.\n\nNeeds one of: gl.read, gl.write.","tags":["GL account trees"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]},"post":{"operationId":"create_gl_account_trees_row","summary":"Create a gl account tree","description":"A named way to group the chart of accounts for one audience (executives, asset managers, a lender). Each income and expense account sits in at most one group of a tree; the amounts always come from the same journal lines.\n\nInserts one row of gl account trees in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write.","tags":["GL account trees"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/gl_account_trees/{id}":{"get":{"operationId":"get_gl_account_trees_row","summary":"Get a gl account tree","description":"A named way to group the chart of accounts for one audience (executives, asset managers, a lender). Each income and expense account sits in at most one group of a tree; the amounts always come from the same journal lines.\n\nOne row of gl account trees by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write.","tags":["GL account trees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write"]},"delete":{"operationId":"delete_gl_account_trees_row","summary":"Delete a gl account tree","description":"A named way to group the chart of accounts for one audience (executives, asset managers, a lender). Each income and expense account sits in at most one group of a tree; the amounts always come from the same journal lines.\n\nDeletes one row of gl account trees. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write.","tags":["GL account trees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/gl_accounts/{id}":{"get":{"operationId":"get_gl_accounts_row","summary":"Get a gl account","description":"Per-organization chart of accounts (general ledger accounts), hierarchical via parent_id. accounts the code posts to are found by system_code. Balances are never stored: sum journal_lines.amount_cents.\n\nOne row of gl accounts by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["GL accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]},"patch":{"operationId":"update_gl_accounts_row","summary":"Update a gl account","description":"Per-organization chart of accounts (general ledger accounts), hierarchical via parent_id. accounts the code posts to are found by system_code. Balances are never stored: sum journal_lines.amount_cents.\n\nChanges the given fields of one row of gl accounts and returns it. Fields left out stay as they are.\n\nNeeds one of: gl.setup.","tags":["GL accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Header (summary) account this account rolls up into. Parent has the same account_type and is_header = true."},{"type":"null"}]},"number":{"type":"string","maxLength":100000,"description":"Account number shown to users and used for ordering (e.g. 1010). Unique per org."},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"account_type":{"type":"string","enum":["asset","liability","equity","income","expense"],"description":"account type"},"account_subtype":{"type":"string","enum":["bank","undeposited_funds","processor_clearing","accounts_receivable","other_receivable","prepaid_expense","other_current_asset","fixed_asset","accumulated_depreciation","other_asset","due_to_from","accounts_payable","security_deposits_held","prepaid_rent","owner_reserves_held","sales_tax_payable","accrued_liability","other_current_liability","long_term_liability","owner_equity","owner_contributions","owner_distributions","retained_earnings","opening_balance_equity","rental_income","fee_income","other_income","contra_income","operating_expense","repairs_maintenance","utilities","bad_debt","financing_expense","depreciation_expense","non_operating_expense","other"],"description":"Finer classification driving behaviour and reports; must be valid for account_type (see type comment for the NOI rule)."},"normal_balance":{"type":"string","enum":["debit","credit"],"description":"debit for asset/expense, credit for liability/equity/income; flipped when is_contra. Enforced by a check constraint."},"is_contra":{"type":"boolean","description":"Contra account: normal balance opposite to its type (Concessions and Vacancy loss against income, Owner distributions against equity, Accumulated depreciation against assets)."},"system_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stable code the application posts to (AR_TENANTS, RENT_INCOME, PREPAID_RENT, ...). Unique per org; resolve with ledger.account_id(org_id, system_code). Null for user-created accounts."},{"type":"null"}]},"is_system":{"type":"boolean","description":"Seeded by the platform; system_code and nature cannot be changed by users."},"is_header":{"type":"boolean","description":"Summary account that only groups children. Journal lines cannot be posted to it; its balance is the sum of its descendants."},"is_trust":{"type":"boolean","description":"Holds client (owner/tenant) money in trust. Every journal line on a trust account must carry property_id (the fund)."},"is_cash":{"type":"boolean","description":"Cash or cash equivalent (bank accounts, undeposited funds, processor clearing). Used by cash-flow reports."},"requires_property":{"type":"boolean","description":"Journal lines on this account must carry property_id (true for all trust accounts and per-property accounts like AR_TENANTS, owner equity, DUE_TO_MANAGEMENT)."},"allows_manual_entries":{"type":"boolean","description":"False for subledger control accounts (AR, AP, undeposited funds, processor clearing, deposits held, prepaid rent) that only domain functions may post to; manual journal entries to them are rejected except opening balances."},"is_active":{"type":"boolean","description":"Inactive accounts accept no new postings (reversals and year-end closing still allowed)."},"tax_line":{"anyOf":[{"type":"string","maxLength":100000,"description":"Tax form mapping for owner tax reports, e.g. schedule_e_line_14 (repairs)."},{"type":"null"}]},"statement_section":{"anyOf":[{"type":"string","maxLength":100000,"description":"Section of the property operating statement (budget_comparison, statement_12_month): residential_income, commercial_income, other_income, vacancy_concessions, payroll, repairs_maintenance, general_administrative, management_fee, contract_services, utilities, taxes, insurance, debt_service, escrows_r"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/guest_passes/{id}":{"get":{"operationId":"get_guest_passes_row","summary":"Get a guest pass","description":"Pre-authorization a resident (or staff) issues for a guest, vendor or delivery: the gate or front desk checks the access code against it. Uses are counted from visitor_logs.\n\nOne row of guest passes by id, with every column the API shows.\n\nNeeds one of: residents.read.","tags":["Guest passes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/hap_abatements":{"get":{"operationId":"list_hap_abatements","summary":"List hap abatements","description":"A unit whose housing assistance payment the agency stopped (abated), usually after a failed inspection: the corrective work order, the reinspection, the agency clearance and the restored payment are separate steps. monthly_amount_cents is the subsidy lost per month; recovered_cents what the agency later paid back.\n\nPages through the hap abatements table of the organization, oldest first. Filters: id, property_id, unit_id, lease_id, hap_contract_id, effective_on, failed_inspection_id, work_order_id, reinspection_id, reinspection_on, status, cleared_on, restored_on, owner_user_id, next_follow_up_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP abatements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"failed_inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose failed_inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose failed_inspection_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"reinspection_id","in":"query","required":false,"schema":{"description":"Only rows whose reinspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reinspection_id equals this."},{"name":"reinspection_on","in":"query","required":false,"schema":{"description":"Only rows whose reinspection_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reinspection_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["abated","repair_in_progress","reinspection_scheduled","passed_reinspection","cleared_by_agency","payment_restored","closed_unrecovered"]},"description":"Only rows whose status equals this."},{"name":"cleared_on","in":"query","required":false,"schema":{"description":"Only rows whose cleared_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cleared_on equals this."},{"name":"restored_on","in":"query","required":false,"schema":{"description":"Only rows whose restored_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose restored_on equals this."},{"name":"owner_user_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_user_id equals this."},{"name":"next_follow_up_on","in":"query","required":false,"schema":{"description":"Only rows whose next_follow_up_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_follow_up_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_hap_abatements_row","summary":"Create a hap abatement","description":"A unit whose housing assistance payment the agency stopped (abated), usually after a failed inspection: the corrective work order, the reinspection, the agency clearance and the restored payment are separate steps. monthly_amount_cents is the subsidy lost per month; recovered_cents what the agency later paid back.\n\nInserts one row of hap abatements in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["HAP abatements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"hap_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},{"type":"null"}]},"agency":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency"},{"type":"null"}]},"reason":{"type":"string","maxLength":100000,"description":"reason"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"monthly_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Subsidy stopped per month while abated."},"failed_inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"failed inspection id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"reinspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"reinspection id"},{"type":"null"}]},"reinspection_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reinspection on"},{"type":"null"}]},"cleared_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"cleared on"},{"type":"null"}]},"restored_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"restored on"},{"type":"null"}]},"recovered_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Abated subsidy the agency paid back after clearance."},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"next_follow_up_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"next follow up on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","unit_id","reason","effective_on","monthly_amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/hap_abatements/{id}":{"get":{"operationId":"get_hap_abatements_row","summary":"Get a hap abatement","description":"A unit whose housing assistance payment the agency stopped (abated), usually after a failed inspection: the corrective work order, the reinspection, the agency clearance and the restored payment are separate steps. monthly_amount_cents is the subsidy lost per month; recovered_cents what the agency later paid back.\n\nOne row of hap abatements by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP abatements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_hap_abatements_row","summary":"Update a hap abatement","description":"A unit whose housing assistance payment the agency stopped (abated), usually after a failed inspection: the corrective work order, the reinspection, the agency clearance and the restored payment are separate steps. monthly_amount_cents is the subsidy lost per month; recovered_cents what the agency later paid back.\n\nChanges the given fields of one row of hap abatements and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["HAP abatements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"hap_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},{"type":"null"}]},"agency":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency"},{"type":"null"}]},"reason":{"type":"string","maxLength":100000,"description":"reason"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"monthly_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Subsidy stopped per month while abated."},"failed_inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"failed inspection id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"reinspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"reinspection id"},{"type":"null"}]},"reinspection_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reinspection on"},{"type":"null"}]},"cleared_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"cleared on"},{"type":"null"}]},"restored_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"restored on"},{"type":"null"}]},"recovered_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Abated subsidy the agency paid back after clearance."},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"next_follow_up_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"next follow up on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_hap_abatements_row","summary":"Delete a hap abatement","description":"A unit whose housing assistance payment the agency stopped (abated), usually after a failed inspection: the corrective work order, the reinspection, the agency clearance and the restored payment are separate steps. monthly_amount_cents is the subsidy lost per month; recovered_cents what the agency later paid back.\n\nDeletes one row of hap abatements. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["HAP abatements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/hap_contract_renewals":{"get":{"operationId":"list_hap_contract_renewals","summary":"List hap contract renewals","description":"The renewal of one expiring project-based Section 8 HAP contract: the MAHRAA option, the key dates (owner one-year notice, renewal request 120 days before expiry), the pipeline status, the rent comparability study used, and the new contract once executed (hap_contracts.renewed_from_hap_contract_id points back to the expiring one).\n\nPages through the hap contract renewals table of the organization, oldest first. Filters: id, property_id, hap_contract_id, renewal_option, status, owner_notice_due_on, renewal_request_due_on, rcs_ordered_on, owner_notice_sent_on, submitted_on, approved_on, executed_on, rent_comparability_study_id, renewed_hap_contract_id, owner_notice_item_id, renewal_request_item_id, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP contract renewals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"renewal_option","in":"query","required":false,"schema":{"description":"Only rows whose renewal_option equals this.","type":"string","enum":["mark_up_to_market","below_market","mark_to_market","exempt","preservation"]},"description":"Only rows whose renewal_option equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["planning","rcs_ordered","owner_notice_sent","submitted","approved","executed","opted_out","withdrawn"]},"description":"Only rows whose status equals this."},{"name":"owner_notice_due_on","in":"query","required":false,"schema":{"description":"Only rows whose owner_notice_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose owner_notice_due_on equals this."},{"name":"renewal_request_due_on","in":"query","required":false,"schema":{"description":"Only rows whose renewal_request_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose renewal_request_due_on equals this."},{"name":"rcs_ordered_on","in":"query","required":false,"schema":{"description":"Only rows whose rcs_ordered_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose rcs_ordered_on equals this."},{"name":"owner_notice_sent_on","in":"query","required":false,"schema":{"description":"Only rows whose owner_notice_sent_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose owner_notice_sent_on equals this."},{"name":"submitted_on","in":"query","required":false,"schema":{"description":"Only rows whose submitted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose submitted_on equals this."},{"name":"approved_on","in":"query","required":false,"schema":{"description":"Only rows whose approved_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose approved_on equals this."},{"name":"executed_on","in":"query","required":false,"schema":{"description":"Only rows whose executed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose executed_on equals this."},{"name":"rent_comparability_study_id","in":"query","required":false,"schema":{"description":"Only rows whose rent_comparability_study_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rent_comparability_study_id equals this."},{"name":"renewed_hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose renewed_hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renewed_hap_contract_id equals this."},{"name":"owner_notice_item_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_notice_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_notice_item_id equals this."},{"name":"renewal_request_item_id","in":"query","required":false,"schema":{"description":"Only rows whose renewal_request_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renewal_request_item_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/hap_contract_renewals/{id}":{"get":{"operationId":"get_hap_contract_renewals_row","summary":"Get a hap contract renewal","description":"The renewal of one expiring project-based Section 8 HAP contract: the MAHRAA option, the key dates (owner one-year notice, renewal request 120 days before expiry), the pipeline status, the rent comparability study used, and the new contract once executed (hap_contracts.renewed_from_hap_contract_id points back to the expiring one).\n\nOne row of hap contract renewals by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP contract renewals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/hap_contract_units":{"get":{"operationId":"list_hap_contract_units","summary":"List hap contract units","description":"Units covered by a HAP contract and their approved monthly contract rent (rent-to-owner), effective dated (annual rent adjustments, OCAF).\n\nPages through the hap contract units table of the organization, oldest first. Filters: id, hap_contract_id, unit_id, effective_on, ends_on.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP contract units"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_hap_contract_units_row","summary":"Create a hap contract unit","description":"Units covered by a HAP contract and their approved monthly contract rent (rent-to-owner), effective dated (annual rent adjustments, OCAF).\n\nInserts one row of hap contract units in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["HAP contract units"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hap_contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"contract_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly contract rent approved by HUD / the PHA: tenant rent + HAP always equals this."},"utility_allowance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"utility allowance cents"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":["hap_contract_id","unit_id","contract_rent_cents","effective_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/hap_contract_units/{id}":{"get":{"operationId":"get_hap_contract_units_row","summary":"Get a hap contract unit","description":"Units covered by a HAP contract and their approved monthly contract rent (rent-to-owner), effective dated (annual rent adjustments, OCAF).\n\nOne row of hap contract units by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP contract units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_hap_contract_units_row","summary":"Update a hap contract unit","description":"Units covered by a HAP contract and their approved monthly contract rent (rent-to-owner), effective dated (annual rent adjustments, OCAF).\n\nChanges the given fields of one row of hap contract units and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["HAP contract units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"hap_contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"contract_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly contract rent approved by HUD / the PHA: tenant rent + HAP always equals this."},"utility_allowance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"utility allowance cents"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_hap_contract_units_row","summary":"Delete a hap contract unit","description":"Units covered by a HAP contract and their approved monthly contract rent (rent-to-owner), effective dated (annual rent adjustments, OCAF).\n\nDeletes one row of hap contract units. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["HAP contract units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/hap_contracts/{id}":{"get":{"operationId":"get_hap_contracts_row","summary":"Get a hap contract","description":"Housing Assistance Payments contract with a housing authority / HUD contract administrator. Project-based (Section 8 PBRA, PBV, RD) contracts cover many units (hap_contract_units); a tenant-based HCV contract covers one lease (lease_id). The housing authority is the payer of the subsidy portion of rent (subsidy charges carry hap_contract_id).\n\nOne row of hap contracts by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP contracts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_hap_contracts_row","summary":"Update a hap contract","description":"Housing Assistance Payments contract with a housing authority / HUD contract administrator. Project-based (Section 8 PBRA, PBV, RD) contracts cover many units (hap_contract_units); a tenant-based HCV contract covers one lease (lease_id). The housing authority is the payer of the subsidy portion of rent (subsidy charges carry hap_contract_id).\n\nChanges the given fields of one row of hap contracts and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["HAP contracts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"contract_type":{"type":"string","enum":["section8_pbra","hcv","pbv","rd_rental_assistance","other"],"description":"contract type"},"housing_authority_contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The PHA / contract administrator (company contact) that pays HAP; it is the payer on subsidy charges and receipts."},"housing_authority_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Same agency as a vendor, when the org also pays it (repayments of overpaid HAP, fees)."},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Tenant-based voucher (HCV) contracts: the assisted lease."},{"type":"null"}]},"contract_number":{"type":"string","maxLength":100000,"description":"contract number"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"payment_standard_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"HCV: the PHA payment standard for the unit size (monthly); HAP = min(payment standard, gross rent) - TTP."},{"type":"null"}]},"contracted_unit_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"contracted unit count"},{"type":"null"}]},"renewed_from_hap_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renewed from hap contract id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"subsidy_payer_type":{"anyOf":[{"type":"string","enum":["hud_section8","nycha_section8","hpd_section8","cityfheps","feps","hra_one_shot","other"],"description":"Which agency program pays this subsidy (lockbox matching recognizes its checks by payer name). Null on contracts made before 2026-11-18: read the type from contract_type."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_hap_contracts_row","summary":"Delete a hap contract","description":"Housing Assistance Payments contract with a housing authority / HUD contract administrator. Project-based (Section 8 PBRA, PBV, RD) contracts cover many units (hap_contract_units); a tenant-based HCV contract covers one lease (lease_id). The housing authority is the payer of the subsidy portion of rent (subsidy charges carry hap_contract_id).\n\nDeletes one row of hap contracts. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["HAP contracts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/hap_payment_item_recoveries":{"get":{"operationId":"list_hap_payment_item_recoveries","summary":"List hap payment item recoveries","description":"How a negative HAP payment item was matched: subsidy previously paid by the housing authority on a subsidy charge is taken back (the allocation is reduced and the receipt partly refunded against the netted payment's cash) and the charge is credited by the same amount (Dr SUBSIDY_RENT_INCOME / Cr AR_SUBSIDY). Net effect: subsidy income and cash down, the subsidy charge settled by a credit instead of a payment.\n\nPages through the hap payment item recoveries table of the organization, oldest first. Filters: id, hap_payment_item_id, charge_id, receipt_id, receipt_refund_journal_entry_id, credit_id.\n\nNeeds one of: affordable.read.","tags":["HAP payment item recoveries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"hap_payment_item_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_payment_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_payment_item_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"receipt_refund_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_refund_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_refund_journal_entry_id equals this."},{"name":"credit_id","in":"query","required":false,"schema":{"description":"Only rows whose credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose credit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/hap_payment_item_recoveries/{id}":{"get":{"operationId":"get_hap_payment_item_recoveries_row","summary":"Get a hap payment item recovery","description":"How a negative HAP payment item was matched: subsidy previously paid by the housing authority on a subsidy charge is taken back (the allocation is reduced and the receipt partly refunded against the netted payment's cash) and the charge is credited by the same amount (Dr SUBSIDY_RENT_INCOME / Cr AR_SUBSIDY). Net effect: subsidy income and cash down, the subsidy charge settled by a credit instead of a payment.\n\nOne row of hap payment item recoveries by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["HAP payment item recoveries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/hap_payment_items":{"get":{"operationId":"list_hap_payment_items","summary":"List hap payment items","description":"Per-lease breakdown of a HAP payment (the housing authority's remittance detail). Positive items post receipts against the lease's open subsidy charges (any excess is held as the housing authority's unapplied money, not on the lease); negative items (retroactive adjustments, move-out recoveries) take back subsidy previously paid on the lease: the paid subsidy charge is credited instead (hap_payment_item_recoveries), so it never shows as open.\n\nPages through the hap payment items table of the organization, oldest first. Filters: id, hap_payment_id, lease_id, unit_id, household_certification_id, is_adjustment, receipt_id, unapplied_receipt_id, journal_entry_id.\n\nNeeds one of: affordable.read.","tags":["HAP payment items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"hap_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_payment_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"is_adjustment","in":"query","required":false,"schema":{"description":"Only rows whose is_adjustment equals this.","type":"boolean"},"description":"Only rows whose is_adjustment equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"unapplied_receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose unapplied_receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unapplied_receipt_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/hap_payment_items/{id}":{"get":{"operationId":"get_hap_payment_items_row","summary":"Get a hap payment item","description":"Per-lease breakdown of a HAP payment (the housing authority's remittance detail). Positive items post receipts against the lease's open subsidy charges (any excess is held as the housing authority's unapplied money, not on the lease); negative items (retroactive adjustments, move-out recoveries) take back subsidy previously paid on the lease: the paid subsidy charge is credited instead (hap_payment_item_recoveries), so it never shows as open.\n\nOne row of hap payment items by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["HAP payment items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/hap_payments":{"get":{"operationId":"list_hap_payments","summary":"List hap payments","description":"A HAP / voucher payment from a housing authority for a month (one ACH or check typically covers many units). Itemized per lease in hap_payment_items; each item clears that lease's subsidy charges (AR_SUBSIDY), never the tenant's own balance.\n\nPages through the hap payments table of the organization, oldest first. Filters: id, hap_contract_id, housing_authority_contact_id, property_id, period_month, received_on, status, receipt_id, created_by.\n\nNeeds one of: affordable.read.","tags":["HAP payments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"housing_authority_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_authority_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_authority_contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"period_month","in":"query","required":false,"schema":{"description":"Only rows whose period_month equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_month equals this."},{"name":"received_on","in":"query","required":false,"schema":{"description":"Only rows whose received_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose received_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["received","applied","reversed"]},"description":"Only rows whose status equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/hap_payments/{id}":{"get":{"operationId":"get_hap_payments_row","summary":"Get a hap payment","description":"A HAP / voucher payment from a housing authority for a month (one ACH or check typically covers many units). Itemized per lease in hap_payment_items; each item clears that lease's subsidy charges (AR_SUBSIDY), never the tenant's own balance.\n\nOne row of hap payments by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["HAP payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/hap_rent_schedule_lines":{"get":{"operationId":"list_hap_rent_schedule_lines","summary":"List hap rent schedule lines","description":"One unit type on a rent schedule: the bedroom size and current contract rent of a group of units, how many units, and the new contract rent.\n\nPages through the hap rent schedule lines table of the organization, oldest first. Filters: id, property_id, hap_rent_schedule_id.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP rent schedule lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"hap_rent_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_rent_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_rent_schedule_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/hap_rent_schedule_lines/{id}":{"get":{"operationId":"get_hap_rent_schedule_lines_row","summary":"Get a hap rent schedule line","description":"One unit type on a rent schedule: the bedroom size and current contract rent of a group of units, how many units, and the new contract rent.\n\nOne row of hap rent schedule lines by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP rent schedule lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/hap_rent_schedules":{"get":{"operationId":"list_hap_rent_schedules","summary":"List hap rent schedules","description":"A HAP contract rent schedule (HUD-92458 style): new monthly contract rents per unit type from effective_on. An OCAF schedule multiplies current rents by the year's published factor for the state; approving it writes the new rents to hap_contract_units. A renewal schedule records the rents of a renewed contract.\n\nPages through the hap rent schedules table of the organization, oldest first. Filters: id, property_id, hap_contract_id, basis, status, effective_on, hap_contract_renewal_id, approved_by, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP rent schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["ocaf","renewal","other"]},"description":"Only rows whose basis equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","approved"]},"description":"Only rows whose status equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"hap_contract_renewal_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_renewal_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_renewal_id equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/hap_rent_schedules/{id}":{"get":{"operationId":"get_hap_rent_schedules_row","summary":"Get a hap rent schedule","description":"A HAP contract rent schedule (HUD-92458 style): new monthly contract rents per unit type from effective_on. An OCAF schedule multiplies current rents by the year's published factor for the state; approving it writes the new rents to hap_contract_units. A renewal schedule records the rents of a renewed contract.\n\nOne row of hap rent schedules by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["HAP rent schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"delete":{"operationId":"delete_hap_rent_schedules_row","summary":"Delete a hap rent schedule","description":"A HAP contract rent schedule (HUD-92458 style): new monthly contract rents per unit type from effective_on. An OCAF schedule multiplies current rents by the year's published factor for the state; approving it writes the new rents to hap_contract_units. A renewal schedule records the rents of a renewed contract.\n\nDeletes one row of hap rent schedules. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["HAP rent schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/home_guide_entries":{"get":{"operationId":"list_home_guide_entries","summary":"List home guide entries","description":"A resident's home guide: what to know about living at a property (unit_id null) or in one unit (wifi, trash day, parking, mail, laundry, appliances, codes). Residents read the entries for their lease's property and unit in the portal and the move-in plan.\n\nPages through the home guide entries table of the organization, oldest first. Filters: id, property_id, unit_id, category, is_sensitive, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Home guide entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"category","in":"query","required":false,"schema":{"description":"Only rows whose category equals this.","type":"string","enum":["access","parking","trash","utilities","internet","laundry","mail","amenities","appliances","safety","rules","contacts","other"]},"description":"Only rows whose category equals this."},{"name":"is_sensitive","in":"query","required":false,"schema":{"description":"Only rows whose is_sensitive equals this.","type":"boolean"},"description":"Only rows whose is_sensitive equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_home_guide_entries_row","summary":"Create a home guide entry","description":"A resident's home guide: what to know about living at a property (unit_id null) or in one unit (wifi, trash day, parking, mail, laundry, appliances, codes). Residents read the entries for their lease's property and unit in the portal and the move-in plan.\n\nInserts one row of home guide entries in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Home guide entries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set for an entry about one unit only (its wifi, its parking space); null for the whole property."},{"type":"null"}]},"category":{"type":"string","enum":["access","parking","trash","utilities","internet","laundry","mail","amenities","appliances","safety","rules","contacts","other"],"description":"category"},"title":{"type":"string","maxLength":100000,"description":"title"},"body":{"type":"string","maxLength":100000,"description":"body"},"is_sensitive":{"type":"boolean","description":"Door, gate or lockbox codes and the like: residents see it only from their lease's start date."},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","title","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/home_guide_entries/{id}":{"get":{"operationId":"get_home_guide_entries_row","summary":"Get a home guide entry","description":"A resident's home guide: what to know about living at a property (unit_id null) or in one unit (wifi, trash day, parking, mail, laundry, appliances, codes). Residents read the entries for their lease's property and unit in the portal and the move-in plan.\n\nOne row of home guide entries by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Home guide entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_home_guide_entries_row","summary":"Update a home guide entry","description":"A resident's home guide: what to know about living at a property (unit_id null) or in one unit (wifi, trash day, parking, mail, laundry, appliances, codes). Residents read the entries for their lease's property and unit in the portal and the move-in plan.\n\nChanges the given fields of one row of home guide entries and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Home guide entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Set for an entry about one unit only (its wifi, its parking space); null for the whole property."},{"type":"null"}]},"category":{"type":"string","enum":["access","parking","trash","utilities","internet","laundry","mail","amenities","appliances","safety","rules","contacts","other"],"description":"category"},"title":{"type":"string","maxLength":100000,"description":"title"},"body":{"type":"string","maxLength":100000,"description":"body"},"is_sensitive":{"type":"boolean","description":"Door, gate or lockbox codes and the like: residents see it only from their lease's start date."},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/home_purchase_contract_charges":{"get":{"operationId":"list_home_purchase_contract_charges","summary":"List home purchase contract charges","description":"Every charge of a home purchase contract, with its role. The one-time charges are linked when the contract posts them; each RTO_EQUITY charge is linked as it posts to the one active rent-to-own on its lot whose buyer is on the lease, so a charge belongs to one contract only. Insert-only.\n\nPages through the home purchase contract charges table of the organization, oldest first. Filters: id, contract_id, property_id, charge_id, installment_id.\n\nNeeds one of: receivables.read.","tags":["Home purchase contract charges"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contract_id","in":"query","required":false,"schema":{"description":"Only rows whose contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contract_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"installment_id","in":"query","required":false,"schema":{"description":"Only rows whose installment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose installment_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contract_charges/{id}":{"get":{"operationId":"get_home_purchase_contract_charges_row","summary":"Get a home purchase contract charge","description":"Every charge of a home purchase contract, with its role. The one-time charges are linked when the contract posts them; each RTO_EQUITY charge is linked as it posts to the one active rent-to-own on its lot whose buyer is on the lease, so a charge belongs to one contract only. Insert-only.\n\nOne row of home purchase contract charges by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Home purchase contract charges"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contract_credits":{"get":{"operationId":"list_home_purchase_contract_credits","summary":"List home purchase contract credits","description":"Lease credits a home purchase contract posted, with their role. equity_refund: rent-to-own equity given back to the buyer as a credit on the lot lease; it lowers the equity counted toward the price. Insert-only.\n\nPages through the home purchase contract credits table of the organization, oldest first. Filters: id, contract_id, property_id, credit_id.\n\nNeeds one of: receivables.read.","tags":["Home purchase contract credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contract_id","in":"query","required":false,"schema":{"description":"Only rows whose contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contract_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"credit_id","in":"query","required":false,"schema":{"description":"Only rows whose credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose credit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contract_credits/{id}":{"get":{"operationId":"get_home_purchase_contract_credits_row","summary":"Get a home purchase contract credit","description":"Lease credits a home purchase contract posted, with their role. equity_refund: rent-to-own equity given back to the buyer as a credit on the lot lease; it lowers the equity counted toward the price. Insert-only.\n\nOne row of home purchase contract credits by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Home purchase contract credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contract_events":{"get":{"operationId":"list_home_purchase_contract_events","summary":"List home purchase contract events","description":"Insert-only history of a home purchase contract: status changes, extra principal, payoff, the exercised option and staff notes. Written only by the home purchase RPCs.\n\nPages through the home purchase contract events table of the organization, oldest first. Filters: id, contract_id, property_id, kind, event_on, from_status, to_status, created_by.\n\nNeeds one of: receivables.read.","tags":["Home purchase contract events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contract_id","in":"query","required":false,"schema":{"description":"Only rows whose contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contract_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["created","updated","activated","extra_principal","payoff","exercised","converted","completed","defaulted","canceled","note","amended","equity_refunded","reinstated"]},"description":"Only rows whose kind equals this."},{"name":"event_on","in":"query","required":false,"schema":{"description":"Only rows whose event_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose event_on equals this."},{"name":"from_status","in":"query","required":false,"schema":{"description":"Only rows whose from_status equals this.","type":"string","enum":["draft","active","completed","defaulted","canceled","converted"]},"description":"Only rows whose from_status equals this."},{"name":"to_status","in":"query","required":false,"schema":{"description":"Only rows whose to_status equals this.","type":"string","enum":["draft","active","completed","defaulted","canceled","converted"]},"description":"Only rows whose to_status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contract_events/{id}":{"get":{"operationId":"get_home_purchase_contract_events_row","summary":"Get a home purchase contract event","description":"Insert-only history of a home purchase contract: status changes, extra principal, payoff, the exercised option and staff notes. Written only by the home purchase RPCs.\n\nOne row of home purchase contract events by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Home purchase contract events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contracts":{"get":{"operationId":"list_home_purchase_contracts","summary":"List home purchase contracts","description":"A resident buying a park-owned home from the park: rent-to-own (monthly equity payments plus an optional option fee, counted toward the price when the option is exercised) or seller financing (a down payment and a fixed monthly schedule of principal and interest). Billing runs through the buyer's lot lease as ordinary charges. Balances (equity paid, principal remaining) are derived from the contract's charges, never stored. Written only through the home purchase RPCs; read with receivables.read on the property.\n\nPages through the home purchase contracts table of the organization, oldest first. Filters: id, property_id, unit_id, park_home_id, lease_id, buyer_contact_id, kind, status, contract_on, start_on, purchase_by, first_payment_on, converted_from_contract_id, recurring_charge_id, activated_on, exercised_on, completed_on, title_transferred_on, ended_on, created_by.\n\nNeeds one of: receivables.read.","tags":["Home purchase contracts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"park_home_id","in":"query","required":false,"schema":{"description":"Only rows whose park_home_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose park_home_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"buyer_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose buyer_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose buyer_contact_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["rent_to_own","seller_financed"]},"description":"Only rows whose kind equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","active","completed","defaulted","canceled","converted"]},"description":"Only rows whose status equals this."},{"name":"contract_on","in":"query","required":false,"schema":{"description":"Only rows whose contract_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose contract_on equals this."},{"name":"start_on","in":"query","required":false,"schema":{"description":"Only rows whose start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose start_on equals this."},{"name":"purchase_by","in":"query","required":false,"schema":{"description":"Only rows whose purchase_by equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose purchase_by equals this."},{"name":"first_payment_on","in":"query","required":false,"schema":{"description":"Only rows whose first_payment_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose first_payment_on equals this."},{"name":"converted_from_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose converted_from_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose converted_from_contract_id equals this."},{"name":"recurring_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_charge_id equals this."},{"name":"activated_on","in":"query","required":false,"schema":{"description":"Only rows whose activated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose activated_on equals this."},{"name":"exercised_on","in":"query","required":false,"schema":{"description":"Only rows whose exercised_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose exercised_on equals this."},{"name":"completed_on","in":"query","required":false,"schema":{"description":"Only rows whose completed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose completed_on equals this."},{"name":"title_transferred_on","in":"query","required":false,"schema":{"description":"Only rows whose title_transferred_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose title_transferred_on equals this."},{"name":"ended_on","in":"query","required":false,"schema":{"description":"Only rows whose ended_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ended_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_contracts/{id}":{"get":{"operationId":"get_home_purchase_contracts_row","summary":"Get a home purchase contract","description":"A resident buying a park-owned home from the park: rent-to-own (monthly equity payments plus an optional option fee, counted toward the price when the option is exercised) or seller financing (a down payment and a fixed monthly schedule of principal and interest). Billing runs through the buyer's lot lease as ordinary charges. Balances (equity paid, principal remaining) are derived from the contract's charges, never stored. Written only through the home purchase RPCs; read with receivables.read on the property.\n\nOne row of home purchase contracts by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Home purchase contracts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_installments":{"get":{"operationId":"list_home_purchase_installments","summary":"List home purchase installments","description":"A seller-financed contract's payment schedule: one row per month with its principal and interest. Rows not yet billed are rebuilt when extra principal is paid and removed at payoff or default; billed rows never change.\n\nPages through the home purchase installments table of the organization, oldest first. Filters: id, contract_id, property_id, due_on, principal_charge_id, interest_charge_id.\n\nNeeds one of: receivables.read.","tags":["Home purchase installments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contract_id","in":"query","required":false,"schema":{"description":"Only rows whose contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contract_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"principal_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose principal_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose principal_charge_id equals this."},{"name":"interest_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose interest_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose interest_charge_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/home_purchase_installments/{id}":{"get":{"operationId":"get_home_purchase_installments_row","summary":"Get a home purchase installment","description":"A seller-financed contract's payment schedule: one row per month with its principal and interest. Rows not yet billed are rebuilt when extra principal is paid and removed at payoff or default; billed rows never change.\n\nOne row of home purchase installments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Home purchase installments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/homeowner_account_owners":{"get":{"operationId":"list_homeowner_account_owners","summary":"List homeowner account owners","description":"The contacts (people, trusts, companies) on title for a homeowner account. Exactly one is_primary per account; that contact is used as the contact_id dimension on ledger lines.\n\nPages through the homeowner account owners table of the organization, oldest first. Filters: id, homeowner_account_id, contact_id, owner_role, is_primary, receives_notices, is_voting_member, created_by, emails_statement.\n\nNeeds one of: associations.read, associations.write.","tags":["Homeowner account owners"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"owner_role","in":"query","required":false,"schema":{"description":"Only rows whose owner_role equals this.","type":"string","enum":["primary_owner","co_owner","trustee","estate_representative","authorized_agent"]},"description":"Only rows whose owner_role equals this."},{"name":"is_primary","in":"query","required":false,"schema":{"description":"Only rows whose is_primary equals this.","type":"boolean"},"description":"Only rows whose is_primary equals this."},{"name":"receives_notices","in":"query","required":false,"schema":{"description":"Only rows whose receives_notices equals this.","type":"boolean"},"description":"Only rows whose receives_notices equals this."},{"name":"is_voting_member","in":"query","required":false,"schema":{"description":"Only rows whose is_voting_member equals this.","type":"boolean"},"description":"Only rows whose is_voting_member equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"emails_statement","in":"query","required":false,"schema":{"description":"Only rows whose emails_statement equals this.","type":"boolean"},"description":"Only rows whose emails_statement equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/homeowner_account_owners/{id}":{"get":{"operationId":"get_homeowner_account_owners_row","summary":"Get a homeowner account owner","description":"The contacts (people, trusts, companies) on title for a homeowner account. Exactly one is_primary per account; that contact is used as the contact_id dimension on ledger lines.\n\nOne row of homeowner account owners by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Homeowner account owners"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/homeowner_assessment_prepayments":{"get":{"operationId":"list_homeowner_assessment_prepayments","summary":"List homeowner assessment prepayments","description":"An installment of a special assessment posted early for one homeowner account because the owner paid it off. The charge keeps the installment's own due date.\n\nPages through the homeowner assessment prepayments table of the organization, oldest first. Filters: id, homeowner_account_id, assessment_schedule_id, due_on, charge_id, homeowner_special_payoff_id.\n\nNeeds one of: associations.read.","tags":["Homeowner assessment prepayments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"assessment_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_schedule_id equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"homeowner_special_payoff_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_special_payoff_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_special_payoff_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/homeowner_assessment_prepayments/{id}":{"get":{"operationId":"get_homeowner_assessment_prepayments_row","summary":"Get a homeowner assessment prepayment","description":"An installment of a special assessment posted early for one homeowner account because the owner paid it off. The charge keeps the installment's own due date.\n\nOne row of homeowner assessment prepayments by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Homeowner assessment prepayments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/homeowner_autopay_enrollments":{"get":{"operationId":"list_homeowner_autopay_enrollments","summary":"List homeowner autopay enrollments","description":"Homeowner autopay: one owner on one homeowner account pays with a saved method. each_charge pays each assessment charge in full on its due date; balance_on_day pays the amount due now on day_of_month. One live enrollment per owner per account; co-owners can each have one, and only one pays a given charge. Written only by enroll_homeowner_autopay, set_homeowner_autopay_status and the run functions.\n\nPages through the homeowner autopay enrollments table of the organization, oldest first. Filters: id, homeowner_account_id, association_id, property_id, contact_id, payment_method_id, status, starts_on, created_by.\n\nNeeds one of: associations.read.","tags":["Homeowner autopay enrollments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"payment_method_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_method_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_method_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["active","paused","suspended","canceled"]},"description":"Only rows whose status equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/homeowner_autopay_enrollments/{id}":{"get":{"operationId":"get_homeowner_autopay_enrollments_row","summary":"Get a homeowner autopay enrollment","description":"Homeowner autopay: one owner on one homeowner account pays with a saved method. each_charge pays each assessment charge in full on its due date; balance_on_day pays the amount due now on day_of_month. One live enrollment per owner per account; co-owners can each have one, and only one pays a given charge. Written only by enroll_homeowner_autopay, set_homeowner_autopay_status and the run functions.\n\nOne row of homeowner autopay enrollments by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Homeowner autopay enrollments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/homeowner_autopay_runs":{"get":{"operationId":"list_homeowner_autopay_runs","summary":"List homeowner autopay runs","description":"One row per homeowner autopay enrollment and scheduled date: what was charged, for which charges, or why the run skipped. Unique per enrollment and date, so the scheduler never charges a run twice.\n\nPages through the homeowner autopay runs table of the organization, oldest first. Filters: id, homeowner_autopay_enrollment_id, homeowner_account_id, scheduled_on, run_on, status, payment_transaction_id.\n\nNeeds one of: receivables.read.","tags":["Homeowner autopay runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"homeowner_autopay_enrollment_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_autopay_enrollment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_autopay_enrollment_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"scheduled_on","in":"query","required":false,"schema":{"description":"Only rows whose scheduled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose scheduled_on equals this."},{"name":"run_on","in":"query","required":false,"schema":{"description":"Only rows whose run_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose run_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["initiated","skipped","succeeded","failed"]},"description":"Only rows whose status equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/homeowner_autopay_runs/{id}":{"get":{"operationId":"get_homeowner_autopay_runs_row","summary":"Get a homeowner autopay run","description":"One row per homeowner autopay enrollment and scheduled date: what was charged, for which charges, or why the run skipped. Unique per enrollment and date, so the scheduler never charges a run twice.\n\nOne row of homeowner autopay runs by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Homeowner autopay runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/homeowner_special_payoffs":{"get":{"operationId":"list_homeowner_special_payoffs","summary":"List homeowner special payoffs","description":"\"Pay off the rest\" of a special assessment: the payment pays only that schedule. Written by create_special_assessment_payoff_intent.\n\nPages through the homeowner special payoffs table of the organization, oldest first. Filters: id, homeowner_account_id, assessment_schedule_id, payment_transaction_id.\n\nNeeds one of: associations.read.","tags":["Homeowner special payoffs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"assessment_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose assessment_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assessment_schedule_id equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/homeowner_special_payoffs/{id}":{"get":{"operationId":"get_homeowner_special_payoffs_row","summary":"Get a homeowner special payoff","description":"\"Pay off the rest\" of a special assessment: the payment pays only that schedule. Written by create_special_assessment_payoff_intent.\n\nOne row of homeowner special payoffs by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Homeowner special payoffs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/household_certifications":{"get":{"operationId":"list_household_certifications","summary":"List household certifications","description":"A household income certification for a program (HUD-50059 for Section 8, Tenant Income Certification for LIHTC): who lives in the unit, income, assets and deductions, and the resulting rent. Computed columns are set by calculate_certification(); completed certifications drive tenant / subsidy rent charges and recertification deadlines. Workflow: draft -> pending_signatures -> completed -> submitted -> accepted / rejected; superseded by the next certification.\n\nPages through the household certifications table of the organization, oldest first. Filters: id, housing_program_id, lease_id, unit_id, hap_contract_id, certification_type, status, effective_on, signed_on, next_recertification_due_on, previous_certification_id, is_elderly_or_disabled_family, is_full_time_student_household, is_income_eligible, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Household certifications"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"certification_type","in":"query","required":false,"schema":{"description":"Only rows whose certification_type equals this.","type":"string","enum":["move_in","initial","annual","interim","unit_transfer","gross_rent_change","other"]},"description":"Only rows whose certification_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","pending_signatures","completed","submitted","accepted","rejected","canceled","superseded"]},"description":"Only rows whose status equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"signed_on","in":"query","required":false,"schema":{"description":"Only rows whose signed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose signed_on equals this."},{"name":"next_recertification_due_on","in":"query","required":false,"schema":{"description":"Only rows whose next_recertification_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_recertification_due_on equals this."},{"name":"previous_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose previous_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose previous_certification_id equals this."},{"name":"is_elderly_or_disabled_family","in":"query","required":false,"schema":{"description":"Only rows whose is_elderly_or_disabled_family equals this.","type":"boolean"},"description":"Only rows whose is_elderly_or_disabled_family equals this."},{"name":"is_full_time_student_household","in":"query","required":false,"schema":{"description":"Only rows whose is_full_time_student_household equals this.","type":"boolean"},"description":"Only rows whose is_full_time_student_household equals this."},{"name":"is_income_eligible","in":"query","required":false,"schema":{"description":"Only rows whose is_income_eligible equals this.","type":"boolean"},"description":"Only rows whose is_income_eligible equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/household_certifications/{id}":{"get":{"operationId":"get_household_certifications_row","summary":"Get a household certification","description":"A household income certification for a program (HUD-50059 for Section 8, Tenant Income Certification for LIHTC): who lives in the unit, income, assets and deductions, and the resulting rent. Computed columns are set by calculate_certification(); completed certifications drive tenant / subsidy rent charges and recertification deadlines. Workflow: draft -> pending_signatures -> completed -> submitted -> accepted / rejected; superseded by the next certification.\n\nOne row of household certifications by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Household certifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_household_certifications_row","summary":"Update a household certification","description":"A household income certification for a program (HUD-50059 for Section 8, Tenant Income Certification for LIHTC): who lives in the unit, income, assets and deductions, and the resulting rent. Computed columns are set by calculate_certification(); completed certifications drive tenant / subsidy rent charges and recertification deadlines. Workflow: draft -> pending_signatures -> completed -> submitted -> accepted / rejected; superseded by the next certification.\n\nChanges the given fields of one row of household certifications and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Household certifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"hap_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},{"type":"null"}]},"certification_type":{"type":"string","enum":["move_in","initial","annual","interim","unit_transfer","gross_rent_change","other"],"description":"move_in (new admission), initial (first cert of an existing tenant under a new program), annual (recertification), interim (income/household change), unit_transfer, gross_rent_change."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the certification and its rent take effect."},"next_recertification_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Effective date of the next annual recertification (effective_on + program recertification_months); feeds compliance_items."},{"type":"null"}]},"previous_certification_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"previous certification id"},{"type":"null"}]},"household_size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},{"type":"null"}]},"dependent_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Members under 18, full-time students or disabled adults other than head / co-head / spouse (derived from members)."},{"type":"null"}]},"is_elderly_or_disabled_family":{"anyOf":[{"type":"boolean","description":"Head, co-head or spouse is 62+ or disabled (qualifies for the elderly/disabled deduction and medical deduction)."},{"type":"null"}]},"is_full_time_student_household":{"anyOf":[{"type":"boolean","description":"is full time student household"},{"type":"null"}]},"student_exception":{"anyOf":[{"type":"string","maxLength":100000,"description":"student exception"},{"type":"null"}]},"contract_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly rent to owner for the unit (HAP contract rent, or lease rent for unsubsidized LIHTC)."},{"type":"null"}]},"utility_allowance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly allowance for tenant-paid utilities."},{"type":"null"}]},"annual_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Gross annual household income (all members' sources annualized + asset income)."},{"type":"null"}]},"total_asset_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"total asset value cents"},{"type":"null"}]},"asset_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Annual income from assets: actual, or imputed at the passbook rate when assets exceed the program threshold (the greater)."},{"type":"null"}]},"deductions_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Annual deductions: dependents, elderly/disabled family, childcare, medical/disability expenses above the threshold."},{"type":"null"}]},"adjusted_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"annual_income_cents - deductions_cents (floor 0)."},{"type":"null"}]},"total_tenant_payment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly TTP = greatest(30% of monthly adjusted income, 10% of monthly gross income, program minimum rent)."},{"type":"null"}]},"tenant_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly rent the household pays. Subsidized: TTP - utility allowance (floor 0), capped at contract rent. Unsubsidized LIHTC: contract rent."},{"type":"null"}]},"hap_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly subsidy paid by the housing authority to the owner. Always contract_rent_cents - tenant_rent_cents."},{"type":"null"}]},"utility_reimbursement_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly utility reimbursement owed to the tenant when the utility allowance exceeds TTP."},{"type":"null"}]},"income_limit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applicable annual income limit for the household size and the unit's AMI level on effective_on."},{"type":"null"}]},"rent_limit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly gross rent limit for the unit on effective_on."},{"type":"null"}]},"household_ami_pct":{"anyOf":[{"type":"number","description":"Household income as a percent of area median income (100 = 100%)."},{"type":"null"}]},"is_income_eligible":{"anyOf":[{"type":"boolean","description":"At move-in/initial: income <= limit. At recert: income <= over_income_pct of limit (otherwise next-available-unit rule applies)."},{"type":"null"}]},"calculated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"calculated at"},{"type":"null"}]},"agency_response":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency response"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"change_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"Why the household is recertified outside the annual cycle: the interim reason or the unit transfer reason HUD-50059 asks for."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_household_certifications_row","summary":"Delete a household certification","description":"A household income certification for a program (HUD-50059 for Section 8, Tenant Income Certification for LIHTC): who lives in the unit, income, assets and deductions, and the resulting rent. Computed columns are set by calculate_certification(); completed certifications drive tenant / subsidy rent charges and recertification deadlines. Workflow: draft -> pending_signatures -> completed -> submitted -> accepted / rejected; superseded by the next certification.\n\nDeletes one row of household certifications. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["Household certifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/housing_programs":{"get":{"operationId":"list_housing_programs","summary":"List housing programs","description":"An affordable housing program layered on a property: LIHTC, HUD Section 8 project-based (PBRA), Housing Choice Vouchers (HCV), project-based vouchers (PBV), HOME, USDA RD 515, 202, 811, bond or state/local programs. A property may carry several (e.g. LIHTC + HOME + HCV tenants). Holds the rent-calculation parameters used by calculate_certification.\n\nPages through the housing programs table of the organization, oldest first. Filters: id, property_id, program_type, agency_contact_id, income_limit_area_id, income_limit_source, lihtc_set_aside, placed_in_service_on, compliance_period_starts_on, compliance_period_ends_on, extended_use_ends_on, is_annual_recert_waived, is_student_rule_applicable, starts_on, ends_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Housing programs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"program_type","in":"query","required":false,"schema":{"description":"Only rows whose program_type equals this.","type":"string","enum":["lihtc","section8_pbra","hcv","pbv","home","rd_515","section_202","section_811","tax_exempt_bond","state","local","other"]},"description":"Only rows whose program_type equals this."},{"name":"agency_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose agency_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose agency_contact_id equals this."},{"name":"income_limit_area_id","in":"query","required":false,"schema":{"description":"Only rows whose income_limit_area_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose income_limit_area_id equals this."},{"name":"income_limit_source","in":"query","required":false,"schema":{"description":"Only rows whose income_limit_source equals this.","type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"]},"description":"Only rows whose income_limit_source equals this."},{"name":"lihtc_set_aside","in":"query","required":false,"schema":{"description":"Only rows whose lihtc_set_aside equals this.","type":"string","enum":["test_20_50","test_40_60","average_income","other"]},"description":"Only rows whose lihtc_set_aside equals this."},{"name":"placed_in_service_on","in":"query","required":false,"schema":{"description":"Only rows whose placed_in_service_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose placed_in_service_on equals this."},{"name":"compliance_period_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose compliance_period_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose compliance_period_starts_on equals this."},{"name":"compliance_period_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose compliance_period_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose compliance_period_ends_on equals this."},{"name":"extended_use_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose extended_use_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose extended_use_ends_on equals this."},{"name":"is_annual_recert_waived","in":"query","required":false,"schema":{"description":"Only rows whose is_annual_recert_waived equals this.","type":"boolean"},"description":"Only rows whose is_annual_recert_waived equals this."},{"name":"is_student_rule_applicable","in":"query","required":false,"schema":{"description":"Only rows whose is_student_rule_applicable equals this.","type":"boolean"},"description":"Only rows whose is_student_rule_applicable equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_housing_programs_row","summary":"Create a housing program","description":"An affordable housing program layered on a property: LIHTC, HUD Section 8 project-based (PBRA), Housing Choice Vouchers (HCV), project-based vouchers (PBV), HOME, USDA RD 515, 202, 811, bond or state/local programs. A property may carry several (e.g. LIHTC + HOME + HCV tenants). Holds the rent-calculation parameters used by calculate_certification.\n\nInserts one row of housing programs in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Housing programs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"program_type":{"type":"string","enum":["lihtc","section8_pbra","hcv","pbv","home","rd_515","section_202","section_811","tax_exempt_bond","state","local","other"],"description":"program type"},"name":{"type":"string","maxLength":100000,"description":"name"},"agency_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The monitoring / contracting agency (state housing finance agency, HUD contract administrator, public housing authority) as a company contact."},{"type":"null"}]},"income_limit_area_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"income limit area id"},{"type":"null"}]},"income_limit_source":{"type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"],"description":"Which published income limit schedule applies (mtsp for LIHTC, hud for Section 8, hera_special when hold-harmless)."},"agency_project_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency project number"},{"type":"null"}]},"lihtc_set_aside":{"anyOf":[{"type":"string","enum":["test_20_50","test_40_60","average_income","other"],"description":"LIHTC minimum set-aside election: 20-50, 40-60 or average income test."},{"type":"null"}]},"placed_in_service_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"placed in service on"},{"type":"null"}]},"compliance_period_starts_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Start of the 15-year LIHTC compliance period (first credit year)."},{"type":"null"}]},"compliance_period_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"compliance period ends on"},{"type":"null"}]},"extended_use_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"End of the extended use / regulatory agreement period."},{"type":"null"}]},"required_set_aside_pct":{"anyOf":[{"type":"number","description":"Minimum percent of units that must be income- and rent-restricted (the applicable fraction target, 100 = 100%)."},{"type":"null"}]},"recertification_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Months between annual recertifications."},"recertification_notice_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many days before the recert effective date the first notice goes out (HUD requires 120/90/60 day notices)."},"is_annual_recert_waived":{"type":"boolean","description":"LIHTC 100% projects may waive annual income recertification after move-in (still need annual student/household self-cert)."},"over_income_pct":{"type":"number","description":"Next-available-unit rule threshold as percent of the applicable limit (140 for LIHTC, 170 for deep rent skewed)."},"minimum_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly minimum total tenant payment ($0-$50 under HUD rules)."},"ttp_adjusted_income_pct":{"type":"number","description":"TTP component: percent of monthly adjusted income (30 under HUD rules)."},"ttp_gross_income_pct":{"type":"number","description":"TTP component: percent of monthly gross annual income (10 under HUD rules)."},"dependent_deduction_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Annual deduction per dependent ($480 pre-HOTMA; HUD inflates it annually after HOTMA)."},"elderly_disabled_deduction_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Annual deduction for an elderly or disabled family ($400 pre-HOTMA, $525+ after)."},"medical_expense_threshold_pct":{"type":"number","description":"Unreimbursed medical / disability assistance expenses above this percent of annual income are deducted (3 pre-HOTMA, 10 after phase-in)."},"asset_imputation_threshold_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"When total net family assets exceed this, asset income is the greater of actual and assets x passbook_rate ($5,000 pre-HOTMA, $50,000+ after)."},"passbook_rate":{"type":"number","description":"HUD passbook savings rate used to impute asset income (0.004 = 0.4%)."},"is_student_rule_applicable":{"type":"boolean","description":"LIHTC / HOME full-time student household restriction applies."},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","program_type","name","starts_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/housing_programs/{id}":{"get":{"operationId":"get_housing_programs_row","summary":"Get a housing program","description":"An affordable housing program layered on a property: LIHTC, HUD Section 8 project-based (PBRA), Housing Choice Vouchers (HCV), project-based vouchers (PBV), HOME, USDA RD 515, 202, 811, bond or state/local programs. A property may carry several (e.g. LIHTC + HOME + HCV tenants). Holds the rent-calculation parameters used by calculate_certification.\n\nOne row of housing programs by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Housing programs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_housing_programs_row","summary":"Update a housing program","description":"An affordable housing program layered on a property: LIHTC, HUD Section 8 project-based (PBRA), Housing Choice Vouchers (HCV), project-based vouchers (PBV), HOME, USDA RD 515, 202, 811, bond or state/local programs. A property may carry several (e.g. LIHTC + HOME + HCV tenants). Holds the rent-calculation parameters used by calculate_certification.\n\nChanges the given fields of one row of housing programs and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Housing programs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"program_type":{"type":"string","enum":["lihtc","section8_pbra","hcv","pbv","home","rd_515","section_202","section_811","tax_exempt_bond","state","local","other"],"description":"program type"},"name":{"type":"string","maxLength":100000,"description":"name"},"agency_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The monitoring / contracting agency (state housing finance agency, HUD contract administrator, public housing authority) as a company contact."},{"type":"null"}]},"income_limit_area_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"income limit area id"},{"type":"null"}]},"income_limit_source":{"type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"],"description":"Which published income limit schedule applies (mtsp for LIHTC, hud for Section 8, hera_special when hold-harmless)."},"agency_project_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency project number"},{"type":"null"}]},"lihtc_set_aside":{"anyOf":[{"type":"string","enum":["test_20_50","test_40_60","average_income","other"],"description":"LIHTC minimum set-aside election: 20-50, 40-60 or average income test."},{"type":"null"}]},"placed_in_service_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"placed in service on"},{"type":"null"}]},"compliance_period_starts_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Start of the 15-year LIHTC compliance period (first credit year)."},{"type":"null"}]},"compliance_period_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"compliance period ends on"},{"type":"null"}]},"extended_use_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"End of the extended use / regulatory agreement period."},{"type":"null"}]},"required_set_aside_pct":{"anyOf":[{"type":"number","description":"Minimum percent of units that must be income- and rent-restricted (the applicable fraction target, 100 = 100%)."},{"type":"null"}]},"recertification_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Months between annual recertifications."},"recertification_notice_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many days before the recert effective date the first notice goes out (HUD requires 120/90/60 day notices)."},"is_annual_recert_waived":{"type":"boolean","description":"LIHTC 100% projects may waive annual income recertification after move-in (still need annual student/household self-cert)."},"over_income_pct":{"type":"number","description":"Next-available-unit rule threshold as percent of the applicable limit (140 for LIHTC, 170 for deep rent skewed)."},"minimum_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly minimum total tenant payment ($0-$50 under HUD rules)."},"ttp_adjusted_income_pct":{"type":"number","description":"TTP component: percent of monthly adjusted income (30 under HUD rules)."},"ttp_gross_income_pct":{"type":"number","description":"TTP component: percent of monthly gross annual income (10 under HUD rules)."},"dependent_deduction_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Annual deduction per dependent ($480 pre-HOTMA; HUD inflates it annually after HOTMA)."},"elderly_disabled_deduction_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Annual deduction for an elderly or disabled family ($400 pre-HOTMA, $525+ after)."},"medical_expense_threshold_pct":{"type":"number","description":"Unreimbursed medical / disability assistance expenses above this percent of annual income are deducted (3 pre-HOTMA, 10 after phase-in)."},"asset_imputation_threshold_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"When total net family assets exceed this, asset income is the greater of actual and assets x passbook_rate ($5,000 pre-HOTMA, $50,000+ after)."},"passbook_rate":{"type":"number","description":"HUD passbook savings rate used to impute asset income (0.004 = 0.4%)."},"is_student_rule_applicable":{"type":"boolean","description":"LIHTC / HOME full-time student household restriction applies."},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/identity_verifications":{"get":{"operationId":"list_identity_verifications","summary":"List identity verifications","description":"Photo-ID verifications (government ID + live selfie) of the adults on rental applications, one row per attempt (per Stripe Identity VerificationSession). Stores status and metadata only: never ID images, document numbers, or the name and birth date read from the ID. Created by start_identity_verification (the applicant, through the identity-create-session Edge Function); status changes only through the identity-webhook-stripe inbox. The screening risk factor `identity` passes for an adult with a verified, matching row.\n\nPages through the identity verifications table of the organization, oldest first. Filters: id, application_id, application_applicant_id, provider, environment, status, requires_matching_selfie, is_name_match, is_dob_match, created_by.\n\nNeeds one of: screening.run.","tags":["Identity verifications"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["stripe_identity"]},"description":"Only rows whose provider equals this."},{"name":"environment","in":"query","required":false,"schema":{"description":"Only rows whose environment equals this.","type":"string","enum":["test","live"]},"description":"Only rows whose environment equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["created","requires_input","processing","verified","canceled"]},"description":"Only rows whose status equals this."},{"name":"requires_matching_selfie","in":"query","required":false,"schema":{"description":"Only rows whose requires_matching_selfie equals this.","type":"boolean"},"description":"Only rows whose requires_matching_selfie equals this."},{"name":"is_name_match","in":"query","required":false,"schema":{"description":"Only rows whose is_name_match equals this.","type":"boolean"},"description":"Only rows whose is_name_match equals this."},{"name":"is_dob_match","in":"query","required":false,"schema":{"description":"Only rows whose is_dob_match equals this.","type":"boolean"},"description":"Only rows whose is_dob_match equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/identity_verifications/{id}":{"get":{"operationId":"get_identity_verifications_row","summary":"Get an identity verification","description":"Photo-ID verifications (government ID + live selfie) of the adults on rental applications, one row per attempt (per Stripe Identity VerificationSession). Stores status and metadata only: never ID images, document numbers, or the name and birth date read from the ID. Created by start_identity_verification (the applicant, through the identity-create-session Edge Function); status changes only through the identity-webhook-stripe inbox. The screening risk factor `identity` passes for an adult with a verified, matching row.\n\nOne row of identity verifications by id, with every column the API shows.\n\nNeeds one of: screening.run.","tags":["Identity verifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/inbound_emails":{"get":{"operationId":"list_inbound_emails","summary":"List inbound emails","description":"Raw inbound emails received on org addresses (Resend/Postmark inbound webhooks), before and after routing into a conversation. Threading uses In-Reply-To/References against messages.email_message_id; otherwise the sender is matched to a contact and a conversation is found or started.\n\nPages through the inbound emails table of the organization, oldest first. Filters: id, endpoint_id, provider, status, matched_contact_id, conversation_id, message_id.\n\nNeeds one of: communications.read.","tags":["Inbound emails"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"endpoint_id","in":"query","required":false,"schema":{"description":"Only rows whose endpoint_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose endpoint_id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["internal","twilio","resend","sendgrid","postmark","mailgun","ses","expo","meta_whatsapp","vonage","other"]},"description":"Only rows whose provider equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","routed","unmatched","spam","ignored","failed"]},"description":"Only rows whose status equals this."},{"name":"matched_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose matched_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose matched_contact_id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/inbound_emails/{id}":{"get":{"operationId":"get_inbound_emails_row","summary":"Get an inbound email","description":"Raw inbound emails received on org addresses (Resend/Postmark inbound webhooks), before and after routing into a conversation. Threading uses In-Reply-To/References against messages.email_message_id; otherwise the sender is matched to a contact and a conversation is found or started.\n\nOne row of inbound emails by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Inbound emails"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/incident_updates":{"get":{"operationId":"list_incident_updates","summary":"List incident updates","description":"Timeline of an incident: what changed and when. is_owner_visible marks updates written for the owner.\n\nPages through the incident updates table of the organization, oldest first. Filters: id, incident_id, property_id, is_owner_visible, created_by.\n\nNeeds one of: maintenance.read.","tags":["Incident updates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"incident_id","in":"query","required":false,"schema":{"description":"Only rows whose incident_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose incident_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"is_owner_visible","in":"query","required":false,"schema":{"description":"Only rows whose is_owner_visible equals this.","type":"boolean"},"description":"Only rows whose is_owner_visible equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_incident_updates_row","summary":"Create an incident update","description":"Timeline of an incident: what changed and when. is_owner_visible marks updates written for the owner.\n\nInserts one row of incident updates in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write.","tags":["Incident updates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incident_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"incident id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"body":{"type":"string","maxLength":100000,"description":"body"},"is_owner_visible":{"type":"boolean","description":"is owner visible"}},"required":["incident_id","property_id","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/incident_updates/{id}":{"get":{"operationId":"get_incident_updates_row","summary":"Get an incident update","description":"Timeline of an incident: what changed and when. is_owner_visible marks updates written for the owner.\n\nOne row of incident updates by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Incident updates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/incidents":{"get":{"operationId":"list_incidents","summary":"List incidents","description":"A building-wide or multi-unit event (a hot water outage, a flood) that groups the work orders and resident requests it causes, so 40 reports do not become 40 unrelated jobs. Total cost comes from the linked work orders' bills and bill lines coded to the incident (incident_summary).\n\nPages through the incidents table of the organization, oldest first. Filters: id, property_id, severity, status, owner_user_id, created_by.\n\nNeeds one of: maintenance.read, maintenance.write.","tags":["Incidents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"severity","in":"query","required":false,"schema":{"description":"Only rows whose severity equals this.","type":"string","enum":["minor","major","critical"]},"description":"Only rows whose severity equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","monitoring","resolved","closed"]},"description":"Only rows whose status equals this."},{"name":"owner_user_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_user_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","maintenance.write"]},"post":{"operationId":"create_incidents_row","summary":"Create an incident","description":"A building-wide or multi-unit event (a hot water outage, a flood) that groups the work orders and resident requests it causes, so 40 reports do not become 40 unrelated jobs. Total cost comes from the linked work orders' bills and bill lines coded to the incident (incident_summary).\n\nInserts one row of incidents in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write.","tags":["Incidents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"severity":{"type":"string","enum":["minor","major","critical"],"description":"severity"},"started_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"started at"},"restored_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When service came back. Restoring service does not close any linked work order or resident request."},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The one staff member accountable for the incident."},{"type":"null"}]},"impact_summary":{"anyOf":[{"type":"string","maxLength":100000,"description":"Who and what is affected, in plain words."},{"type":"null"}]},"restoration_estimate":{"anyOf":[{"type":"string","maxLength":100000,"description":"Free-text estimate of when service returns (\"Thursday evening\")."},{"type":"null"}]}},"required":["property_id","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/incidents/{id}":{"get":{"operationId":"get_incidents_row","summary":"Get an incident","description":"A building-wide or multi-unit event (a hot water outage, a flood) that groups the work orders and resident requests it causes, so 40 reports do not become 40 unrelated jobs. Total cost comes from the linked work orders' bills and bill lines coded to the incident (incident_summary).\n\nOne row of incidents by id, with every column the API shows.\n\nNeeds one of: maintenance.read, maintenance.write.","tags":["Incidents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","maintenance.write"]},"patch":{"operationId":"update_incidents_row","summary":"Update an incident","description":"A building-wide or multi-unit event (a hot water outage, a flood) that groups the work orders and resident requests it causes, so 40 reports do not become 40 unrelated jobs. Total cost comes from the linked work orders' bills and bill lines coded to the incident (incident_summary).\n\nChanges the given fields of one row of incidents and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.write.","tags":["Incidents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"severity":{"type":"string","enum":["minor","major","critical"],"description":"severity"},"started_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"started at"},"restored_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When service came back. Restoring service does not close any linked work order or resident request."},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The one staff member accountable for the incident."},{"type":"null"}]},"impact_summary":{"anyOf":[{"type":"string","maxLength":100000,"description":"Who and what is affected, in plain words."},{"type":"null"}]},"restoration_estimate":{"anyOf":[{"type":"string","maxLength":100000,"description":"Free-text estimate of when service returns (\"Thursday evening\")."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/income_limit_areas":{"get":{"operationId":"list_income_limit_areas","summary":"List income limit areas","description":"A HUD Fair Market Rent / income limit area (metro area or non-metro county) whose published limits apply to the org's properties.\n\nPages through the income limit areas table of the organization, oldest first. Filters: id.\n\nNeeds one of: affordable.write.","tags":["Income limit areas"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"post":{"operationId":"create_income_limit_areas_row","summary":"Create an income limit area","description":"A HUD Fair Market Rent / income limit area (metro area or non-metro county) whose published limits apply to the org's properties.\n\nInserts one row of income limit areas in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Income limit areas"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"hud_area_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"HUD area code, e.g. METRO37980M37980 or a county FIPS-based code."},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"State / province code."},{"type":"null"}]},"county":{"anyOf":[{"type":"string","maxLength":100000,"description":"county"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/income_limit_areas/{id}":{"get":{"operationId":"get_income_limit_areas_row","summary":"Get an income limit area","description":"A HUD Fair Market Rent / income limit area (metro area or non-metro county) whose published limits apply to the org's properties.\n\nOne row of income limit areas by id, with every column the API shows.\n\nNeeds one of: affordable.write.","tags":["Income limit areas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"patch":{"operationId":"update_income_limit_areas_row","summary":"Update an income limit area","description":"A HUD Fair Market Rent / income limit area (metro area or non-metro county) whose published limits apply to the org's properties.\n\nChanges the given fields of one row of income limit areas and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Income limit areas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"hud_area_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"HUD area code, e.g. METRO37980M37980 or a county FIPS-based code."},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"State / province code."},{"type":"null"}]},"county":{"anyOf":[{"type":"string","maxLength":100000,"description":"county"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/income_limits":{"get":{"operationId":"list_income_limits","summary":"List income limits","description":"Published annual income limits by area, year (effective_on), AMI percentage and household size. The limit in force on a date is the row with the latest effective_on <= that date.\n\nPages through the income limits table of the organization, oldest first. Filters: id, income_limit_area_id, source, effective_on.\n\nNeeds one of: affordable.write.","tags":["Income limits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"income_limit_area_id","in":"query","required":false,"schema":{"description":"Only rows whose income_limit_area_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose income_limit_area_id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"]},"description":"Only rows whose source equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"post":{"operationId":"create_income_limits_row","summary":"Create an income limit","description":"Published annual income limits by area, year (effective_on), AMI percentage and household size. The limit in force on a date is the row with the latest effective_on <= that date.\n\nInserts one row of income limits in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Income limits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"income_limit_area_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"income limit area id"},"source":{"type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"],"description":"Which schedule: hud (Section 8 very low / extremely low / low), mtsp (multifamily tax subsidy projects, LIHTC), hera_special (HERA hold-harmless), rd, home, state, local."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ami_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Percent of area median income (30, 50, 60, 80, ...)."},"household_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},"limit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum gross annual household income in cents."}},"required":["income_limit_area_id","effective_on","ami_pct","household_size","limit_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/income_limits/{id}":{"get":{"operationId":"get_income_limits_row","summary":"Get an income limit","description":"Published annual income limits by area, year (effective_on), AMI percentage and household size. The limit in force on a date is the row with the latest effective_on <= that date.\n\nOne row of income limits by id, with every column the API shows.\n\nNeeds one of: affordable.write.","tags":["Income limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"patch":{"operationId":"update_income_limits_row","summary":"Update an income limit","description":"Published annual income limits by area, year (effective_on), AMI percentage and household size. The limit in force on a date is the row with the latest effective_on <= that date.\n\nChanges the given fields of one row of income limits and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Income limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"income_limit_area_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"income limit area id"},"source":{"type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"],"description":"Which schedule: hud (Section 8 very low / extremely low / low), mtsp (multifamily tax subsidy projects, LIHTC), hera_special (HERA hold-harmless), rd, home, state, local."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ami_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Percent of area median income (30, 50, 60, 80, ...)."},"household_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},"limit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum gross annual household income in cents."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_income_limits_row","summary":"Delete an income limit","description":"Published annual income limits by area, year (effective_on), AMI percentage and household size. The limit in force on a date is the row with the latest effective_on <= that date.\n\nDeletes one row of income limits. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["Income limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/income_verification_requests":{"get":{"operationId":"list_income_verification_requests","summary":"List income verification requests","description":"Request to verify a person's income for an application, a lease (renewal, payment plan) or an affordable-housing certification, through a bank-link, payroll-link or employer-verification provider or manual review.\n\nPages through the income verification requests table of the organization, oldest first. Filters: id, contact_id, rental_application_id, lease_id, household_certification_id, provider, channel, status, document_id, requested_by.\n\nNeeds one of: compliance.read, screening.run.","tags":["Income verification requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["plaid","argyle","truework","the_work_number","finicity","pinwheel","snappt","manual"]},"description":"Only rows whose provider equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["bank_link","payroll_link","employer_verification","document_upload","manual_review"]},"description":"Only rows whose channel equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","invited","in_progress","completed","failed","expired","canceled"]},"description":"Only rows whose status equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","screening.run"]}},"/v1/income_verification_requests/{id}":{"get":{"operationId":"get_income_verification_requests_row","summary":"Get an income verification request","description":"Request to verify a person's income for an application, a lease (renewal, payment plan) or an affordable-housing certification, through a bank-link, payroll-link or employer-verification provider or manual review.\n\nOne row of income verification requests by id, with every column the API shows.\n\nNeeds one of: compliance.read, screening.run.","tags":["Income verification requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","screening.run"]}},"/v1/income_verification_results":{"get":{"operationId":"list_income_verification_results","summary":"List income verification results","description":"One verified income stream from a verification request. Verified household income = sum of verified_annual_income_cents over the request's results.\n\nPages through the income verification results table of the organization, oldest first. Filters: id, income_verification_request_id, income_type, is_currently_employed, pay_frequency, period_start_on, period_end_on, is_tampering_suspected.\n\nNeeds one of: screening.run.","tags":["Income verification results"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"income_verification_request_id","in":"query","required":false,"schema":{"description":"Only rows whose income_verification_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose income_verification_request_id equals this."},{"name":"income_type","in":"query","required":false,"schema":{"description":"Only rows whose income_type equals this.","type":"string","enum":["employment","self_employment","retirement","social_security","disability","child_support","alimony","housing_voucher","student_aid","investment","unemployment","other"]},"description":"Only rows whose income_type equals this."},{"name":"is_currently_employed","in":"query","required":false,"schema":{"description":"Only rows whose is_currently_employed equals this.","type":"boolean"},"description":"Only rows whose is_currently_employed equals this."},{"name":"pay_frequency","in":"query","required":false,"schema":{"description":"Only rows whose pay_frequency equals this.","type":"string","enum":["weekly","biweekly","semimonthly","monthly","quarterly","annually"]},"description":"Only rows whose pay_frequency equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"is_tampering_suspected","in":"query","required":false,"schema":{"description":"Only rows whose is_tampering_suspected equals this.","type":"boolean"},"description":"Only rows whose is_tampering_suspected equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/income_verification_results/{id}":{"get":{"operationId":"get_income_verification_results_row","summary":"Get an income verification result","description":"One verified income stream from a verification request. Verified household income = sum of verified_annual_income_cents over the request's results.\n\nOne row of income verification results by id, with every column the API shows.\n\nNeeds one of: screening.run.","tags":["Income verification results"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/inspection_items":{"get":{"operationId":"list_inspection_items","summary":"List inspection items","description":"One rated line of an inspection: area/room + item, condition, notes, estimated repair cost, and whether the cost is charged back to the tenant (feeds security deposit dispositions).\n\nPages through the inspection items table of the organization, oldest first. Filters: id, inspection_id, inspection_template_item_id, condition, requires_repair, is_chargeback_to_tenant, work_order_id, ai_detected_condition, deficiency_severity.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspection items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"inspection_template_item_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_template_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_template_item_id equals this."},{"name":"condition","in":"query","required":false,"schema":{"description":"Only rows whose condition equals this.","type":"string","enum":["excellent","good","fair","poor","damaged","missing","na"]},"description":"Only rows whose condition equals this."},{"name":"requires_repair","in":"query","required":false,"schema":{"description":"Only rows whose requires_repair equals this.","type":"boolean"},"description":"Only rows whose requires_repair equals this."},{"name":"is_chargeback_to_tenant","in":"query","required":false,"schema":{"description":"Only rows whose is_chargeback_to_tenant equals this.","type":"boolean"},"description":"Only rows whose is_chargeback_to_tenant equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"ai_detected_condition","in":"query","required":false,"schema":{"description":"Only rows whose ai_detected_condition equals this.","type":"string","enum":["excellent","good","fair","poor","damaged","missing","na"]},"description":"Only rows whose ai_detected_condition equals this."},{"name":"deficiency_severity","in":"query","required":false,"schema":{"description":"Only rows whose deficiency_severity equals this.","type":"string","enum":["life_threatening","severe","moderate","low"]},"description":"Only rows whose deficiency_severity equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/inspection_items/{id}":{"get":{"operationId":"get_inspection_items_row","summary":"Get an inspection item","description":"One rated line of an inspection: area/room + item, condition, notes, estimated repair cost, and whether the cost is charged back to the tenant (feeds security deposit dispositions).\n\nOne row of inspection items by id, with every column the API shows.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspection items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]},"patch":{"operationId":"update_inspection_items_row","summary":"Update an inspection item","description":"One rated line of an inspection: area/room + item, condition, notes, estimated repair cost, and whether the cost is charged back to the tenant (feeds security deposit dispositions).\n\nChanges the given fields of one row of inspection items and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspection items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"inspection_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},"inspection_template_item_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection template item id"},{"type":"null"}]},"area":{"type":"string","maxLength":100000,"description":"area"},"item":{"type":"string","maxLength":100000,"description":"item"},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"condition":{"anyOf":[{"type":"string","enum":["excellent","good","fair","poor","damaged","missing","na"],"description":"excellent, good, fair, poor, damaged, missing, or na (not applicable). Null = not yet rated."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"estimated_repair_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated repair cost cents"},{"type":"null"}]},"requires_repair":{"type":"boolean","description":"A repair work order should be created (complete_inspection can generate them)."},"is_chargeback_to_tenant":{"type":"boolean","description":"Damage beyond normal wear and tear to charge the tenant (deposit deduction)."},"chargeback_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount to charge the tenant; defaults to the estimated repair cost when charged back."},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Repair work order created for this finding."},{"type":"null"}]},"deficiency_severity":{"anyOf":[{"type":"string","enum":["life_threatening","severe","moderate","low"],"description":"NSPIRE severity of the deficiency found at this item; null = no deficiency."},{"type":"null"}]},"correct_by_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"NSPIRE correction deadline, set from the severity when it is first recorded (24 hours, 30 days or 60 days after the inspection)."},{"type":"null"}]},"corrected_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the deficiency was corrected."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/inspection_photos":{"get":{"operationId":"list_inspection_photos","summary":"List inspection photos","description":"Photos taken during an inspection, optionally tied to one inspection item (Supabase Storage bucket + path).\n\nPages through the inspection photos table of the organization, oldest first. Filters: id, inspection_id, inspection_item_id, uploaded_by.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspection photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"inspection_item_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_item_id equals this."},{"name":"uploaded_by","in":"query","required":false,"schema":{"description":"Only rows whose uploaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose uploaded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]},"post":{"operationId":"create_inspection_photos_row","summary":"Create an inspection photo","description":"Photos taken during an inspection, optionally tied to one inspection item (Supabase Storage bucket + path).\n\nInserts one row of inspection photos in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspection photos"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspection_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},"inspection_item_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection item id"},{"type":"null"}]},"storage_bucket":{"type":"string","maxLength":100000,"description":"storage bucket"},"storage_path":{"type":"string","maxLength":100000,"description":"Storage object path; must start with <org_id>/ (the storage RLS prefix)."},"caption":{"anyOf":[{"type":"string","maxLength":100000,"description":"caption"},{"type":"null"}]},"taken_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"taken at"},{"type":"null"}]}},"required":["inspection_id","storage_path"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/inspection_photos/{id}":{"get":{"operationId":"get_inspection_photos_row","summary":"Get an inspection photo","description":"Photos taken during an inspection, optionally tied to one inspection item (Supabase Storage bucket + path).\n\nOne row of inspection photos by id, with every column the API shows.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspection photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/inspection_template_items":{"get":{"operationId":"list_inspection_template_items","summary":"List inspection template items","description":"One checklist line of an inspection template: an area/room (Kitchen, Bedroom 1) and an item to rate (Walls, Flooring, Smoke detector).\n\nPages through the inspection template items table of the organization, oldest first. Filters: id, inspection_template_id.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection template items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"inspection_template_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_template_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]},"post":{"operationId":"create_inspection_template_items_row","summary":"Create an inspection template item","description":"One checklist line of an inspection template: an area/room (Kitchen, Bedroom 1) and an item to rate (Walls, Flooring, Smoke detector).\n\nInserts one row of inspection template items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection template items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspection_template_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection template id"},"area":{"type":"string","maxLength":100000,"description":"area"},"item":{"type":"string","maxLength":100000,"description":"item"},"guidance":{"anyOf":[{"type":"string","maxLength":100000,"description":"What the inspector should check for this item."},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"}},"required":["inspection_template_id","area","item"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]}},"/v1/inspection_template_items/{id}":{"get":{"operationId":"get_inspection_template_items_row","summary":"Get an inspection template item","description":"One checklist line of an inspection template: an area/room (Kitchen, Bedroom 1) and an item to rate (Walls, Flooring, Smoke detector).\n\nOne row of inspection template items by id, with every column the API shows.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection template items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]},"delete":{"operationId":"delete_inspection_template_items_row","summary":"Delete an inspection template item","description":"One checklist line of an inspection template: an area/room (Kitchen, Bedroom 1) and an item to rate (Walls, Flooring, Smoke detector).\n\nDeletes one row of inspection template items. The database refuses it where other records still need the row.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection template items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]}},"/v1/inspection_templates":{"get":{"operationId":"list_inspection_templates","summary":"List inspection templates","description":"Reusable inspection checklists (rooms/areas and items). Copied into inspection_items when an inspection is created.\n\nPages through the inspection templates table of the organization, oldest first. Filters: id, inspection_type, is_default, created_by, is_common_area.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection templates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"inspection_type","in":"query","required":false,"schema":{"description":"Only rows whose inspection_type equals this.","type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"]},"description":"Only rows whose inspection_type equals this."},{"name":"is_default","in":"query","required":false,"schema":{"description":"Only rows whose is_default equals this.","type":"boolean"},"description":"Only rows whose is_default equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"is_common_area","in":"query","required":false,"schema":{"description":"Only rows whose is_common_area equals this.","type":"boolean"},"description":"Only rows whose is_common_area equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]},"post":{"operationId":"create_inspection_templates_row","summary":"Create an inspection template","description":"Reusable inspection checklists (rooms/areas and items). Copied into inspection_items when an inspection is created.\n\nInserts one row of inspection templates in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection templates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"inspection_type":{"anyOf":[{"type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"],"description":"Inspection type this template is meant for; null = usable for any type."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"is_default":{"type":"boolean","description":"Picked automatically for its inspection_type (or for any type when inspection_type is null) when no template is chosen."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"is_common_area":{"type":"boolean","description":"A checklist for common areas. Common-area inspections pick from these (the default one first); unit and property inspections never pick one by default."}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]}},"/v1/inspection_templates/{id}":{"get":{"operationId":"get_inspection_templates_row","summary":"Get an inspection template","description":"Reusable inspection checklists (rooms/areas and items). Copied into inspection_items when an inspection is created.\n\nOne row of inspection templates by id, with every column the API shows.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]},"patch":{"operationId":"update_inspection_templates_row","summary":"Update an inspection template","description":"Reusable inspection checklists (rooms/areas and items). Copied into inspection_items when an inspection is created.\n\nChanges the given fields of one row of inspection templates and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"inspection_type":{"anyOf":[{"type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"],"description":"Inspection type this template is meant for; null = usable for any type."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"is_default":{"type":"boolean","description":"Picked automatically for its inspection_type (or for any type when inspection_type is null) when no template is chosen."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"is_common_area":{"type":"boolean","description":"A checklist for common areas. Common-area inspections pick from these (the default one first); unit and property inspections never pick one by default."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]}},"/v1/insurance_policies":{"get":{"operationId":"list_insurance_policies","summary":"List insurance policies","description":"Insurance covering a property (hazard, landlord dwelling fire, liability, umbrella, flood, earthquake; property_id) or a lease (tenant renters insurance or the landlord's master/LLI program; lease_id). Vendor certificates of insurance are vendor_insurance_policies. Expiry feeds compliance_deadlines.\n\nPages through the insurance policies table of the organization, oldest first. Filters: id, kind, property_id, lease_id, insured_contact_id, owner_id, premium_period, effective_on, expires_on, canceled_on, is_additional_insured_listed, is_interested_party_listed, is_master_policy, status, verification_source, verified_by, document_id, created_by.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Insurance policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["property_hazard","landlord_dwelling_fire","general_liability","umbrella","flood","earthquake","wind_hail","builders_risk","renters","liability_only_renters"]},"description":"Only rows whose kind equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"insured_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose insured_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose insured_contact_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"premium_period","in":"query","required":false,"schema":{"description":"Only rows whose premium_period equals this.","type":"string","enum":["monthly","quarterly","semi_annual","annual"]},"description":"Only rows whose premium_period equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"canceled_on","in":"query","required":false,"schema":{"description":"Only rows whose canceled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose canceled_on equals this."},{"name":"is_additional_insured_listed","in":"query","required":false,"schema":{"description":"Only rows whose is_additional_insured_listed equals this.","type":"boolean"},"description":"Only rows whose is_additional_insured_listed equals this."},{"name":"is_interested_party_listed","in":"query","required":false,"schema":{"description":"Only rows whose is_interested_party_listed equals this.","type":"boolean"},"description":"Only rows whose is_interested_party_listed equals this."},{"name":"is_master_policy","in":"query","required":false,"schema":{"description":"Only rows whose is_master_policy equals this.","type":"boolean"},"description":"Only rows whose is_master_policy equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending_verification","active","expired","canceled","lapsed","rejected"]},"description":"Only rows whose status equals this."},{"name":"verification_source","in":"query","required":false,"schema":{"description":"Only rows whose verification_source equals this.","type":"string","enum":["upload","carrier_api","provider_integration","manual"]},"description":"Only rows whose verification_source equals this."},{"name":"verified_by","in":"query","required":false,"schema":{"description":"Only rows whose verified_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose verified_by equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]}},"/v1/insurance_policies/{id}":{"get":{"operationId":"get_insurance_policies_row","summary":"Get an insurance policy","description":"Insurance covering a property (hazard, landlord dwelling fire, liability, umbrella, flood, earthquake; property_id) or a lease (tenant renters insurance or the landlord's master/LLI program; lease_id). Vendor certificates of insurance are vendor_insurance_policies. Expiry feeds compliance_deadlines.\n\nOne row of insurance policies by id, with every column the API shows.\n\nNeeds one of: compliance.read, compliance.write.","tags":["Insurance policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]}},"/v1/integration_account_mappings":{"get":{"operationId":"list_integration_account_mappings","summary":"List integration account mappings","description":"GL export mapping: which account in the external ERP (QuickBooks, Xero...) each of our GL accounts exports to.\n\nPages through the integration account mappings table of the organization, oldest first. Filters: id, integration_id, gl_account_id.\n\nNeeds one of: gl.read, gl.write, integrations.write.","tags":["Integration account mappings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"integration_id","in":"query","required":false,"schema":{"description":"Only rows whose integration_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose integration_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write","integrations.write"]}},"/v1/integration_account_mappings/{id}":{"get":{"operationId":"get_integration_account_mappings_row","summary":"Get an integration account mapping","description":"GL export mapping: which account in the external ERP (QuickBooks, Xero...) each of our GL accounts exports to.\n\nOne row of integration account mappings by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write, integrations.write.","tags":["Integration account mappings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write","integrations.write"]}},"/v1/integration_dimension_mappings":{"get":{"operationId":"list_integration_dimension_mappings","summary":"List integration dimension mappings","description":"Dimension codes for a file export integration: the code and name in the other system of a property (Yardi property code, QuickBooks class or location, Xero tracking option, Intacct location, AppFolio property, MRI entity), an owner, or an accounting entity (Intacct or NetSuite entity). Written by save_integration_dimension_mappings; read by accounting_export_lines.\n\nPages through the integration dimension mappings table of the organization, oldest first. Filters: id, integration_id, property_id, owner_id, accounting_entity_id.\n\nNeeds one of: gl.read.","tags":["Integration dimension mappings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"integration_id","in":"query","required":false,"schema":{"description":"Only rows whose integration_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose integration_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"accounting_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_entity_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/integration_dimension_mappings/{id}":{"get":{"operationId":"get_integration_dimension_mappings_row","summary":"Get an integration dimension mapping","description":"Dimension codes for a file export integration: the code and name in the other system of a property (Yardi property code, QuickBooks class or location, Xero tracking option, Intacct location, AppFolio property, MRI entity), an owner, or an accounting entity (Intacct or NetSuite entity). Written by save_integration_dimension_mappings; read by accounting_export_lines.\n\nOne row of integration dimension mappings by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Integration dimension mappings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/integration_external_accounts":{"get":{"operationId":"list_integration_external_accounts","summary":"List integration external accounts","description":"The accountant's chart of accounts for a file export integration (QuickBooks Online or Desktop), imported from their account list by replace_integration_external_accounts. The mapping screen suggests one of these for each GL account by name and type; integration_account_mappings stores the choice.\n\nPages through the integration external accounts table of the organization, oldest first. Filters: id, integration_id.\n\nNeeds one of: gl.read, integrations.write.","tags":["Integration external accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"integration_id","in":"query","required":false,"schema":{"description":"Only rows whose integration_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose integration_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","integrations.write"]}},"/v1/integration_external_accounts/{id}":{"get":{"operationId":"get_integration_external_accounts_row","summary":"Get an integration external account","description":"The accountant's chart of accounts for a file export integration (QuickBooks Online or Desktop), imported from their account list by replace_integration_external_accounts. The mapping screen suggests one of these for each GL account by name and type; integration_account_mappings stores the choice.\n\nOne row of integration external accounts by id, with every column the API shows.\n\nNeeds one of: gl.read, integrations.write.","tags":["Integration external accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","integrations.write"]}},"/v1/integrations":{"get":{"operationId":"list_integrations","summary":"List integrations","description":"A third-party app connected by an organization, with connection status. OAuth tokens / API credentials live in Vault (credentials_vault_ref), never in this table.\n\nPages through the integrations table of the organization, oldest first. Filters: id, status, sync_direction, connected_by, created_by.\n\nNeeds one of: integrations.write.","tags":["Integrations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","connected","error","disconnected"]},"description":"Only rows whose status equals this."},{"name":"sync_direction","in":"query","required":false,"schema":{"description":"Only rows whose sync_direction equals this.","type":"string","enum":["inbound","outbound","bidirectional"]},"description":"Only rows whose sync_direction equals this."},{"name":"connected_by","in":"query","required":false,"schema":{"description":"Only rows whose connected_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose connected_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]},"post":{"operationId":"create_integrations_row","summary":"Create an integration","description":"A third-party app connected by an organization, with connection status. OAuth tokens / API credentials live in Vault (credentials_vault_ref), never in this table.\n\nInserts one row of integrations in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: integrations.write.","tags":["Integrations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider_key":{"type":"string","maxLength":100000,"description":"provider key"},"display_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"display name"},{"type":"null"}]},"external_account_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"The organization's id at the provider (e.g. QuickBooks realm id)."},{"type":"null"}]},"sync_direction":{"type":"string","enum":["inbound","outbound","bidirectional"],"description":"sync direction"},"connected_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"connected at"},{"type":"null"}]},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last sync at"},{"type":"null"}]},"last_error":{"anyOf":[{"type":"string","maxLength":100000,"description":"last error"},{"type":"null"}]},"provider_metadata":{"anyOf":[{"description":"Raw provider connection details as returned by the provider (company name, scopes). Not used for reporting."},{"type":"null"}]}},"required":["provider_key"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/integrations/{id}":{"get":{"operationId":"get_integrations_row","summary":"Get an integration","description":"A third-party app connected by an organization, with connection status. OAuth tokens / API credentials live in Vault (credentials_vault_ref), never in this table.\n\nOne row of integrations by id, with every column the API shows.\n\nNeeds one of: integrations.write.","tags":["Integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]},"patch":{"operationId":"update_integrations_row","summary":"Update an integration","description":"A third-party app connected by an organization, with connection status. OAuth tokens / API credentials live in Vault (credentials_vault_ref), never in this table.\n\nChanges the given fields of one row of integrations and returns it. Fields left out stay as they are.\n\nNeeds one of: integrations.write.","tags":["Integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"provider_key":{"type":"string","maxLength":100000,"description":"provider key"},"display_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"display name"},{"type":"null"}]},"external_account_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"The organization's id at the provider (e.g. QuickBooks realm id)."},{"type":"null"}]},"sync_direction":{"type":"string","enum":["inbound","outbound","bidirectional"],"description":"sync direction"},"connected_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"connected at"},{"type":"null"}]},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last sync at"},{"type":"null"}]},"last_error":{"anyOf":[{"type":"string","maxLength":100000,"description":"last error"},{"type":"null"}]},"provider_metadata":{"anyOf":[{"description":"Raw provider connection details as returned by the provider (company name, scopes). Not used for reporting."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/interactions":{"get":{"operationId":"list_interactions","summary":"List interactions","description":"Contact history (CRM timeline): every call, email, SMS, visit, meeting, letter or note with a contact, logged by staff or by integrations (telephony, email sync). property_id/unit_id are added in 00004 to say which property the interaction concerned.\n\nPages through the interactions table of the organization, oldest first. Filters: id, contact_id, interaction_type, direction, outcome, staff_user_id, follow_up_on, is_ai_generated, created_by, property_id, unit_id.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Interactions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"interaction_type","in":"query","required":false,"schema":{"description":"Only rows whose interaction_type equals this.","type":"string","enum":["call","email","sms","visit","meeting","letter","portal_message","video_call","note"]},"description":"Only rows whose interaction_type equals this."},{"name":"direction","in":"query","required":false,"schema":{"description":"Only rows whose direction equals this.","type":"string","enum":["inbound","outbound","internal"]},"description":"Only rows whose direction equals this."},{"name":"outcome","in":"query","required":false,"schema":{"description":"Only rows whose outcome equals this.","type":"string","enum":["completed","no_answer","left_voicemail","busy","wrong_number","bounced","follow_up_required","scheduled","resolved","escalated","other"]},"description":"Only rows whose outcome equals this."},{"name":"staff_user_id","in":"query","required":false,"schema":{"description":"Only rows whose staff_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose staff_user_id equals this."},{"name":"follow_up_on","in":"query","required":false,"schema":{"description":"Only rows whose follow_up_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose follow_up_on equals this."},{"name":"is_ai_generated","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_generated equals this.","type":"boolean"},"description":"Only rows whose is_ai_generated equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]}},"/v1/interactions/{id}":{"get":{"operationId":"get_interactions_row","summary":"Get an interaction","description":"Contact history (CRM timeline): every call, email, SMS, visit, meeting, letter or note with a contact, logged by staff or by integrations (telephony, email sync). property_id/unit_id are added in 00004 to say which property the interaction concerned.\n\nOne row of interactions by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Interactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]}},"/v1/inventory_items":{"get":{"operationId":"list_inventory_items","summary":"List inventory items","description":"Parts and supplies stocked for maintenance (filters, faucets, paint). Stock on hand is derived from inventory_transactions (view inventory_stock_levels).\n\nPages through the inventory items table of the organization, oldest first. Filters: id, category_id, preferred_vendor_id.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Inventory items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"preferred_vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose preferred_vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose preferred_vendor_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"post":{"operationId":"create_inventory_items_row","summary":"Create an inventory item","description":"Parts and supplies stocked for maintenance (filters, faucets, paint). Stock on hand is derived from inventory_transactions (view inventory_stock_levels).\n\nInserts one row of inventory items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Inventory items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sku":{"anyOf":[{"type":"string","maxLength":100000,"description":"sku"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"unit_of_measure":{"type":"string","maxLength":100000,"description":"unit of measure"},"default_unit_cost_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default unit cost cents"},"reorder_point":{"anyOf":[{"type":"number","description":"Reorder when total on hand falls to or below this quantity."},{"type":"null"}]},"reorder_quantity":{"anyOf":[{"type":"number","description":"reorder quantity"},{"type":"null"}]},"preferred_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Supplier normally used to restock."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/inventory_items/{id}":{"get":{"operationId":"get_inventory_items_row","summary":"Get an inventory item","description":"Parts and supplies stocked for maintenance (filters, faucets, paint). Stock on hand is derived from inventory_transactions (view inventory_stock_levels).\n\nOne row of inventory items by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Inventory items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"patch":{"operationId":"update_inventory_items_row","summary":"Update an inventory item","description":"Parts and supplies stocked for maintenance (filters, faucets, paint). Stock on hand is derived from inventory_transactions (view inventory_stock_levels).\n\nChanges the given fields of one row of inventory items and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch.","tags":["Inventory items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"sku":{"anyOf":[{"type":"string","maxLength":100000,"description":"sku"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"unit_of_measure":{"type":"string","maxLength":100000,"description":"unit of measure"},"default_unit_cost_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default unit cost cents"},"reorder_point":{"anyOf":[{"type":"number","description":"Reorder when total on hand falls to or below this quantity."},{"type":"null"}]},"reorder_quantity":{"anyOf":[{"type":"number","description":"reorder quantity"},{"type":"null"}]},"preferred_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Supplier normally used to restock."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/inventory_locations":{"get":{"operationId":"list_inventory_locations","summary":"List inventory locations","description":"Where maintenance stock is kept: shop/warehouse, a property's storage room, or a technician's vehicle.\n\nPages through the inventory locations table of the organization, oldest first. Filters: id, kind, property_id, assigned_user_id.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Inventory locations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["warehouse","property_storage","vehicle","other"]},"description":"Only rows whose kind equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"post":{"operationId":"create_inventory_locations_row","summary":"Create an inventory location","description":"Where maintenance stock is kept: shop/warehouse, a property's storage room, or a technician's vehicle.\n\nInserts one row of inventory locations in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Inventory locations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"kind":{"type":"string","enum":["warehouse","property_storage","vehicle","other"],"description":"kind"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Technician responsible for a vehicle stock location."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/inventory_locations/{id}":{"get":{"operationId":"get_inventory_locations_row","summary":"Get an inventory location","description":"Where maintenance stock is kept: shop/warehouse, a property's storage room, or a technician's vehicle.\n\nOne row of inventory locations by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Inventory locations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"patch":{"operationId":"update_inventory_locations_row","summary":"Update an inventory location","description":"Where maintenance stock is kept: shop/warehouse, a property's storage room, or a technician's vehicle.\n\nChanges the given fields of one row of inventory locations and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch.","tags":["Inventory locations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"kind":{"type":"string","enum":["warehouse","property_storage","vehicle","other"],"description":"kind"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Technician responsible for a vehicle stock location."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/inventory_transactions":{"get":{"operationId":"list_inventory_transactions","summary":"List inventory transactions","description":"Immutable stock movements. quantity is signed: positive adds stock (receipt, return, transfer_in, positive adjustment), negative removes it (issue to a work order, transfer_out). Stock on hand = sum(quantity) per item and location.\n\nPages through the inventory transactions table of the organization, oldest first. Filters: id, inventory_item_id, inventory_location_id, transaction_type, work_order_id, transfer_group_id, created_by.\n\nNeeds one of: maintenance.read.","tags":["Inventory transactions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"inventory_item_id","in":"query","required":false,"schema":{"description":"Only rows whose inventory_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inventory_item_id equals this."},{"name":"inventory_location_id","in":"query","required":false,"schema":{"description":"Only rows whose inventory_location_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inventory_location_id equals this."},{"name":"transaction_type","in":"query","required":false,"schema":{"description":"Only rows whose transaction_type equals this.","type":"string","enum":["receipt","issue","return","adjustment","transfer_in","transfer_out"]},"description":"Only rows whose transaction_type equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"transfer_group_id","in":"query","required":false,"schema":{"description":"Only rows whose transfer_group_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose transfer_group_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/inventory_transactions/{id}":{"get":{"operationId":"get_inventory_transactions_row","summary":"Get an inventory transaction","description":"Immutable stock movements. quantity is signed: positive adds stock (receipt, return, transfer_in, positive adjustment), negative removes it (issue to a work order, transfer_out). Stock on hand = sum(quantity) per item and location.\n\nOne row of inventory transactions by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Inventory transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/investment_entities":{"get":{"operationId":"list_investment_entities","summary":"List investment entities","description":"A fund, syndication or single-purpose LLC that raises money from investors and owns properties (via entity_properties). Its owner_id is the owners row that represents the entity in property_ownerships; investor contributions and distributions post to the ledger against that owner.\n\nPages through the investment entities table of the organization, oldest first. Filters: id, entity_type, status, owner_id, sponsor_contact_id, formed_on, dissolved_on, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Investment entities"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"entity_type","in":"query","required":false,"schema":{"description":"Only rows whose entity_type equals this.","type":"string","enum":["fund","syndication","llc","limited_partnership","joint_venture","tenancy_in_common","reit","other"]},"description":"Only rows whose entity_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["forming","raising","active","winding_down","closed"]},"description":"Only rows whose status equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"sponsor_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose sponsor_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose sponsor_contact_id equals this."},{"name":"formed_on","in":"query","required":false,"schema":{"description":"Only rows whose formed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose formed_on equals this."},{"name":"dissolved_on","in":"query","required":false,"schema":{"description":"Only rows whose dissolved_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose dissolved_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/investment_entities/{id}":{"get":{"operationId":"get_investment_entities_row","summary":"Get an investment entity","description":"A fund, syndication or single-purpose LLC that raises money from investors and owns properties (via entity_properties). Its owner_id is the owners row that represents the entity in property_ownerships; investor contributions and distributions post to the ledger against that owner.\n\nOne row of investment entities by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investment entities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investment_entities_row","summary":"Update an investment entity","description":"A fund, syndication or single-purpose LLC that raises money from investors and owns properties (via entity_properties). Its owner_id is the owners row that represents the entity in property_ownerships; investor contributions and distributions post to the ledger against that owner.\n\nChanges the given fields of one row of investment entities and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investment entities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"legal_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"legal name"},{"type":"null"}]},"entity_type":{"type":"string","enum":["fund","syndication","llc","limited_partnership","joint_venture","tenancy_in_common","reit","other"],"description":"Legal / economic form: fund (multi-asset, blind pool), syndication (deal-by-deal), llc, limited_partnership, joint_venture, tenancy_in_common, reit, other."},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The owners row standing for this entity in property ownership and owner accounting. Contributions post Cr OWNER_CONTRIBUTIONS and distributions Dr OWNER_DISTRIBUTIONS with this owner_id. Required before any money is recorded."},{"type":"null"}]},"sponsor_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The sponsor / general partner / managing member organization (a contact, usually a company)."},{"type":"null"}]},"formation_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"State or province of formation (e.g. DE)."},{"type":"null"}]},"formed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"formed on"},{"type":"null"}]},"fiscal_year_end_month":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fiscal year end month"},"target_hold_years":{"anyOf":[{"type":"number","description":"target hold years"},{"type":"null"}]},"dissolved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"dissolved on"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"second_approval_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Distributions and capital calls at or above this amount need a second person: approve_waterfall_run refuses the person who computed the run, issue_capital_call only saves a draft, and issue_draft_capital_call refuses the person who created the draft. Null = one person may do every step."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investment_share_classes":{"get":{"operationId":"list_investment_share_classes","summary":"List investment share classes","description":"Ownership classes of an investment entity (Class A LP, Class B LP, GP / sponsor promote units). Investors hold units of a class (investor_positions).\n\nPages through the investment share classes table of the organization, oldest first. Filters: id, investment_entity_id, class_role, is_voting.\n\nNeeds one of: investments.read, investments.write.","tags":["Investment share classes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"class_role","in":"query","required":false,"schema":{"description":"Only rows whose class_role equals this.","type":"string","enum":["limited_partner","general_partner"]},"description":"Only rows whose class_role equals this."},{"name":"is_voting","in":"query","required":false,"schema":{"description":"Only rows whose is_voting equals this.","type":"boolean"},"description":"Only rows whose is_voting equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"post":{"operationId":"create_investment_share_classes_row","summary":"Create an investment share class","description":"Ownership classes of an investment entity (Class A LP, Class B LP, GP / sponsor promote units). Investors hold units of a class (investor_positions).\n\nInserts one row of investment share classes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: investments.write.","tags":["Investment share classes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"name":{"type":"string","maxLength":100000,"description":"name"},"class_role":{"type":"string","enum":["limited_partner","general_partner"],"description":"limited_partner = capital investors (get return of capital, pref, LP share of splits); general_partner = sponsor class that receives catch-up and the GP share of promote splits."},"is_voting":{"type":"boolean","description":"is voting"},"unit_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Price per unit/share at issue, minor units (null for classes not sold by unit)."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["investment_entity_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investment_share_classes/{id}":{"get":{"operationId":"get_investment_share_classes_row","summary":"Get an investment share class","description":"Ownership classes of an investment entity (Class A LP, Class B LP, GP / sponsor promote units). Investors hold units of a class (investor_positions).\n\nOne row of investment share classes by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investment share classes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investment_share_classes_row","summary":"Update an investment share class","description":"Ownership classes of an investment entity (Class A LP, Class B LP, GP / sponsor promote units). Investors hold units of a class (investor_positions).\n\nChanges the given fields of one row of investment share classes and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investment share classes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"name":{"type":"string","maxLength":100000,"description":"name"},"class_role":{"type":"string","enum":["limited_partner","general_partner"],"description":"limited_partner = capital investors (get return of capital, pref, LP share of splits); general_partner = sponsor class that receives catch-up and the GP share of promote splits."},"is_voting":{"type":"boolean","description":"is voting"},"unit_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Price per unit/share at issue, minor units (null for classes not sold by unit)."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_accreditations":{"get":{"operationId":"list_investor_accreditations","summary":"List investor accreditations","description":"History of accredited-investor verifications (self-certification, CPA/attorney letters, third-party verification). The latest row drives investors.accreditation_status.\n\nPages through the investor accreditations table of the organization, oldest first. Filters: id, investor_id, status, method, verified_on, expires_on, document_id, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor accreditations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["not_verified","self_certified","verified","expired","not_accredited"]},"description":"Only rows whose status equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["income","net_worth","professional_certification","entity_assets","knowledgeable_employee","third_party_letter","qualified_purchaser","other"]},"description":"Only rows whose method equals this."},{"name":"verified_on","in":"query","required":false,"schema":{"description":"Only rows whose verified_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose verified_on equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"post":{"operationId":"create_investor_accreditations_row","summary":"Create an investor accreditation","description":"History of accredited-investor verifications (self-certification, CPA/attorney letters, third-party verification). The latest row drives investors.accreditation_status.\n\nInserts one row of investor accreditations in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: investments.write.","tags":["Investor accreditations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"method":{"type":"string","enum":["income","net_worth","professional_certification","entity_assets","knowledgeable_employee","third_party_letter","qualified_purchaser","other"],"description":"method"},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"verifier_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Who verified: CPA, attorney, broker-dealer or verification service name."},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The verification letter or questionnaire in documents."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["investor_id","method"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_accreditations/{id}":{"get":{"operationId":"get_investor_accreditations_row","summary":"Get an investor accreditation","description":"History of accredited-investor verifications (self-certification, CPA/attorney letters, third-party verification). The latest row drives investors.accreditation_status.\n\nOne row of investor accreditations by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor accreditations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/investor_commitments":{"get":{"operationId":"list_investor_commitments","summary":"List investor commitments","description":"An investor's commitment to an offering and its pipeline stage: indicated (verbal interest) -> soft (reserved, not binding) -> hard (subscription documents signed, binding) -> funded (capital received in full). withdrawn / rejected end it. History in investor_commitment_events.\n\nPages through the investor commitments table of the organization, oldest first. Filters: id, offering_id, investor_id, status, indicated_on, soft_committed_on, hard_committed_on, funded_on, withdrawn_on, subscription_document_id, assigned_user_id, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor commitments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"offering_id","in":"query","required":false,"schema":{"description":"Only rows whose offering_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose offering_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["indicated","soft","hard","funded","withdrawn","rejected"]},"description":"Only rows whose status equals this."},{"name":"indicated_on","in":"query","required":false,"schema":{"description":"Only rows whose indicated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose indicated_on equals this."},{"name":"soft_committed_on","in":"query","required":false,"schema":{"description":"Only rows whose soft_committed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose soft_committed_on equals this."},{"name":"hard_committed_on","in":"query","required":false,"schema":{"description":"Only rows whose hard_committed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose hard_committed_on equals this."},{"name":"funded_on","in":"query","required":false,"schema":{"description":"Only rows whose funded_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose funded_on equals this."},{"name":"withdrawn_on","in":"query","required":false,"schema":{"description":"Only rows whose withdrawn_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose withdrawn_on equals this."},{"name":"subscription_document_id","in":"query","required":false,"schema":{"description":"Only rows whose subscription_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose subscription_document_id equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/investor_commitments/{id}":{"get":{"operationId":"get_investor_commitments_row","summary":"Get an investor commitment","description":"An investor's commitment to an offering and its pipeline stage: indicated (verbal interest) -> soft (reserved, not binding) -> hard (subscription documents signed, binding) -> funded (capital received in full). withdrawn / rejected end it. History in investor_commitment_events.\n\nOne row of investor commitments by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor commitments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investor_commitments_row","summary":"Update an investor commitment","description":"An investor's commitment to an offering and its pipeline stage: indicated (verbal interest) -> soft (reserved, not binding) -> hard (subscription documents signed, binding) -> funded (capital received in full). withdrawn / rejected end it. History in investor_commitment_events.\n\nChanges the given fields of one row of investor commitments and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investor commitments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"offering_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"offering id"},"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Committed capital, minor units. Funded amount is the sum of investor_contributions with this commitment_id."},"units":{"anyOf":[{"type":"number","description":"Units of the offering's share class issued for this commitment (credited to investor_positions when funded)."},{"type":"null"}]},"indicated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"indicated on"},{"type":"null"}]},"soft_committed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"soft committed on"},{"type":"null"}]},"hard_committed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"hard committed on"},{"type":"null"}]},"funded_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"funded on"},{"type":"null"}]},"withdrawn_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"withdrawn on"},{"type":"null"}]},"subscription_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Signed subscription agreement."},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_contributions":{"get":{"operationId":"list_investor_contributions","summary":"List investor contributions","description":"Capital an investor actually paid into an entity (the investor capital account's credits). Money row: inserted only by record_investor_contribution, which posts Dr bank / Cr OWNER_CONTRIBUTIONS (owner_id = entity owner, contact_id = investor contact, property_id = fund) in the same transaction. Opening-balance contributions (conversions) carry history without cash and post nothing. Never updated except to mark a reversal.\n\nPages through the investor contributions table of the organization, oldest first. Filters: id, investment_entity_id, investor_id, share_class_id, source, capital_call_allocation_id, commitment_id, contributed_on, property_id, bank_account_id, payment_transaction_id, journal_entry_id, reversal_journal_entry_id, created_by.\n\nNeeds one of: investments.read.","tags":["Investor contributions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"share_class_id","in":"query","required":false,"schema":{"description":"Only rows whose share_class_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose share_class_id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["capital_call","direct","opening_balance","transfer_in"]},"description":"Only rows whose source equals this."},{"name":"capital_call_allocation_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_call_allocation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_call_allocation_id equals this."},{"name":"commitment_id","in":"query","required":false,"schema":{"description":"Only rows whose commitment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose commitment_id equals this."},{"name":"contributed_on","in":"query","required":false,"schema":{"description":"Only rows whose contributed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose contributed_on equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/investor_contributions/{id}":{"get":{"operationId":"get_investor_contributions_row","summary":"Get an investor contribution","description":"Capital an investor actually paid into an entity (the investor capital account's credits). Money row: inserted only by record_investor_contribution, which posts Dr bank / Cr OWNER_CONTRIBUTIONS (owner_id = entity owner, contact_id = investor contact, property_id = fund) in the same transaction. Opening-balance contributions (conversions) carry history without cash and post nothing. Never updated except to mark a reversal.\n\nOne row of investor contributions by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Investor contributions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/investor_distributions":{"get":{"operationId":"list_investor_distributions","summary":"List investor distributions","description":"Payout to one investor from a paid waterfall run (sum of their allocations), and how it was delivered (ACH payment_transaction, check). The ledger effect is on the run's journal entry (one Dr OWNER_DISTRIBUTIONS line per investor). Money row: written by pay_waterfall_run; payout status updated by payment processing.\n\nPages through the investor distributions table of the organization, oldest first. Filters: id, waterfall_run_id, investor_id, method, status, payment_transaction_id, check_id, paid_on, failure_journal_entry_id.\n\nNeeds one of: investments.read.","tags":["Investor distributions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"waterfall_run_id","in":"query","required":false,"schema":{"description":"Only rows whose waterfall_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose waterfall_run_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["ach","check","wire","reinvest","hold"]},"description":"Only rows whose method equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","processing","paid","failed","reinvested","held"]},"description":"Only rows whose status equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"check_id","in":"query","required":false,"schema":{"description":"Only rows whose check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_id equals this."},{"name":"paid_on","in":"query","required":false,"schema":{"description":"Only rows whose paid_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paid_on equals this."},{"name":"failure_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose failure_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose failure_journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/investor_distributions/{id}":{"get":{"operationId":"get_investor_distributions_row","summary":"Get an investor distribution","description":"Payout to one investor from a paid waterfall run (sum of their allocations), and how it was delivered (ACH payment_transaction, check). The ledger effect is on the run's journal entry (one Dr OWNER_DISTRIBUTIONS line per investor). Money row: written by pay_waterfall_run; payout status updated by payment processing.\n\nOne row of investor distributions by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Investor distributions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/investor_documents":{"get":{"operationId":"list_investor_documents","summary":"List investor documents","description":"Documents delivered through the investor portal: per-investor (K-1s, subscription agreements, capital call / distribution notices) when investor_id is set, or entity-wide (PPM, operating agreement, quarterly reports) when investor_id is null. The file itself is in documents; investors see only published rows for themselves or their entities.\n\nPages through the investor documents table of the organization, oldest first. Filters: id, document_id, investment_entity_id, investor_id, document_type, period_ends_on, is_published, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor documents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"document_type","in":"query","required":false,"schema":{"description":"Only rows whose document_type equals this.","type":"string","enum":["k1","subscription_agreement","operating_agreement","ppm","capital_call_notice","distribution_notice","quarterly_report","annual_report","tax_estimate","accreditation_letter","other"]},"description":"Only rows whose document_type equals this."},{"name":"period_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose period_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_ends_on equals this."},{"name":"is_published","in":"query","required":false,"schema":{"description":"Only rows whose is_published equals this.","type":"boolean"},"description":"Only rows whose is_published equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/investor_documents/{id}":{"get":{"operationId":"get_investor_documents_row","summary":"Get an investor document","description":"Documents delivered through the investor portal: per-investor (K-1s, subscription agreements, capital call / distribution notices) when investor_id is set, or entity-wide (PPM, operating agreement, quarterly reports) when investor_id is null. The file itself is in documents; investors see only published rows for themselves or their entities.\n\nOne row of investor documents by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investor_documents_row","summary":"Update an investor document","description":"Documents delivered through the investor portal: per-investor (K-1s, subscription agreements, capital call / distribution notices) when investor_id is set, or entity-wide (PPM, operating agreement, quarterly reports) when investor_id is null. The file itself is in documents; investors see only published rows for themselves or their entities.\n\nChanges the given fields of one row of investor documents and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investor documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"document_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"investor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Recipient investor; null = shared with every investor holding a position in the entity."},{"type":"null"}]},"document_type":{"type":"string","enum":["k1","subscription_agreement","operating_agreement","ppm","capital_call_notice","distribution_notice","quarterly_report","annual_report","tax_estimate","accreditation_letter","other"],"description":"document type"},"tax_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tax year for K-1s and tax estimates."},{"type":"null"}]},"period_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Reporting period end for quarterly/annual reports."},{"type":"null"}]},"viewed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"First time the investor opened it in the portal (per-investor documents only)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_positions":{"get":{"operationId":"list_investor_positions","summary":"List investor positions","description":"An investor's holding of units in one share class of an entity (\"ownership by class\"). Units set the pro rata split of catch-up and promote tiers within the class; return of capital and preferred return follow capital accounts (investor_contributions less returned capital).\n\nPages through the investor positions table of the organization, oldest first. Filters: id, investment_entity_id, share_class_id, investor_id, admitted_on, exited_on.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor positions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"share_class_id","in":"query","required":false,"schema":{"description":"Only rows whose share_class_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose share_class_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"admitted_on","in":"query","required":false,"schema":{"description":"Only rows whose admitted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose admitted_on equals this."},{"name":"exited_on","in":"query","required":false,"schema":{"description":"Only rows whose exited_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose exited_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/investor_positions/{id}":{"get":{"operationId":"get_investor_positions_row","summary":"Get an investor position","description":"An investor's holding of units in one share class of an entity (\"ownership by class\"). Units set the pro rata split of catch-up and promote tiers within the class; return of capital and preferred return follow capital accounts (investor_contributions less returned capital).\n\nOne row of investor positions by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor positions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investor_positions_row","summary":"Update an investor position","description":"An investor's holding of units in one share class of an entity (\"ownership by class\"). Units set the pro rata split of catch-up and promote tiers within the class; return of capital and preferred return follow capital accounts (investor_contributions less returned capital).\n\nChanges the given fields of one row of investor positions and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investor positions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"share_class_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"share class id"},"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"units":{"type":"number","description":"Units / shares / percentage points held in the class. Pro rata share within the class = units / sum(units of the class)."},"admitted_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date admitted as a member/partner."},{"type":"null"}]},"exited_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the position was fully redeemed or transferred; null = current."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_tax_k1s":{"get":{"operationId":"list_investor_tax_k1s","summary":"List investor tax k1s","description":"Structured Schedule K-1 (Form 1065) data per investor, entity and tax year: the key boxes and the capital account roll-forward (item L), so K-1 reports and the assistant can sum and compare them. The issued PDF is linked through investor_document_id. A correction is a new version; the earlier one becomes amended. Investors see their own final and amended rows.\n\nPages through the investor tax k1s table of the organization, oldest first. Filters: id, investment_entity_id, investor_id, status, investor_document_id, issued_on, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor tax K1S"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","final","amended"]},"description":"Only rows whose status equals this."},{"name":"investor_document_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_document_id equals this."},{"name":"issued_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"post":{"operationId":"create_investor_tax_k1s_row","summary":"Create an investor tax k1","description":"Structured Schedule K-1 (Form 1065) data per investor, entity and tax year: the key boxes and the capital account roll-forward (item L), so K-1 reports and the assistant can sum and compare them. The issued PDF is linked through investor_document_id. A correction is a new version; the earlier one becomes amended. Investors see their own final and amended rows.\n\nInserts one row of investor tax k1s in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: investments.write.","tags":["Investor tax K1S"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Version for the investor, entity and year: 1 = original, 2+ = amended K-1s."},"investor_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The published K-1 file (investor_documents, document_type k1), when issued through the portal."},{"type":"null"}]},"profit_share_pct":{"anyOf":[{"type":"number","description":"Item J: partner's share of profit at year end (100 = 100%)."},{"type":"null"}]},"loss_share_pct":{"anyOf":[{"type":"number","description":"Item J: partner's share of loss at year end (100 = 100%)."},{"type":"null"}]},"capital_share_pct":{"anyOf":[{"type":"number","description":"Item J: partner's share of capital at year end (100 = 100%)."},{"type":"null"}]},"ordinary_business_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 1: ordinary business income (loss), signed."},"net_rental_real_estate_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 2: net rental real estate income (loss), signed. The main box for property partnerships."},"other_net_rental_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 3: other net rental income (loss), signed."},"guaranteed_payments_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 4: guaranteed payments to the partner."},"interest_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 5: interest income."},"ordinary_dividends_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 6a: ordinary dividends."},"net_short_term_capital_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 8: net short-term capital gain (loss), signed."},"net_long_term_capital_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 9a: net long-term capital gain (loss), signed."},"unrecaptured_section_1250_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 9c: unrecaptured section 1250 gain (depreciation recapture on real property sales)."},"net_section_1231_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 10: net section 1231 gain (loss), signed."},"section_179_deduction_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 12: section 179 deduction."},"distributions_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 19: distributions (cash and marketable securities) during the year."},"beginning_capital_account_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: beginning capital account, signed."},"capital_contributed_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: capital contributed during the year."},"current_year_net_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: current year net income (loss), signed."},"other_capital_changes_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: other increase (decrease), signed."},"withdrawals_distributions_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: withdrawals and distributions."},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the K-1 was issued to the investor (required once final or amended)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["investment_entity_id","investor_id","tax_year"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_tax_k1s/{id}":{"get":{"operationId":"get_investor_tax_k1s_row","summary":"Get an investor tax k1","description":"Structured Schedule K-1 (Form 1065) data per investor, entity and tax year: the key boxes and the capital account roll-forward (item L), so K-1 reports and the assistant can sum and compare them. The issued PDF is linked through investor_document_id. A correction is a new version; the earlier one becomes amended. Investors see their own final and amended rows.\n\nOne row of investor tax k1s by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investor tax K1S"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investor_tax_k1s_row","summary":"Update an investor tax k1","description":"Structured Schedule K-1 (Form 1065) data per investor, entity and tax year: the key boxes and the capital account roll-forward (item L), so K-1 reports and the assistant can sum and compare them. The issued PDF is linked through investor_document_id. A correction is a new version; the earlier one becomes amended. Investors see their own final and amended rows.\n\nChanges the given fields of one row of investor tax k1s and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investor tax K1S"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Version for the investor, entity and year: 1 = original, 2+ = amended K-1s."},"investor_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The published K-1 file (investor_documents, document_type k1), when issued through the portal."},{"type":"null"}]},"profit_share_pct":{"anyOf":[{"type":"number","description":"Item J: partner's share of profit at year end (100 = 100%)."},{"type":"null"}]},"loss_share_pct":{"anyOf":[{"type":"number","description":"Item J: partner's share of loss at year end (100 = 100%)."},{"type":"null"}]},"capital_share_pct":{"anyOf":[{"type":"number","description":"Item J: partner's share of capital at year end (100 = 100%)."},{"type":"null"}]},"ordinary_business_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 1: ordinary business income (loss), signed."},"net_rental_real_estate_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 2: net rental real estate income (loss), signed. The main box for property partnerships."},"other_net_rental_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 3: other net rental income (loss), signed."},"guaranteed_payments_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 4: guaranteed payments to the partner."},"interest_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 5: interest income."},"ordinary_dividends_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 6a: ordinary dividends."},"net_short_term_capital_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 8: net short-term capital gain (loss), signed."},"net_long_term_capital_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 9a: net long-term capital gain (loss), signed."},"unrecaptured_section_1250_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 9c: unrecaptured section 1250 gain (depreciation recapture on real property sales)."},"net_section_1231_gain_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 10: net section 1231 gain (loss), signed."},"section_179_deduction_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 12: section 179 deduction."},"distributions_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Box 19: distributions (cash and marketable securities) during the year."},"beginning_capital_account_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: beginning capital account, signed."},"capital_contributed_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: capital contributed during the year."},"current_year_net_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: current year net income (loss), signed."},"other_capital_changes_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: other increase (decrease), signed."},"withdrawals_distributions_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Item L: withdrawals and distributions."},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the K-1 was issued to the investor (required once final or amended)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investors":{"get":{"operationId":"list_investors","summary":"List investors","description":"An investor (person, trust, IRA or company) in the investor CRM: prospects in the fundraising pipeline and active investors with capital in investment entities. Name/email/phone live on the contact; W-9 / K-1 tax identity on tax_profiles.\n\nPages through the investors table of the organization, oldest first. Filters: id, contact_id, investor_kind, status, accreditation_status, accredited_on, accreditation_expires_on, tax_profile_id, distribution_method, assigned_user_id, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Investors"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"investor_kind","in":"query","required":false,"schema":{"description":"Only rows whose investor_kind equals this.","type":"string","enum":["individual","joint","trust","ira","entity","family_office","other"]},"description":"Only rows whose investor_kind equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["prospect","active","inactive","do_not_contact"]},"description":"Only rows whose status equals this."},{"name":"accreditation_status","in":"query","required":false,"schema":{"description":"Only rows whose accreditation_status equals this.","type":"string","enum":["not_verified","self_certified","verified","expired","not_accredited"]},"description":"Only rows whose accreditation_status equals this."},{"name":"accredited_on","in":"query","required":false,"schema":{"description":"Only rows whose accredited_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose accredited_on equals this."},{"name":"accreditation_expires_on","in":"query","required":false,"schema":{"description":"Only rows whose accreditation_expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose accreditation_expires_on equals this."},{"name":"tax_profile_id","in":"query","required":false,"schema":{"description":"Only rows whose tax_profile_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tax_profile_id equals this."},{"name":"distribution_method","in":"query","required":false,"schema":{"description":"Only rows whose distribution_method equals this.","type":"string","enum":["ach","check","wire","reinvest","hold"]},"description":"Only rows whose distribution_method equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]}},"/v1/investors/{id}":{"get":{"operationId":"get_investors_row","summary":"Get an investor","description":"An investor (person, trust, IRA or company) in the investor CRM: prospects in the fundraising pipeline and active investors with capital in investment entities. Name/email/phone live on the contact; W-9 / K-1 tax identity on tax_profiles.\n\nOne row of investors by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Investors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_investors_row","summary":"Update an investor","description":"An investor (person, trust, IRA or company) in the investor CRM: prospects in the fundraising pipeline and active investors with capital in investment entities. Name/email/phone live on the contact; W-9 / K-1 tax identity on tax_profiles.\n\nChanges the given fields of one row of investors and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Investors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"investor_kind":{"type":"string","enum":["individual","joint","trust","ira","entity","family_office","other"],"description":"investor kind"},"accredited_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date of the current accreditation verification."},{"type":"null"}]},"accreditation_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the current verification lapses (typically 90 days for 506(c) letters); after this the status is treated as expired."},{"type":"null"}]},"tax_profile_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The W-9 / W-8 used for this investor's K-1s (defaults to the contact's current tax_profiles row)."},{"type":"null"}]},"distribution_method":{"type":"string","enum":["ach","check","wire","reinvest","hold"],"description":"How this investor is paid distributions by default: ach, check, wire, reinvest (DRIP into the entity) or hold."},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Investor-relations staff member who owns the relationship."},{"type":"null"}]},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where the investor came from (referral, webinar, website...), free text for pipeline reporting."},{"type":"null"}]},"target_investment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Indicated typical check size, minor units, for fundraising planning."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/journal_entries":{"get":{"operationId":"list_journal_entries","summary":"List journal entries","description":"Journal entry header: one balanced business event in the general ledger. immutable once posted (corrections are reversals). Source documents (charges, receipts, bills, ...) hold journal_entry_id pointing here.\n\nPages through the journal entries table of the organization, oldest first. Filters: id, entry_date, accounting_period_id, entry_type, basis, is_manual, reverses_entry_id, created_by.\n\nNeeds one of: gl.read.","tags":["Journal entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"entry_date","in":"query","required":false,"schema":{"description":"Only rows whose entry_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose entry_date equals this."},{"name":"accounting_period_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_period_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_period_id equals this."},{"name":"entry_type","in":"query","required":false,"schema":{"description":"Only rows whose entry_type equals this.","type":"string","enum":["charge","receipt","receipt_allocation","receipt_reversal","credit","late_fee","nsf_fee","application_fee","convenience_fee","payment_plan","write_off","refund","chargeback","deposit_refund","security_deposit_disposition","bank_deposit","deposit_transfer","bank_transfer","inter_fund_transfer","processor_payout","processor_fee","bill","bill_payment","vendor_credit","owner_contribution","owner_distribution","owner_reserve","management_fee","leasing_fee","accrual","depreciation","opening_balance","period_close","adjustment","other","lease_transfer","prior_period_adjustment"]},"description":"Only rows whose entry_type equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["both","accrual","cash"]},"description":"Only rows whose basis equals this."},{"name":"is_manual","in":"query","required":false,"schema":{"description":"Only rows whose is_manual equals this.","type":"boolean"},"description":"Only rows whose is_manual equals this."},{"name":"reverses_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reverses_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reverses_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/journal_entries/{id}":{"get":{"operationId":"get_journal_entries_row","summary":"Get a journal entry","description":"Journal entry header: one balanced business event in the general ledger. immutable once posted (corrections are reversals). Source documents (charges, receipts, bills, ...) hold journal_entry_id pointing here.\n\nOne row of journal entries by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Journal entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/journal_entry_drafts":{"get":{"operationId":"list_journal_entry_drafts","summary":"List journal entry drafts","description":"A manual journal entry before it posts: a draft, an entry waiting for approval (the organization's approval rule, or proposed by someone without gl.write such as the outside accountant), a rejected one, or one that posted (journal_entry_id). Written only by save_journal_draft, approve_journal_draft, reject_journal_draft and delete_journal_draft; the journal itself is unchanged until approval.\n\nPages through the journal entry drafts table of the organization, oldest first. Filters: id, entry_date, entry_type, basis, reverse_on, needs_approval, created_by, submitted_by, edited_by, decided_by, journal_entry_id, reversal_entry_id.\n\nNeeds one of: gl.read.","tags":["Journal entry drafts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"entry_date","in":"query","required":false,"schema":{"description":"Only rows whose entry_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose entry_date equals this."},{"name":"entry_type","in":"query","required":false,"schema":{"description":"Only rows whose entry_type equals this.","type":"string","enum":["charge","receipt","receipt_allocation","receipt_reversal","credit","late_fee","nsf_fee","application_fee","convenience_fee","payment_plan","write_off","refund","chargeback","deposit_refund","security_deposit_disposition","bank_deposit","deposit_transfer","bank_transfer","inter_fund_transfer","processor_payout","processor_fee","bill","bill_payment","vendor_credit","owner_contribution","owner_distribution","owner_reserve","management_fee","leasing_fee","accrual","depreciation","opening_balance","period_close","adjustment","other","lease_transfer","prior_period_adjustment"]},"description":"Only rows whose entry_type equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["both","accrual","cash"]},"description":"Only rows whose basis equals this."},{"name":"reverse_on","in":"query","required":false,"schema":{"description":"Only rows whose reverse_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reverse_on equals this."},{"name":"needs_approval","in":"query","required":false,"schema":{"description":"Only rows whose needs_approval equals this.","type":"boolean"},"description":"Only rows whose needs_approval equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"edited_by","in":"query","required":false,"schema":{"description":"Only rows whose edited_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose edited_by equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/journal_entry_drafts/{id}":{"get":{"operationId":"get_journal_entry_drafts_row","summary":"Get a journal entry draft","description":"A manual journal entry before it posts: a draft, an entry waiting for approval (the organization's approval rule, or proposed by someone without gl.write such as the outside accountant), a rejected one, or one that posted (journal_entry_id). Written only by save_journal_draft, approve_journal_draft, reject_journal_draft and delete_journal_draft; the journal itself is unchanged until approval.\n\nOne row of journal entry drafts by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Journal entry drafts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/journal_lines":{"get":{"operationId":"list_journal_lines","summary":"List journal lines","description":"Journal entry lines: the single source of truth for every balance (tenant balances, owner cash, deposits held, bank book balances, AP, income statement). Signed amounts, debit positive. Immutable. Filter basis in (both, accrual) for accrual reports and basis in (both, cash) for cash reports; property_id is the fund (null = management company books).\n\nPages through the journal lines table of the organization, oldest first. Filters: id, journal_entry_id, gl_account_id, entry_date, basis, is_closing, property_id, unit_id, owner_id, lease_id, contact_id, vendor_id, bank_account_id, counterparty_property_id, bill_line_id, accounting_entity_id, homeowner_account_id.\n\nNeeds one of: gl.read.","tags":["Journal lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"entry_date","in":"query","required":false,"schema":{"description":"Only rows whose entry_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose entry_date equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["both","accrual","cash"]},"description":"Only rows whose basis equals this."},{"name":"is_closing","in":"query","required":false,"schema":{"description":"Only rows whose is_closing equals this.","type":"boolean"},"description":"Only rows whose is_closing equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"counterparty_property_id","in":"query","required":false,"schema":{"description":"Only rows whose counterparty_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose counterparty_property_id equals this."},{"name":"bill_line_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_line_id equals this."},{"name":"accounting_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_entity_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/journal_lines/{id}":{"get":{"operationId":"get_journal_lines_row","summary":"Get a journal line","description":"Journal entry lines: the single source of truth for every balance (tenant balances, owner cash, deposits held, bank book balances, AP, income statement). Signed amounts, debit positive. Immutable. Filter basis in (both, accrual) for accrual reports and basis in (both, cash) for cash reports; property_id is the fund (null = management company books).\n\nOne row of journal lines by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Journal lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/jurisdiction_rules":{"get":{"operationId":"list_jurisdiction_rules","summary":"List jurisdiction rules","description":"Effective-dated landlord-tenant rules per jurisdiction (security deposit caps, deposit return deadline, late fee caps and grace periods, notice periods, entry notice, rent increase notice and rent control caps, required disclosures and inspections, registration/licensing). org_id null = platform-curated; an org row for the same jurisdiction and rule_type overrides it for that org. Conditions narrow which properties a rule applies to.\n\nPages through the jurisdiction rules table of the organization, oldest first. Filters: id, jurisdiction_id, rule_type, value_boolean, value_unit, effective_on, ends_on, exempts_owner_occupied_small, last_verified_on, created_by.\n\nNeeds one of: compliance.write.","tags":["Jurisdiction rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"description":"Only rows whose jurisdiction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose jurisdiction_id equals this."},{"name":"rule_type","in":"query","required":false,"schema":{"description":"Only rows whose rule_type equals this.","type":"string","enum":["security_deposit_max_months","security_deposit_max_months_furnished","security_deposit_max_cents","deposit_return_days","deposit_interest_required","deposit_separate_account_required","deposit_receipt_days","move_in_inspection_required","late_fee_max_cents","late_fee_max_pct","grace_period_min_days","nsf_fee_max_cents","application_fee_max_cents","notice_to_vacate_days","landlord_termination_notice_days","entry_notice_hours","rent_increase_notice_days","rent_increase_notice_days_large","rent_control_cap_pct","rent_increase_max_per_year","just_cause_eviction","pay_or_quit_notice_days","source_of_income_protection","smoke_detector_inspection","carbon_monoxide_detector_required","lead_paint_disclosure","mold_disclosure","bed_bug_disclosure","flood_zone_disclosure","radon_disclosure","rental_registration_required","rental_license_required","rental_inspection_cadence_months","renters_insurance_requirement_allowed","pet_deposit_allowed","other"]},"description":"Only rows whose rule_type equals this."},{"name":"value_boolean","in":"query","required":false,"schema":{"description":"Only rows whose value_boolean equals this.","type":"boolean"},"description":"Only rows whose value_boolean equals this."},{"name":"value_unit","in":"query","required":false,"schema":{"description":"Only rows whose value_unit equals this.","type":"string","enum":["months","days","hours","percent","cents","boolean","count","text"]},"description":"Only rows whose value_unit equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"exempts_owner_occupied_small","in":"query","required":false,"schema":{"description":"Only rows whose exempts_owner_occupied_small equals this.","type":"boolean"},"description":"Only rows whose exempts_owner_occupied_small equals this."},{"name":"last_verified_on","in":"query","required":false,"schema":{"description":"Only rows whose last_verified_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_verified_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/jurisdiction_rules/{id}":{"get":{"operationId":"get_jurisdiction_rules_row","summary":"Get a jurisdiction rule","description":"Effective-dated landlord-tenant rules per jurisdiction (security deposit caps, deposit return deadline, late fee caps and grace periods, notice periods, entry notice, rent increase notice and rent control caps, required disclosures and inspections, registration/licensing). org_id null = platform-curated; an org row for the same jurisdiction and rule_type overrides it for that org. Conditions narrow which properties a rule applies to.\n\nOne row of jurisdiction rules by id, with every column the API shows.\n\nNeeds one of: compliance.write.","tags":["Jurisdiction rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/key_checkouts/{id}":{"get":{"operationId":"get_key_checkouts_row","summary":"Get a key checkout","description":"Key custody log: a key issued to a contact (tenant, vendor) or a staff user, and when it came back. Open checkouts have returned_at null.\n\nOne row of key checkouts by id, with every column the API shows.\n\nNeeds one of: maintenance.write, properties.read, properties.write.","tags":["Key checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.read","properties.write"]},"patch":{"operationId":"update_key_checkouts_row","summary":"Update a key checkout","description":"Key custody log: a key issued to a contact (tenant, vendor) or a staff user, and when it came back. Open checkouts have returned_at null.\n\nChanges the given fields of one row of key checkouts and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.write, properties.write.","tags":["Key checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"key id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Tenant, vendor or other contact holding the key. Exactly one of contact_id / user_id."},{"type":"null"}]},"user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff user holding the key. Exactly one of contact_id / user_id."},{"type":"null"}]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"quantity"},"checked_out_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"checked out at"},"due_back_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"due back at"},{"type":"null"}]},"returned_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"returned at"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.write"]}},"/v1/keys/{id}":{"get":{"operationId":"get_keys_row","summary":"Get a key","description":"Physical keys, fobs, remotes and access codes for a property or unit, and how many copies the office holds. Who has a copy is tracked in key_checkouts.\n\nOne row of keys by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Keys"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_keys_row","summary":"Update a key","description":"Physical keys, fobs, remotes and access codes for a property or unit, and how many copies the office holds. Who has a copy is tracked in key_checkouts.\n\nChanges the given fields of one row of keys and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Keys"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"key_type":{"type":"string","enum":["unit_door","mailbox","master","common_area","garage_remote","fob","access_card","lockbox","gate_code","other"],"description":"key type"},"label":{"type":"string","maxLength":100000,"description":"label"},"key_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stamped key number / fob id."},{"type":"null"}]},"copies_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"copies total"},"storage_location":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where the office copy is kept, e.g. \"Key box hook 14\"."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/labor_entries":{"get":{"operationId":"list_labor_entries","summary":"List labor entries","description":"Time logged on a work order by an in-house technician (user_id) or a vendor's worker (vendor_id). Write via add_labor_entry().\n\nPages through the labor entries table of the organization, oldest first. Filters: id, work_order_id, user_id, vendor_id, is_billable, entered_by.\n\nNeeds one of: maintenance.read.","tags":["Labor entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"is_billable","in":"query","required":false,"schema":{"description":"Only rows whose is_billable equals this.","type":"boolean"},"description":"Only rows whose is_billable equals this."},{"name":"entered_by","in":"query","required":false,"schema":{"description":"Only rows whose entered_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose entered_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/labor_entries/{id}":{"get":{"operationId":"get_labor_entries_row","summary":"Get a labor entry","description":"Time logged on a work order by an in-house technician (user_id) or a vendor's worker (vendor_id). Write via add_labor_entry().\n\nOne row of labor entries by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Labor entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/late_fee_assessments":{"get":{"operationId":"list_late_fee_assessments","summary":"List late fee assessments","description":"Each late fee charged: at most one initial fee per lease per monthly period and one daily fee per lease per day (unique indexes make the late fee run idempotent). Waiving a fee reverses its charge; the assessment row stays so the fee is not re-assessed.\n\nPages through the late fee assessments table of the organization, oldest first. Filters: id, lease_id, property_id, late_fee_policy_id, late_fee_run_id, kind, period_on, assessed_on, charge_id.\n\nNeeds one of: receivables.read.","tags":["Late fee assessments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"late_fee_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose late_fee_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose late_fee_policy_id equals this."},{"name":"late_fee_run_id","in":"query","required":false,"schema":{"description":"Only rows whose late_fee_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose late_fee_run_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["initial","daily"]},"description":"Only rows whose kind equals this."},{"name":"period_on","in":"query","required":false,"schema":{"description":"Only rows whose period_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_on equals this."},{"name":"assessed_on","in":"query","required":false,"schema":{"description":"Only rows whose assessed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose assessed_on equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/late_fee_assessments/{id}":{"get":{"operationId":"get_late_fee_assessments_row","summary":"Get a late fee assessment","description":"Each late fee charged: at most one initial fee per lease per monthly period and one daily fee per lease per day (unique indexes make the late fee run idempotent). Waiving a fee reverses its charge; the assessment row stays so the fee is not re-assessed.\n\nOne row of late fee assessments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Late fee assessments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/late_fee_policies":{"get":{"operationId":"list_late_fee_policies","summary":"List late fee policies","description":"Late fee rules, effective dated. Most specific wins: a lease-level row (exemption or override), else the property's, else the org default (property_id and lease_id null).\n\nPages through the late fee policies table of the organization, oldest first. Filters: id, property_id, lease_id, is_exempt, charge_type_id, fee_type, effective_on, ends_on, is_active, created_by.\n\nNeeds one of: receivables.read, settings.write.","tags":["Late fee policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"is_exempt","in":"query","required":false,"schema":{"description":"Only rows whose is_exempt equals this.","type":"boolean"},"description":"Only rows whose is_exempt equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"fee_type","in":"query","required":false,"schema":{"description":"Only rows whose fee_type equals this.","type":"string","enum":["flat","percent_of_rent","percent_of_balance"]},"description":"Only rows whose fee_type equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","settings.write"]}},"/v1/late_fee_policies/{id}":{"get":{"operationId":"get_late_fee_policies_row","summary":"Get a late fee policy","description":"Late fee rules, effective dated. Most specific wins: a lease-level row (exemption or override), else the property's, else the org default (property_id and lease_id null).\n\nOne row of late fee policies by id, with every column the API shows.\n\nNeeds one of: receivables.read, settings.write.","tags":["Late fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","settings.write"]},"patch":{"operationId":"update_late_fee_policies_row","summary":"Update a late fee policy","description":"Late fee rules, effective dated. Most specific wins: a lease-level row (exemption or override), else the property's, else the org default (property_id and lease_id null).\n\nChanges the given fields of one row of late fee policies and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Late fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Property the rule applies to; null with lease_id null = organization default."},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease-specific override (e.g. negotiated terms or an exemption)."},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"is_exempt":{"type":"boolean","description":"No late fees at this scope."},"charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type used for the fee; null = the LATE_FEE system type."},{"type":"null"}]},"due_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of month rent is due for this policy."},"grace_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days after due_day before a fee is assessed (due 1st + 5 grace days => first fee on the 7th)."},"fee_type":{"type":"string","enum":["flat","percent_of_rent","percent_of_balance"],"description":"fee type"},"fee_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Initial fee for fee_type = flat."},{"type":"null"}]},"fee_rate":{"anyOf":[{"type":"number","description":"Rate for percent fee types (0.05 = 5% of monthly rent or of the delinquent balance)."},{"type":"null"}]},"max_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on the initial fee."},{"type":"null"}]},"daily_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Additional fee per day after the initial fee while the balance stays delinquent."},{"type":"null"}]},"max_daily_fee_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum number of daily fees per period."},{"type":"null"}]},"max_total_per_period_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on all late fees (initial + daily) in one monthly period, e.g. a statutory maximum."},{"type":"null"}]},"min_balance_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"No fee unless the delinquent balance is at least this amount."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"delete":{"operationId":"delete_late_fee_policies_row","summary":"Delete a late fee policy","description":"Late fee rules, effective dated. Most specific wins: a lease-level row (exemption or override), else the property's, else the org default (property_id and lease_id null).\n\nDeletes one row of late fee policies. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Late fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/late_fee_runs":{"get":{"operationId":"list_late_fee_runs","summary":"List late fee runs","description":"Pages through the late fee runs table of the organization, oldest first. Filters: id, as_of, triggered_by.\n\nNeeds one of: receivables.read.","tags":["Late fee runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"as_of","in":"query","required":false,"schema":{"description":"Only rows whose as_of equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose as_of equals this."},{"name":"triggered_by","in":"query","required":false,"schema":{"description":"Only rows whose triggered_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose triggered_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/late_fee_runs/{id}":{"get":{"operationId":"get_late_fee_runs_row","summary":"Get a late fee run","description":"One row of late fee runs by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Late fee runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lead_events/{id}":{"get":{"operationId":"get_lead_events_row","summary":"Get a lead event","description":"Activity timeline of a lead: status changes (trigger-written), notes, calls, emails, SMS, showings, applications and automated / AI follow-ups. Append-mostly.\n\nOne row of lead events by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lead events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/lead_sources":{"get":{"operationId":"list_lead_sources","summary":"List lead sources","description":"Org-editable lookup of where prospects come from (Zillow, walk-in, referral, website...). Used for lead attribution and marketing ROI (leads and leases per source vs monthly_cost_cents).\n\nPages through the lead sources table of the organization, oldest first. Filters: id, channel, is_paid, is_active, is_system, created_by.\n\nNeeds one of: marketing.write, settings.write.","tags":["Lead sources"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"]},"description":"Only rows whose channel equals this."},{"name":"is_paid","in":"query","required":false,"schema":{"description":"Only rows whose is_paid equals this.","type":"boolean"},"description":"Only rows whose is_paid equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"is_system","in":"query","required":false,"schema":{"description":"Only rows whose is_system equals this.","type":"boolean"},"description":"Only rows whose is_system equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write","settings.write"]}},"/v1/lead_sources/{id}":{"get":{"operationId":"get_lead_sources_row","summary":"Get a lead source","description":"Org-editable lookup of where prospects come from (Zillow, walk-in, referral, website...). Used for lead attribution and marketing ROI (leads and leases per source vs monthly_cost_cents).\n\nOne row of lead sources by id, with every column the API shows.\n\nNeeds one of: marketing.write, settings.write.","tags":["Lead sources"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write","settings.write"]}},"/v1/lease_amendment_term_changes":{"get":{"operationId":"list_lease_amendment_term_changes","summary":"List lease amendment term changes","description":"Changes to recovery and rent terms that a lease amendment makes, each with its own effective date. Written by draft_lease_terms_amendment; applied when the amendment is executed: cam_terms adds a cam_participant_terms row, rent_escalation ends the escalations it replaces and starts a new one, percentage_rent ends the terms in force the day before and starts new ones. applied_record_id is the row it added. confirmed_reconciled: staff confirmed a date inside a year whose reconciliation is approved or posted.\n\nPages through the lease amendment term changes table of the organization, oldest first. Filters: id, property_id, lease_id, lease_amendment_id, change_kind, effective_on, cam_pool_participant_id, cap_type, cap_controllable_only, charge_type_id, escalation_type, last_effective_on, breakpoint_type, confirmed_reconciled, applied_record_id, created_by.\n\nNeeds one of: leasing.read.","tags":["Lease amendment term changes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"change_kind","in":"query","required":false,"schema":{"description":"Only rows whose change_kind equals this.","type":"string","enum":["cam_terms","rent_escalation","percentage_rent"]},"description":"Only rows whose change_kind equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"cam_pool_participant_id","in":"query","required":false,"schema":{"description":"Only rows whose cam_pool_participant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cam_pool_participant_id equals this."},{"name":"cap_type","in":"query","required":false,"schema":{"description":"Only rows whose cap_type equals this.","type":"string","enum":["none","fixed_amount","non_cumulative","cumulative"]},"description":"Only rows whose cap_type equals this."},{"name":"cap_controllable_only","in":"query","required":false,"schema":{"description":"Only rows whose cap_controllable_only equals this.","type":"boolean"},"description":"Only rows whose cap_controllable_only equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"escalation_type","in":"query","required":false,"schema":{"description":"Only rows whose escalation_type equals this.","type":"string","enum":["fixed_amount","fixed_percent","cpi","stepped","fair_market_value"]},"description":"Only rows whose escalation_type equals this."},{"name":"last_effective_on","in":"query","required":false,"schema":{"description":"Only rows whose last_effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_effective_on equals this."},{"name":"breakpoint_type","in":"query","required":false,"schema":{"description":"Only rows whose breakpoint_type equals this.","type":"string","enum":["natural","artificial"]},"description":"Only rows whose breakpoint_type equals this."},{"name":"confirmed_reconciled","in":"query","required":false,"schema":{"description":"Only rows whose confirmed_reconciled equals this.","type":"boolean"},"description":"Only rows whose confirmed_reconciled equals this."},{"name":"applied_record_id","in":"query","required":false,"schema":{"description":"Only rows whose applied_record_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose applied_record_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/lease_amendment_term_changes/{id}":{"get":{"operationId":"get_lease_amendment_term_changes_row","summary":"Get a lease amendment term change","description":"Changes to recovery and rent terms that a lease amendment makes, each with its own effective date. Written by draft_lease_terms_amendment; applied when the amendment is executed: cam_terms adds a cam_participant_terms row, rent_escalation ends the escalations it replaces and starts a new one, percentage_rent ends the terms in force the day before and starts new ones. applied_record_id is the row it added. confirmed_reconciled: staff confirmed a date inside a year whose reconciliation is approved or posted.\n\nOne row of lease amendment term changes by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Lease amendment term changes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/lease_amendments":{"get":{"operationId":"list_lease_amendments","summary":"List lease amendments","description":"Changes to a lease after signing (addenda): rent change, term extension, add/remove tenant, pet or parking addendum. Executing an amendment applies it (rent schedule row, end_on change, lease_tenants change) via execute_lease_amendment.\n\nPages through the lease amendments table of the organization, oldest first. Filters: id, lease_id, amendment_type, status, effective_on, new_end_on, contact_id, created_by.\n\nNeeds one of: leasing.write.","tags":["Lease amendments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"amendment_type","in":"query","required":false,"schema":{"description":"Only rows whose amendment_type equals this.","type":"string","enum":["rent_change","term_extension","term_shortening","add_tenant","remove_tenant","pet_addendum","parking","utility","unit_transfer","other"]},"description":"Only rows whose amendment_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","pending_signature","executed","voided"]},"description":"Only rows whose status equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"new_end_on","in":"query","required":false,"schema":{"description":"Only rows whose new_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose new_end_on equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"post":{"operationId":"create_lease_amendments_row","summary":"Create a lease amendment","description":"Changes to a lease after signing (addenda): rent change, term extension, add/remove tenant, pet or parking addendum. Executing an amendment applies it (rent schedule row, end_on change, lease_tenants change) via execute_lease_amendment.\n\nInserts one row of lease amendments in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Lease amendments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"amendment_type":{"type":"string","enum":["rent_change","term_extension","term_shortening","add_tenant","remove_tenant","pet_addendum","parking","utility","unit_transfer","other"],"description":"amendment type"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"new_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"For rent_change: monthly rent from effective_on."},{"type":"null"}]},"new_end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"For term_extension / term_shortening: the new end_on."},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"For add_tenant / remove_tenant: the person added or released."},{"type":"null"}]}},"required":["lease_id","amendment_type","effective_on","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_amendments/{id}":{"get":{"operationId":"get_lease_amendments_row","summary":"Get a lease amendment","description":"Changes to a lease after signing (addenda): rent change, term extension, add/remove tenant, pet or parking addendum. Executing an amendment applies it (rent schedule row, end_on change, lease_tenants change) via execute_lease_amendment.\n\nOne row of lease amendments by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Lease amendments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"patch":{"operationId":"update_lease_amendments_row","summary":"Update a lease amendment","description":"Changes to a lease after signing (addenda): rent change, term extension, add/remove tenant, pet or parking addendum. Executing an amendment applies it (rent schedule row, end_on change, lease_tenants change) via execute_lease_amendment.\n\nChanges the given fields of one row of lease amendments and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Lease amendments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"amendment_type":{"type":"string","enum":["rent_change","term_extension","term_shortening","add_tenant","remove_tenant","pet_addendum","parking","utility","unit_transfer","other"],"description":"amendment type"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"new_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"For rent_change: monthly rent from effective_on."},{"type":"null"}]},"new_end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"For term_extension / term_shortening: the new end_on."},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"For add_tenant / remove_tenant: the person added or released."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_balance_transfers":{"get":{"operationId":"list_lease_balance_transfers","summary":"List lease balance transfers","description":"Carry-over of a tenancy's money from one lease to the next (renewal, or unit transfer within the property) on the day the new lease starts, so the old lease nets to zero and every per-lease view (lease_ledger, lease_balance, deposits held) shows the money on the current lease. Open charges move as lease_transfer credit (old) + lease_transfer charge (new); unapplied credits and prepaid receipts move as lease_transfer credits / receipts; the deposit held moves Dr SECURITY_DEPOSITS_HELD (old) / Cr SECURITY_DEPOSITS_HELD (new). Autopay, payment restrictions and payment plans follow. Written only b\n\nPages through the lease balance transfers table of the organization, oldest first. Filters: id, from_lease_id, to_lease_id, property_id, transferred_on, ar_journal_entry_id, deposit_journal_entry_id, deposit_accrual_journal_entry_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Lease balance transfers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"from_lease_id","in":"query","required":false,"schema":{"description":"Only rows whose from_lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose from_lease_id equals this."},{"name":"to_lease_id","in":"query","required":false,"schema":{"description":"Only rows whose to_lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose to_lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"transferred_on","in":"query","required":false,"schema":{"description":"Only rows whose transferred_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose transferred_on equals this."},{"name":"ar_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose ar_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ar_journal_entry_id equals this."},{"name":"deposit_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_journal_entry_id equals this."},{"name":"deposit_accrual_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_accrual_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_accrual_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lease_balance_transfers/{id}":{"get":{"operationId":"get_lease_balance_transfers_row","summary":"Get a lease balance transfer","description":"Carry-over of a tenancy's money from one lease to the next (renewal, or unit transfer within the property) on the day the new lease starts, so the old lease nets to zero and every per-lease view (lease_ledger, lease_balance, deposits held) shows the money on the current lease. Open charges move as lease_transfer credit (old) + lease_transfer charge (new); unapplied credits and prepaid receipts move as lease_transfer credits / receipts; the deposit held moves Dr SECURITY_DEPOSITS_HELD (old) / Cr SECURITY_DEPOSITS_HELD (new). Autopay, payment restrictions and payment plans follow. Written only b\n\nOne row of lease balance transfers by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Lease balance transfers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lease_beds":{"get":{"operationId":"list_lease_beds","summary":"List lease beds","description":"Beds a by-the-bed lease holds, with dates. The bed must be in the lease's unit; one live (reserved or assigned) holder per bed per date.\n\nPages through the lease beds table of the organization, oldest first. Filters: id, lease_id, bed_id, unit_id, status, starts_on, ends_on, released_on, created_by.\n\nNeeds one of: leasing.read.","tags":["Lease beds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"bed_id","in":"query","required":false,"schema":{"description":"Only rows whose bed_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bed_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["reserved","assigned","released","canceled"]},"description":"Only rows whose status equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"released_on","in":"query","required":false,"schema":{"description":"Only rows whose released_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose released_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/lease_beds/{id}":{"get":{"operationId":"get_lease_beds_row","summary":"Get a lease bed","description":"Beds a by-the-bed lease holds, with dates. The bed must be in the lease's unit; one live (reserved or assigned) holder per bed per date.\n\nOne row of lease beds by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Lease beds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/lease_critical_dates":{"get":{"operationId":"list_lease_critical_dates","summary":"List lease critical dates","description":"Commercial lease critical dates (option notice deadlines, expirations, LC expiries, reporting deadlines) with an alert lead time. upcoming_lease_critical_dates() lists those inside their alert window.\n\nPages through the lease critical dates table of the organization, oldest first. Filters: id, property_id, lease_id, date_type, due_on, lease_option_id, lease_security_instrument_id, status, assigned_user_id, completed_by, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"date_type","in":"query","required":false,"schema":{"description":"Only rows whose date_type equals this.","type":"string","enum":["rent_commencement","lease_expiration","option_notice_deadline","option_window_opens","escalation","security_instrument_expiry","insurance_expiry","sales_report_due","cam_reconciliation_due","ti_allowance_expiry","guaranty_burn_off","co_tenancy","other"]},"description":"Only rows whose date_type equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"lease_option_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_option_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_option_id equals this."},{"name":"lease_security_instrument_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_security_instrument_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_security_instrument_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","completed","dismissed"]},"description":"Only rows whose status equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"completed_by","in":"query","required":false,"schema":{"description":"Only rows whose completed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose completed_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_lease_critical_dates_row","summary":"Create a lease critical date","description":"Commercial lease critical dates (option notice deadlines, expirations, LC expiries, reporting deadlines) with an alert lead time. upcoming_lease_critical_dates() lists those inside their alert window.\n\nInserts one row of lease critical dates in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"date_type":{"type":"string","enum":["rent_commencement","lease_expiration","option_notice_deadline","option_window_opens","escalation","security_instrument_expiry","insurance_expiry","sales_report_due","cam_reconciliation_due","ti_allowance_expiry","guaranty_burn_off","co_tenancy","other"],"description":"date type"},"due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},"alert_lead_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Start alerting this many days before due_on."},"lease_option_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease option id"},{"type":"null"}]},"lease_security_instrument_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease security instrument id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","lease_id","date_type","due_on","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_critical_dates/{id}":{"get":{"operationId":"get_lease_critical_dates_row","summary":"Get a lease critical date","description":"Commercial lease critical dates (option notice deadlines, expirations, LC expiries, reporting deadlines) with an alert lead time. upcoming_lease_critical_dates() lists those inside their alert window.\n\nOne row of lease critical dates by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_lease_critical_dates_row","summary":"Update a lease critical date","description":"Commercial lease critical dates (option notice deadlines, expirations, LC expiries, reporting deadlines) with an alert lead time. upcoming_lease_critical_dates() lists those inside their alert window.\n\nChanges the given fields of one row of lease critical dates and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"date_type":{"type":"string","enum":["rent_commencement","lease_expiration","option_notice_deadline","option_window_opens","escalation","security_instrument_expiry","insurance_expiry","sales_report_due","cam_reconciliation_due","ti_allowance_expiry","guaranty_burn_off","co_tenancy","other"],"description":"date type"},"due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},"alert_lead_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Start alerting this many days before due_on."},"lease_option_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease option id"},{"type":"null"}]},"lease_security_instrument_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease security instrument id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_lease_critical_dates_row","summary":"Delete a lease critical date","description":"Commercial lease critical dates (option notice deadlines, expirations, LC expiries, reporting deadlines) with an alert lead time. upcoming_lease_critical_dates() lists those inside their alert window.\n\nDeletes one row of lease critical dates. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_guaranties":{"get":{"operationId":"list_lease_guaranties","summary":"List lease guaranties","description":"Guaranty of a commercial lease by a person or company (contact). Residential co-signers are lease_tenants with role guarantor/cosigner; commercial guaranties add limits and burn-offs here.\n\nPages through the lease guaranties table of the organization, oldest first. Filters: id, property_id, lease_id, guarantor_contact_id, guaranty_type, signed_on, burn_off_on, released_on, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease guaranties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"guarantor_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose guarantor_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose guarantor_contact_id equals this."},{"name":"guaranty_type","in":"query","required":false,"schema":{"description":"Only rows whose guaranty_type equals this.","type":"string","enum":["full","limited","good_guy","corporate","other"]},"description":"Only rows whose guaranty_type equals this."},{"name":"signed_on","in":"query","required":false,"schema":{"description":"Only rows whose signed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose signed_on equals this."},{"name":"burn_off_on","in":"query","required":false,"schema":{"description":"Only rows whose burn_off_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose burn_off_on equals this."},{"name":"released_on","in":"query","required":false,"schema":{"description":"Only rows whose released_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose released_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/lease_guaranties/{id}":{"get":{"operationId":"get_lease_guaranties_row","summary":"Get a lease guaranty","description":"Guaranty of a commercial lease by a person or company (contact). Residential co-signers are lease_tenants with role guarantor/cosigner; commercial guaranties add limits and burn-offs here.\n\nOne row of lease guaranties by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease guaranties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/lease_notes":{"get":{"operationId":"list_lease_notes","summary":"List lease notes","description":"Internal staff notes on a lease (move-out remarks, negotiation history, entry or access details). Staff-only: tenants and owners can read the lease row but never these notes, which is why they are not a column on leases.\n\nPages through the lease notes table of the organization, oldest first. Filters: id, lease_id, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease notes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_lease_notes_row","summary":"Create a lease note","description":"Internal staff notes on a lease (move-out remarks, negotiation history, entry or access details). Staff-only: tenants and owners can read the lease row but never these notes, which is why they are not a column on leases.\n\nInserts one row of lease notes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Lease notes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"body":{"type":"string","maxLength":100000,"description":"body"}},"required":["lease_id","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_notes/{id}":{"get":{"operationId":"get_lease_notes_row","summary":"Get a lease note","description":"Internal staff notes on a lease (move-out remarks, negotiation history, entry or access details). Staff-only: tenants and owners can read the lease row but never these notes, which is why they are not a column on leases.\n\nOne row of lease notes by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_lease_notes_row","summary":"Update a lease note","description":"Internal staff notes on a lease (move-out remarks, negotiation history, entry or access details). Staff-only: tenants and owners can read the lease row but never these notes, which is why they are not a column on leases.\n\nChanges the given fields of one row of lease notes and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Lease notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"body":{"type":"string","maxLength":100000,"description":"body"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_lease_notes_row","summary":"Delete a lease note","description":"Internal staff notes on a lease (move-out remarks, negotiation history, entry or access details). Staff-only: tenants and owners can read the lease row but never these notes, which is why they are not a column on leases.\n\nDeletes one row of lease notes. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Lease notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_options":{"get":{"operationId":"list_lease_options","summary":"List lease options","description":"Options granted to a commercial tenant: renewal, expansion, contraction, early termination, purchase, ROFR / ROFO, relocation. Notice deadlines generate lease_critical_dates.\n\nPages through the lease options table of the organization, oldest first. Filters: id, property_id, lease_id, option_type, status, notice_window_opens_on, notice_deadline_on, effective_on, target_unit_id, exercised_on, resulting_lease_id, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease options"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"option_type","in":"query","required":false,"schema":{"description":"Only rows whose option_type equals this.","type":"string","enum":["renewal","expansion","contraction","early_termination","purchase","right_of_first_refusal","right_of_first_offer","relocation"]},"description":"Only rows whose option_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["available","notice_received","exercised","waived","expired","voided"]},"description":"Only rows whose status equals this."},{"name":"notice_window_opens_on","in":"query","required":false,"schema":{"description":"Only rows whose notice_window_opens_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose notice_window_opens_on equals this."},{"name":"notice_deadline_on","in":"query","required":false,"schema":{"description":"Only rows whose notice_deadline_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose notice_deadline_on equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"target_unit_id","in":"query","required":false,"schema":{"description":"Only rows whose target_unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose target_unit_id equals this."},{"name":"exercised_on","in":"query","required":false,"schema":{"description":"Only rows whose exercised_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose exercised_on equals this."},{"name":"resulting_lease_id","in":"query","required":false,"schema":{"description":"Only rows whose resulting_lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resulting_lease_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_lease_options_row","summary":"Create a lease option","description":"Options granted to a commercial tenant: renewal, expansion, contraction, early termination, purchase, ROFR / ROFO, relocation. Notice deadlines generate lease_critical_dates.\n\nInserts one row of lease options in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Lease options"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"option_type":{"type":"string","enum":["renewal","expansion","contraction","early_termination","purchase","right_of_first_refusal","right_of_first_offer","relocation"],"description":"option type"},"sequence_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Order among options of the same type (first renewal option = 1, second = 2)."},"term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"term months"},{"type":"null"}]},"notice_window_opens_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice window opens on"},{"type":"null"}]},"notice_deadline_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice deadline on"},{"type":"null"}]},"effective_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},{"type":"null"}]},"rent_terms":{"anyOf":[{"type":"string","maxLength":100000,"description":"rent terms"},{"type":"null"}]},"fmv_pct":{"anyOf":[{"type":"number","description":"Option rent as a percent of fair market value, 95 = 95% of FMV."},{"type":"null"}]},"fixed_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fixed rent cents"},{"type":"null"}]},"termination_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"termination fee cents"},{"type":"null"}]},"target_unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Space covered by an expansion / ROFR / ROFO / relocation option."},{"type":"null"}]},"exercised_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"exercised on"},{"type":"null"}]},"resulting_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease (renewal or expansion) created when the option was exercised."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","lease_id","option_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_options/{id}":{"get":{"operationId":"get_lease_options_row","summary":"Get a lease option","description":"Options granted to a commercial tenant: renewal, expansion, contraction, early termination, purchase, ROFR / ROFO, relocation. Notice deadlines generate lease_critical_dates.\n\nOne row of lease options by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_lease_options_row","summary":"Update a lease option","description":"Options granted to a commercial tenant: renewal, expansion, contraction, early termination, purchase, ROFR / ROFO, relocation. Notice deadlines generate lease_critical_dates.\n\nChanges the given fields of one row of lease options and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Lease options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"option_type":{"type":"string","enum":["renewal","expansion","contraction","early_termination","purchase","right_of_first_refusal","right_of_first_offer","relocation"],"description":"option type"},"sequence_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Order among options of the same type (first renewal option = 1, second = 2)."},"term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"term months"},{"type":"null"}]},"notice_window_opens_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice window opens on"},{"type":"null"}]},"notice_deadline_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice deadline on"},{"type":"null"}]},"effective_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},{"type":"null"}]},"rent_terms":{"anyOf":[{"type":"string","maxLength":100000,"description":"rent terms"},{"type":"null"}]},"fmv_pct":{"anyOf":[{"type":"number","description":"Option rent as a percent of fair market value, 95 = 95% of FMV."},{"type":"null"}]},"fixed_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fixed rent cents"},{"type":"null"}]},"termination_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"termination fee cents"},{"type":"null"}]},"target_unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Space covered by an expansion / ROFR / ROFO / relocation option."},{"type":"null"}]},"exercised_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"exercised on"},{"type":"null"}]},"resulting_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Lease (renewal or expansion) created when the option was exercised."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_lease_options_row","summary":"Delete a lease option","description":"Options granted to a commercial tenant: renewal, expansion, contraction, early termination, purchase, ROFR / ROFO, relocation. Notice deadlines generate lease_critical_dates.\n\nDeletes one row of lease options. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Lease options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_payment_overrides":{"get":{"operationId":"list_lease_payment_overrides","summary":"List lease payment overrides","description":"Append-only record of each receipt accepted on a lease despite a payment rule that would have refused it: the lease's certified-funds requirement (override_kind certified_funds, needs receivables.override) or any restriction when correct_offline_payment moves a deposited payment onto the lease (deposited_correction). Restrictions that block certified funds too (e.g. no cash, no payments during eviction) are never lifted by a certified-funds override.\n\nPages through the lease payment overrides table of the organization, oldest first. Filters: id, lease_id, property_id, receipt_id, override_kind, method, overridden_by.\n\nNeeds one of: receivables.read.","tags":["Lease payment overrides"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"override_kind","in":"query","required":false,"schema":{"description":"Only rows whose override_kind equals this.","type":"string","enum":["certified_funds","deposited_correction"]},"description":"Only rows whose override_kind equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"]},"description":"Only rows whose method equals this."},{"name":"overridden_by","in":"query","required":false,"schema":{"description":"Only rows whose overridden_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose overridden_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lease_payment_overrides/{id}":{"get":{"operationId":"get_lease_payment_overrides_row","summary":"Get a lease payment override","description":"Append-only record of each receipt accepted on a lease despite a payment rule that would have refused it: the lease's certified-funds requirement (override_kind certified_funds, needs receivables.override) or any restriction when correct_offline_payment moves a deposited payment onto the lease (deposited_correction). Restrictions that block certified funds too (e.g. no cash, no payments during eviction) are never lifted by a certified-funds override.\n\nOne row of lease payment overrides by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Lease payment overrides"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lease_payment_restrictions":{"get":{"operationId":"list_lease_payment_restrictions","summary":"List lease payment restrictions","description":"Methods a lease may not pay with during a date range, e.g. \"certified funds only\" (block ach and card) after repeated NSF returns, or \"no payments accepted\" during eviction.\n\nPages through the lease payment restrictions table of the organization, oldest first. Filters: id, lease_id, blocks_autopay, starts_on, ends_on, created_by, acceptance_mode, eviction_case_id, instructions_document_id, authorized_by, review_on.\n\nNeeds one of: receivables.read, receivables.write.","tags":["Lease payment restrictions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"blocks_autopay","in":"query","required":false,"schema":{"description":"Only rows whose blocks_autopay equals this.","type":"boolean"},"description":"Only rows whose blocks_autopay equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"acceptance_mode","in":"query","required":false,"schema":{"description":"Only rows whose acceptance_mode equals this.","type":"string","enum":["review","block"]},"description":"Only rows whose acceptance_mode equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"instructions_document_id","in":"query","required":false,"schema":{"description":"Only rows whose instructions_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose instructions_document_id equals this."},{"name":"authorized_by","in":"query","required":false,"schema":{"description":"Only rows whose authorized_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose authorized_by equals this."},{"name":"review_on","in":"query","required":false,"schema":{"description":"Only rows whose review_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose review_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/lease_payment_restrictions/{id}":{"get":{"operationId":"get_lease_payment_restrictions_row","summary":"Get a lease payment restriction","description":"Methods a lease may not pay with during a date range, e.g. \"certified funds only\" (block ach and card) after repeated NSF returns, or \"no payments accepted\" during eviction.\n\nOne row of lease payment restrictions by id, with every column the API shows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["Lease payment restrictions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/lease_rent_schedules":{"get":{"operationId":"list_lease_rent_schedules","summary":"List lease rent schedules","description":"Authoritative, effective-dated monthly base rent of a lease, including scheduled escalations and amendments. Periods never overlap; ends_on null = open-ended. Recurring rent charges and the rent roll read the row whose period contains the date. leases.rent_cents mirrors the row in effect today.\n\nPages through the lease rent schedules table of the organization, oldest first. Filters: id, lease_id, effective_on, ends_on, reason, lease_amendment_id, created_by.\n\nNeeds one of: leasing.write.","tags":["Lease rent schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"reason","in":"query","required":false,"schema":{"description":"Only rows whose reason equals this.","type":"string","enum":["initial","scheduled_escalation","renewal","amendment","market_adjustment","concession","correction","other"]},"description":"Only rows whose reason equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_rent_schedules/{id}":{"get":{"operationId":"get_lease_rent_schedules_row","summary":"Get a lease rent schedule","description":"Authoritative, effective-dated monthly base rent of a lease, including scheduled escalations and amendments. Periods never overlap; ends_on null = open-ended. Recurring rent charges and the rent roll read the row whose period contains the date. leases.rent_cents mirrors the row in effect today.\n\nOne row of lease rent schedules by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Lease rent schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_rent_share_plans":{"get":{"operationId":"list_lease_rent_share_plans","summary":"List lease rent share plans","description":"Rent shares of one lease: how they are set and whether the office locked them. The rows are in lease_rent_shares. A payment convenience only: the full rent stays owed jointly by every liable tenant. Written only by set_lease_rent_shares, set_lease_rent_shares_locked and clear_lease_rent_shares.\n\nPages through the lease rent share plans table of the organization, oldest first. Filters: id, lease_id, method, is_locked, locked_by, updated_by.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent share plans"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["percent","amount"]},"description":"Only rows whose method equals this."},{"name":"is_locked","in":"query","required":false,"schema":{"description":"Only rows whose is_locked equals this.","type":"boolean"},"description":"Only rows whose is_locked equals this."},{"name":"locked_by","in":"query","required":false,"schema":{"description":"Only rows whose locked_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose locked_by equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_share_plans/{id}":{"get":{"operationId":"get_lease_rent_share_plans_row","summary":"Get a lease rent share plan","description":"Rent shares of one lease: how they are set and whether the office locked them. The rows are in lease_rent_shares. A payment convenience only: the full rent stays owed jointly by every liable tenant. Written only by set_lease_rent_shares, set_lease_rent_shares_locked and clear_lease_rent_shares.\n\nOne row of lease rent share plans by id, with every column the API shows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent share plans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_share_proposal_lines":{"get":{"operationId":"list_lease_rent_share_proposal_lines","summary":"List lease rent share proposal lines","description":"One tenant's proposed share in a lease_rent_share_proposals row, and when that tenant confirmed it (the proposer confirms by proposing).\n\nPages through the lease rent share proposal lines table of the organization, oldest first. Filters: id, proposal_id, contact_id.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent share proposal lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"proposal_id","in":"query","required":false,"schema":{"description":"Only rows whose proposal_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose proposal_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_share_proposal_lines/{id}":{"get":{"operationId":"get_lease_rent_share_proposal_lines_row","summary":"Get a lease rent share proposal line","description":"One tenant's proposed share in a lease_rent_share_proposals row, and when that tenant confirmed it (the proposer confirms by proposing).\n\nOne row of lease rent share proposal lines by id, with every column the API shows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent share proposal lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_share_proposals":{"get":{"operationId":"list_lease_rent_share_proposals","summary":"List lease rent share proposals","description":"Rent shares a tenant proposed that change a roommate's share. They apply only when every share holder confirmed (respond_rent_share_proposal); until then the shares in force and every rent_share autopay stay as they were. A decline ends it; a newer proposal or an office change supersedes it. At most one pending per lease.\n\nPages through the lease rent share proposals table of the organization, oldest first. Filters: id, lease_id, method, proposed_by_contact_id, proposed_by.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent share proposals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["percent","amount"]},"description":"Only rows whose method equals this."},{"name":"proposed_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose proposed_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose proposed_by_contact_id equals this."},{"name":"proposed_by","in":"query","required":false,"schema":{"description":"Only rows whose proposed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose proposed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_share_proposals/{id}":{"get":{"operationId":"get_lease_rent_share_proposals_row","summary":"Get a lease rent share proposal","description":"Rent shares a tenant proposed that change a roommate's share. They apply only when every share holder confirmed (respond_rent_share_proposal); until then the shares in force and every rent_share autopay stay as they were. A decline ends it; a newer proposal or an office change supersedes it. At most one pending per lease.\n\nOne row of lease rent share proposals by id, with every column the API shows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent share proposals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_shares":{"get":{"operationId":"list_lease_rent_shares","summary":"List lease rent shares","description":"One tenant's share of the rent on a lease: share_pct for a percent plan, share_cents for an amount plan.\n\nPages through the lease rent shares table of the organization, oldest first. Filters: id, lease_id, contact_id.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent shares"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rent_shares/{id}":{"get":{"operationId":"get_lease_rent_shares_row","summary":"Get a lease rent share","description":"One tenant's share of the rent on a lease: share_pct for a percent plan, share_cents for an amount plan.\n\nOne row of lease rent shares by id, with every column the API shows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rent shares"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rentable_items":{"get":{"operationId":"list_lease_rentable_items","summary":"List lease rentable items","description":"A parking space, garage, storage locker or other rentable item (00004 rentable_items) assigned to a lease for a date range, with the monthly recurring charge that bills it (recurring_charge_id; none when included free, amount 0). An item is on at most one lease on any day. Managed by assign_rentable_item / end_rentable_item_assignment; carried to the renewal or transfer lease.\n\nPages through the lease rentable items table of the organization, oldest first. Filters: id, lease_id, property_id, rentable_item_id, starts_on, ends_on, recurring_charge_id, created_by.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rentable items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"rentable_item_id","in":"query","required":false,"schema":{"description":"Only rows whose rentable_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rentable_item_id equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"recurring_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_charge_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_rentable_items/{id}":{"get":{"operationId":"get_lease_rentable_items_row","summary":"Get a lease rentable item","description":"A parking space, garage, storage locker or other rentable item (00004 rentable_items) assigned to a lease for a date range, with the monthly recurring charge that bills it (recurring_charge_id; none when included free, amount 0). An item is on at most one lease on any day. Managed by assign_rentable_item / end_rentable_item_assignment; carried to the renewal or transfer lease.\n\nOne row of lease rentable items by id, with every column the API shows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Lease rentable items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/lease_security_instruments":{"get":{"operationId":"list_lease_security_instruments","summary":"List lease security instruments","description":"Non-cash or supplemental security for a commercial lease: letters of credit, surety bonds, CDs. Cash deposits are charged through receivables; this table tracks the instrument, its expiry and draws.\n\nPages through the lease security instruments table of the organization, oldest first. Filters: id, property_id, lease_id, instrument_type, status, issued_on, expires_on, is_evergreen, released_on, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease security instruments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"instrument_type","in":"query","required":false,"schema":{"description":"Only rows whose instrument_type equals this.","type":"string","enum":["cash_deposit","letter_of_credit","surety_bond","certificate_of_deposit","other"]},"description":"Only rows whose instrument_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","active","drawn","reduced","released","expired"]},"description":"Only rows whose status equals this."},{"name":"issued_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_on equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"is_evergreen","in":"query","required":false,"schema":{"description":"Only rows whose is_evergreen equals this.","type":"boolean"},"description":"Only rows whose is_evergreen equals this."},{"name":"released_on","in":"query","required":false,"schema":{"description":"Only rows whose released_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose released_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_lease_security_instruments_row","summary":"Create a lease security instrument","description":"Non-cash or supplemental security for a commercial lease: letters of credit, surety bonds, CDs. Cash deposits are charged through receivables; this table tracks the instrument, its expiry and draws.\n\nInserts one row of lease security instruments in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Lease security instruments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"instrument_type":{"type":"string","enum":["cash_deposit","letter_of_credit","surety_bond","certificate_of_deposit","other"],"description":"instrument type"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"issuer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"issuer name"},{"type":"null"}]},"instrument_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"instrument number"},{"type":"null"}]},"beneficiary_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"beneficiary name"},{"type":"null"}]},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"is_evergreen":{"type":"boolean","description":"Letter of credit renews automatically unless the issuer gives notice (evergreen_notice_days before expiry)."},"evergreen_notice_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"evergreen notice days"},{"type":"null"}]},"reduction_schedule":{"anyOf":[{"type":"string","maxLength":100000,"description":"Free-text burn-down schedule as written in the lease (e.g. \"reduce by 25% after year 2 if no default\")."},{"type":"null"}]},"drawn_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total drawn against the instrument by the landlord to date."},"released_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"released on"},{"type":"null"}]},"document_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"document storage path"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","lease_id","instrument_type","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_security_instruments/{id}":{"get":{"operationId":"get_lease_security_instruments_row","summary":"Get a lease security instrument","description":"Non-cash or supplemental security for a commercial lease: letters of credit, surety bonds, CDs. Cash deposits are charged through receivables; this table tracks the instrument, its expiry and draws.\n\nOne row of lease security instruments by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Lease security instruments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_lease_security_instruments_row","summary":"Update a lease security instrument","description":"Non-cash or supplemental security for a commercial lease: letters of credit, surety bonds, CDs. Cash deposits are charged through receivables; this table tracks the instrument, its expiry and draws.\n\nChanges the given fields of one row of lease security instruments and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Lease security instruments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"instrument_type":{"type":"string","enum":["cash_deposit","letter_of_credit","surety_bond","certificate_of_deposit","other"],"description":"instrument type"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"issuer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"issuer name"},{"type":"null"}]},"instrument_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"instrument number"},{"type":"null"}]},"beneficiary_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"beneficiary name"},{"type":"null"}]},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"is_evergreen":{"type":"boolean","description":"Letter of credit renews automatically unless the issuer gives notice (evergreen_notice_days before expiry)."},"evergreen_notice_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"evergreen notice days"},{"type":"null"}]},"reduction_schedule":{"anyOf":[{"type":"string","maxLength":100000,"description":"Free-text burn-down schedule as written in the lease (e.g. \"reduce by 25% after year 2 if no default\")."},{"type":"null"}]},"drawn_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total drawn against the instrument by the landlord to date."},"released_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"released on"},{"type":"null"}]},"document_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"document storage path"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_lease_security_instruments_row","summary":"Delete a lease security instrument","description":"Non-cash or supplemental security for a commercial lease: letters of credit, surety bonds, CDs. Cash deposits are charged through receivables; this table tracks the instrument, its expiry and draws.\n\nDeletes one row of lease security instruments. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Lease security instruments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_tenants":{"get":{"operationId":"list_lease_tenants","summary":"List lease tenants","description":"People on a lease (each a contact): primary (exactly one), co_tenant, occupant (lives there, not liable), guarantor / cosigner (liable, may not live there).\n\nPages through the lease tenants table of the organization, oldest first. Filters: id, lease_id, contact_id, role, is_financially_responsible, moved_in_on, moved_out_on, added_on, removed_on, created_by, previous_autopay_rule.\n\nNeeds one of: leasing.write.","tags":["Lease tenants"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"role","in":"query","required":false,"schema":{"description":"Only rows whose role equals this.","type":"string","enum":["primary","co_tenant","occupant","guarantor","cosigner"]},"description":"Only rows whose role equals this."},{"name":"is_financially_responsible","in":"query","required":false,"schema":{"description":"Only rows whose is_financially_responsible equals this.","type":"boolean"},"description":"Only rows whose is_financially_responsible equals this."},{"name":"moved_in_on","in":"query","required":false,"schema":{"description":"Only rows whose moved_in_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose moved_in_on equals this."},{"name":"moved_out_on","in":"query","required":false,"schema":{"description":"Only rows whose moved_out_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose moved_out_on equals this."},{"name":"added_on","in":"query","required":false,"schema":{"description":"Only rows whose added_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose added_on equals this."},{"name":"removed_on","in":"query","required":false,"schema":{"description":"Only rows whose removed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose removed_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"previous_autopay_rule","in":"query","required":false,"schema":{"description":"Only rows whose previous_autopay_rule equals this.","type":"string","enum":["full_balance","fixed_amount","rent_only","rent_share"]},"description":"Only rows whose previous_autopay_rule equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"post":{"operationId":"create_lease_tenants_row","summary":"Create a lease tenant","description":"People on a lease (each a contact): primary (exactly one), co_tenant, occupant (lives there, not liable), guarantor / cosigner (liable, may not live there).\n\nInserts one row of lease tenants in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Lease tenants"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"role":{"type":"string","enum":["primary","co_tenant","occupant","guarantor","cosigner"],"description":"role"},"is_financially_responsible":{"type":"boolean","description":"Jointly liable for rent and charges (shown on the tenant ledger, may pay online). Occupants never are; guarantors and cosigners always are."},"relationship_to_primary":{"anyOf":[{"type":"string","maxLength":100000,"description":"relationship to primary"},{"type":"null"}]},"moved_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When this person moved in (defaults to the lease move-in)."},{"type":"null"}]},"moved_out_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When this person moved out (a roommate can leave before the lease ends)."},{"type":"null"}]},"added_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the person was added to an existing lease (via amendment); null = on the lease from the start."},{"type":"null"}]},"removed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the person was released from the lease (via amendment); null = still on it."},{"type":"null"}]},"previous_autopay_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of the month this resident's autopay ran in the company's previous system (00125). The autopay form starts on this day; the resident confirms it."},{"type":"null"}]},"previous_autopay_rule":{"anyOf":[{"type":"string","enum":["full_balance","fixed_amount","rent_only","rent_share"],"description":"What that autopay paid: the full balance, rent only, or a fixed amount (previous_autopay_amount_cents)."},{"type":"null"}]},"previous_autopay_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"previous autopay amount cents"},{"type":"null"}]}},"required":["lease_id","contact_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_tenants/{id}":{"get":{"operationId":"get_lease_tenants_row","summary":"Get a lease tenant","description":"People on a lease (each a contact): primary (exactly one), co_tenant, occupant (lives there, not liable), guarantor / cosigner (liable, may not live there).\n\nOne row of lease tenants by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Lease tenants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"patch":{"operationId":"update_lease_tenants_row","summary":"Update a lease tenant","description":"People on a lease (each a contact): primary (exactly one), co_tenant, occupant (lives there, not liable), guarantor / cosigner (liable, may not live there).\n\nChanges the given fields of one row of lease tenants and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Lease tenants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"role":{"type":"string","enum":["primary","co_tenant","occupant","guarantor","cosigner"],"description":"role"},"is_financially_responsible":{"type":"boolean","description":"Jointly liable for rent and charges (shown on the tenant ledger, may pay online). Occupants never are; guarantors and cosigners always are."},"relationship_to_primary":{"anyOf":[{"type":"string","maxLength":100000,"description":"relationship to primary"},{"type":"null"}]},"moved_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When this person moved in (defaults to the lease move-in)."},{"type":"null"}]},"moved_out_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When this person moved out (a roommate can leave before the lease ends)."},{"type":"null"}]},"added_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the person was added to an existing lease (via amendment); null = on the lease from the start."},{"type":"null"}]},"removed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the person was released from the lease (via amendment); null = still on it."},{"type":"null"}]},"previous_autopay_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Day of the month this resident's autopay ran in the company's previous system (00125). The autopay form starts on this day; the resident confirms it."},{"type":"null"}]},"previous_autopay_rule":{"anyOf":[{"type":"string","enum":["full_balance","fixed_amount","rent_only","rent_share"],"description":"What that autopay paid: the full balance, rent only, or a fixed amount (previous_autopay_amount_cents)."},{"type":"null"}]},"previous_autopay_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"previous autopay amount cents"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_lease_tenants_row","summary":"Delete a lease tenant","description":"People on a lease (each a contact): primary (exactly one), co_tenant, occupant (lives there, not liable), guarantor / cosigner (liable, may not live there).\n\nDeletes one row of lease tenants. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Lease tenants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_utility_setups":{"get":{"operationId":"list_lease_utility_setups","summary":"List lease utility setups","description":"A resident (or staff for them) confirming a utility is in their name for this lease (confirm_utility_setup). Drives the utilities item of the move-in checklist.\n\nPages through the lease utility setups table of the organization, oldest first. Filters: id, lease_id, resident_utility_id, confirmed_by_contact_id, confirmed_by_user_id.\n\nNeeds one of: leasing.read.","tags":["Lease utility setups"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"resident_utility_id","in":"query","required":false,"schema":{"description":"Only rows whose resident_utility_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resident_utility_id equals this."},{"name":"confirmed_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose confirmed_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose confirmed_by_contact_id equals this."},{"name":"confirmed_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose confirmed_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose confirmed_by_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/lease_utility_setups/{id}":{"get":{"operationId":"get_lease_utility_setups_row","summary":"Get a lease utility setup","description":"A resident (or staff for them) confirming a utility is in their name for this lease (confirm_utility_setup). Drives the utilities item of the move-in checklist.\n\nOne row of lease utility setups by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Lease utility setups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/legal_notices":{"get":{"operationId":"list_legal_notices","summary":"List legal notices","description":"Statutory notices served on tenants: pay rent or quit, cure or quit, unconditional quit, notice to vacate / terminate tenancy, notice of entry, lease violation, rent increase, non-renewal, abandonment. Records service date, method and the response deadline; the notice PDF and proof of service are documents. Serve with serve_legal_notice().\n\nPages through the legal notices table of the organization, oldest first. Filters: id, lease_id, property_id, unit_id, eviction_case_id, notice_type, status, served_on, served_method, deadline_on, cured_on, document_id, proof_of_service_document_id, created_by.\n\nNeeds one of: legal.read, legal.write.","tags":["Legal notices"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"notice_type","in":"query","required":false,"schema":{"description":"Only rows whose notice_type equals this.","type":"string","enum":["pay_or_quit","cure_or_quit","unconditional_quit","notice_to_vacate","entry","lease_violation","rent_increase","non_renewal","abandonment","other"]},"description":"Only rows whose notice_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","served","cured","expired","withdrawn"]},"description":"Only rows whose status equals this."},{"name":"served_on","in":"query","required":false,"schema":{"description":"Only rows whose served_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose served_on equals this."},{"name":"served_method","in":"query","required":false,"schema":{"description":"Only rows whose served_method equals this.","type":"string","enum":["personal","substitute","posting_and_mailing","certified_mail","first_class_mail","email","portal","process_server","sheriff"]},"description":"Only rows whose served_method equals this."},{"name":"deadline_on","in":"query","required":false,"schema":{"description":"Only rows whose deadline_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose deadline_on equals this."},{"name":"cured_on","in":"query","required":false,"schema":{"description":"Only rows whose cured_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cured_on equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"proof_of_service_document_id","in":"query","required":false,"schema":{"description":"Only rows whose proof_of_service_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose proof_of_service_document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]}},"/v1/legal_notices/{id}":{"get":{"operationId":"get_legal_notices_row","summary":"Get a legal notice","description":"Statutory notices served on tenants: pay rent or quit, cure or quit, unconditional quit, notice to vacate / terminate tenancy, notice of entry, lease violation, rent increase, non-renewal, abandonment. Records service date, method and the response deadline; the notice PDF and proof of service are documents. Serve with serve_legal_notice().\n\nOne row of legal notices by id, with every column the API shows.\n\nNeeds one of: legal.read, legal.write.","tags":["Legal notices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","legal.write"]},"patch":{"operationId":"update_legal_notices_row","summary":"Update a legal notice","description":"Statutory notices served on tenants: pay rent or quit, cure or quit, unconditional quit, notice to vacate / terminate tenancy, notice of entry, lease violation, rent increase, non-renewal, abandonment. Records service date, method and the response deadline; the notice PDF and proof of service are documents. Serve with serve_legal_notice().\n\nChanges the given fields of one row of legal notices and returns it. Fields left out stay as they are.\n\nNeeds one of: legal.write.","tags":["Legal notices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"eviction_case_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"eviction case id"},{"type":"null"}]},"notice_type":{"type":"string","enum":["pay_or_quit","cure_or_quit","unconditional_quit","notice_to_vacate","entry","lease_violation","rent_increase","non_renewal","abandonment","other"],"description":"notice type"},"notice_period_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days the tenant has to comply / vacate (from the jurisdiction rules or the lease)."},{"type":"null"}]},"amount_demanded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rent demanded in a pay-or-quit notice, minor units (many states forbid including late fees)."},{"type":"null"}]},"violation_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"violation description"},{"type":"null"}]},"entry_starts_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Notice of entry: start of the entry window."},{"type":"null"}]},"entry_ends_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"entry ends at"},{"type":"null"}]},"served_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"served on"},{"type":"null"}]},"served_method":{"anyOf":[{"type":"string","enum":["personal","substitute","posting_and_mailing","certified_mail","first_class_mail","email","portal","process_server","sheriff"],"description":"served method"},{"type":"null"}]},"deadline_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day for the tenant to pay / cure / vacate. Computed as served_on + notice_period_days when not given (jurisdictions that exclude weekends/holidays should pass it explicitly)."},{"type":"null"}]},"cured_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"cured on"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"proof_of_service_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"proof of service document id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/legal_referral_packets":{"get":{"operationId":"list_legal_referral_packets","summary":"List legal referral packets","description":"The exact packet sent to counsel, frozen: ledger cutoff date, balance and its tenant and subsidy parts, contents (resident, unit, owner entity, lease and amendments, dated ledger lines, notices, payment plans, documents) as a snapshot payload, the items that were missing, who approved it and when it went out. Later ledger activity never changes it (referral_balance_changes compares).\n\nPages through the legal referral packets table of the organization, oldest first. Filters: id, referral_id, property_id, ledger_cutoff_on, approved_by.\n\nNeeds one of: legal.read.","tags":["Legal referral packets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"referral_id","in":"query","required":false,"schema":{"description":"Only rows whose referral_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose referral_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"ledger_cutoff_on","in":"query","required":false,"schema":{"description":"Only rows whose ledger_cutoff_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ledger_cutoff_on equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/legal_referral_packets/{id}":{"get":{"operationId":"get_legal_referral_packets_row","summary":"Get a legal referral packet","description":"The exact packet sent to counsel, frozen: ledger cutoff date, balance and its tenant and subsidy parts, contents (resident, unit, owner entity, lease and amendments, dated ledger lines, notices, payment plans, documents) as a snapshot payload, the items that were missing, who approved it and when it went out. Later ledger activity never changes it (referral_balance_changes compares).\n\nOne row of legal referral packets by id, with every column the API shows.\n\nNeeds one of: legal.read.","tags":["Legal referral packets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/legal_referrals":{"get":{"operationId":"list_legal_referrals","summary":"List legal referrals","description":"An account's path from meeting a collections policy to counsel and back: identify, validate, approve, refer, track, resolve. arrears_cents and subsidy_cents are the amounts when identified; the frozen packet sent to counsel is legal_referral_packets. The person who validates cannot also approve.\n\nPages through the legal referrals table of the organization, oldest first. Filters: id, lease_id, property_id, policy_id, stage, owner_user_id, next_action_on, validated_by, approved_by, attorney_vendor_id, eviction_case_id, created_by.\n\nNeeds one of: legal.read.","tags":["Legal referrals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"policy_id","in":"query","required":false,"schema":{"description":"Only rows whose policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose policy_id equals this."},{"name":"stage","in":"query","required":false,"schema":{"description":"Only rows whose stage equals this.","type":"string","enum":["identified","validated","approved","referred","tracking","resolved","withdrawn"]},"description":"Only rows whose stage equals this."},{"name":"owner_user_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_user_id equals this."},{"name":"next_action_on","in":"query","required":false,"schema":{"description":"Only rows whose next_action_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_action_on equals this."},{"name":"validated_by","in":"query","required":false,"schema":{"description":"Only rows whose validated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose validated_by equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"attorney_vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose attorney_vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose attorney_vendor_id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/legal_referrals/{id}":{"get":{"operationId":"get_legal_referrals_row","summary":"Get a legal referral","description":"An account's path from meeting a collections policy to counsel and back: identify, validate, approve, refer, track, resolve. arrears_cents and subsidy_cents are the amounts when identified; the frozen packet sent to counsel is legal_referral_packets. The person who validates cannot also approve.\n\nOne row of legal referrals by id, with every column the API shows.\n\nNeeds one of: legal.read.","tags":["Legal referrals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read"]}},"/v1/lihtc_noncompliance_findings":{"get":{"operationId":"list_lihtc_noncompliance_findings","summary":"List lihtc noncompliance findings","description":"The IRS Form 8823 noncompliance log of a tax credit program: each finding (from the state agency's monitoring review or found by staff), its Form 8823 category, when the noncompliance began, when it was discovered, when it was corrected and when the agency was told. Open = corrected_on is null.\n\nPages through the lihtc noncompliance findings table of the organization, oldest first. Filters: id, housing_program_id, property_id, building_id, unit_id, finding_type, noncompliance_on, discovered_on, corrected_on, agency_notified_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["LIHTC noncompliance findings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"finding_type","in":"query","required":false,"schema":{"description":"Only rows whose finding_type equals this.","type":"string","enum":["income_over_limit_at_move_in","income_certification_not_corrected","physical_condition","annual_certification_missing","eligible_basis_change","minimum_set_aside_failed","gross_rent_over_limit","not_available_to_public","available_unit_rule","vacant_unit_rule","extended_use_agreement","student_household","utility_allowance","no_monitoring_response","transient_use","out_of_program","other"]},"description":"Only rows whose finding_type equals this."},{"name":"noncompliance_on","in":"query","required":false,"schema":{"description":"Only rows whose noncompliance_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose noncompliance_on equals this."},{"name":"discovered_on","in":"query","required":false,"schema":{"description":"Only rows whose discovered_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose discovered_on equals this."},{"name":"corrected_on","in":"query","required":false,"schema":{"description":"Only rows whose corrected_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose corrected_on equals this."},{"name":"agency_notified_on","in":"query","required":false,"schema":{"description":"Only rows whose agency_notified_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose agency_notified_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_lihtc_noncompliance_findings_row","summary":"Create a lihtc noncompliance finding","description":"The IRS Form 8823 noncompliance log of a tax credit program: each finding (from the state agency's monitoring review or found by staff), its Form 8823 category, when the noncompliance began, when it was discovered, when it was corrected and when the agency was told. Open = corrected_on is null.\n\nInserts one row of lihtc noncompliance findings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["LIHTC noncompliance findings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"finding_type":{"type":"string","enum":["income_over_limit_at_move_in","income_certification_not_corrected","physical_condition","annual_certification_missing","eligible_basis_change","minimum_set_aside_failed","gross_rent_over_limit","not_available_to_public","available_unit_rule","vacant_unit_rule","extended_use_agreement","student_household","utility_allowance","no_monitoring_response","transient_use","out_of_program","other"],"description":"finding type"},"description":{"type":"string","maxLength":100000,"description":"description"},"noncompliance_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the building or unit went out of compliance (Form 8823 line 9), when known."},{"type":"null"}]},"discovered_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"discovered on"},"corrected_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the noncompliance was corrected (Form 8823 line 10); null while open."},{"type":"null"}]},"agency_notified_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the owner reported the finding or its correction to the state allocating agency."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["housing_program_id","property_id","finding_type","description","discovered_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/lihtc_noncompliance_findings/{id}":{"get":{"operationId":"get_lihtc_noncompliance_findings_row","summary":"Get a lihtc noncompliance finding","description":"The IRS Form 8823 noncompliance log of a tax credit program: each finding (from the state agency's monitoring review or found by staff), its Form 8823 category, when the noncompliance began, when it was discovered, when it was corrected and when the agency was told. Open = corrected_on is null.\n\nOne row of lihtc noncompliance findings by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["LIHTC noncompliance findings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_lihtc_noncompliance_findings_row","summary":"Update a lihtc noncompliance finding","description":"The IRS Form 8823 noncompliance log of a tax credit program: each finding (from the state agency's monitoring review or found by staff), its Form 8823 category, when the noncompliance began, when it was discovered, when it was corrected and when the agency was told. Open = corrected_on is null.\n\nChanges the given fields of one row of lihtc noncompliance findings and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["LIHTC noncompliance findings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"finding_type":{"type":"string","enum":["income_over_limit_at_move_in","income_certification_not_corrected","physical_condition","annual_certification_missing","eligible_basis_change","minimum_set_aside_failed","gross_rent_over_limit","not_available_to_public","available_unit_rule","vacant_unit_rule","extended_use_agreement","student_household","utility_allowance","no_monitoring_response","transient_use","out_of_program","other"],"description":"finding type"},"description":{"type":"string","maxLength":100000,"description":"description"},"noncompliance_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the building or unit went out of compliance (Form 8823 line 9), when known."},{"type":"null"}]},"discovered_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"discovered on"},"corrected_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the noncompliance was corrected (Form 8823 line 10); null while open."},{"type":"null"}]},"agency_notified_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Date the owner reported the finding or its correction to the state allocating agency."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/listing_holds":{"get":{"operationId":"list_listing_holds","summary":"List listing holds","description":"A unit or listing held for an approved application while its lease is pending. Written only by triggers and relist_listing. While open, the unit listing is pending and a floor-plan listing counts one unit fewer; the unit status does not change, so reports still count the unit as vacant until move-in. History: kept after it ends.\n\nPages through the listing holds table of the organization, oldest first. Filters: id, property_id, application_id, listing_id, unit_id, ended_by.\n\nNeeds one of: leasing.read.","tags":["Listing holds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"listing_id","in":"query","required":false,"schema":{"description":"Only rows whose listing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose listing_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"ended_by","in":"query","required":false,"schema":{"description":"Only rows whose ended_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ended_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/listing_holds/{id}":{"get":{"operationId":"get_listing_holds_row","summary":"Get a listing hold","description":"A unit or listing held for an approved application while its lease is pending. Written only by triggers and relist_listing. While open, the unit listing is pending and a floor-plan listing counts one unit fewer; the unit status does not change, so reports still count the unit as vacant until move-in. History: kept after it ends.\n\nOne row of listing holds by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Listing holds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/listing_monthly_fees":{"get":{"operationId":"list_listing_monthly_fees","summary":"List listing monthly fees","description":"Monthly fees advertised with listings: a row without listing_id applies to every listing of the property, a row with listing_id to that listing only. Required fees (trash, pest control, flat utility fees, required renters insurance when billed) add to the asking rent as the total monthly price on the public listing page, in feeds and on the staff and owner screens; optional fees (pets, parking, storage) are listed apart. Advertising only: lease charges are set on the lease.\n\nPages through the listing monthly fees table of the organization, oldest first. Filters: id, property_id, listing_id, fee_type, is_required, created_by.\n\nNeeds one of: marketing.write.","tags":["Listing monthly fees"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"listing_id","in":"query","required":false,"schema":{"description":"Only rows whose listing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose listing_id equals this."},{"name":"fee_type","in":"query","required":false,"schema":{"description":"Only rows whose fee_type equals this.","type":"string","enum":["trash","pest_control","utility","amenity","technology","renters_insurance","parking","pet","storage","other"]},"description":"Only rows whose fee_type equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]},"post":{"operationId":"create_listing_monthly_fees_row","summary":"Create a listing monthly fee","description":"Monthly fees advertised with listings: a row without listing_id applies to every listing of the property, a row with listing_id to that listing only. Required fees (trash, pest control, flat utility fees, required renters insurance when billed) add to the asking rent as the total monthly price on the public listing page, in feeds and on the staff and owner screens; optional fees (pets, parking, storage) are listed apart. Advertising only: lease charges are set on the lease.\n\nInserts one row of listing monthly fees in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: marketing.write.","tags":["Listing monthly fees"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The one listing this fee applies to; null = every listing of the property."},{"type":"null"}]},"fee_type":{"type":"string","enum":["trash","pest_control","utility","amenity","technology","renters_insurance","parking","pet","storage","other"],"description":"fee type"},"name":{"type":"string","maxLength":100000,"description":"The fee as prospects read it, e.g. \"Trash and recycling\"."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat monthly amount (minor units)."},"is_required":{"type":"boolean","description":"True = every resident pays it, so it is part of the total monthly price; false = only residents who choose it (a pet, a parking space)."},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Removed from listings; kept for history."},{"type":"null"}]}},"required":["property_id","fee_type","name","amount_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/listing_monthly_fees/{id}":{"get":{"operationId":"get_listing_monthly_fees_row","summary":"Get a listing monthly fee","description":"Monthly fees advertised with listings: a row without listing_id applies to every listing of the property, a row with listing_id to that listing only. Required fees (trash, pest control, flat utility fees, required renters insurance when billed) add to the asking rent as the total monthly price on the public listing page, in feeds and on the staff and owner screens; optional fees (pets, parking, storage) are listed apart. Advertising only: lease charges are set on the lease.\n\nOne row of listing monthly fees by id, with every column the API shows.\n\nNeeds one of: marketing.write.","tags":["Listing monthly fees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]},"patch":{"operationId":"update_listing_monthly_fees_row","summary":"Update a listing monthly fee","description":"Monthly fees advertised with listings: a row without listing_id applies to every listing of the property, a row with listing_id to that listing only. Required fees (trash, pest control, flat utility fees, required renters insurance when billed) add to the asking rent as the total monthly price on the public listing page, in feeds and on the staff and owner screens; optional fees (pets, parking, storage) are listed apart. Advertising only: lease charges are set on the lease.\n\nChanges the given fields of one row of listing monthly fees and returns it. Fields left out stay as they are.\n\nNeeds one of: marketing.write.","tags":["Listing monthly fees"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The one listing this fee applies to; null = every listing of the property."},{"type":"null"}]},"fee_type":{"type":"string","enum":["trash","pest_control","utility","amenity","technology","renters_insurance","parking","pet","storage","other"],"description":"fee type"},"name":{"type":"string","maxLength":100000,"description":"The fee as prospects read it, e.g. \"Trash and recycling\"."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat monthly amount (minor units)."},"is_required":{"type":"boolean","description":"True = every resident pays it, so it is part of the total monthly price; false = only residents who choose it (a pet, a parking space)."},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Removed from listings; kept for history."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/listing_photos":{"get":{"operationId":"list_listing_photos","summary":"List listing photos","description":"Ordered photo set of a listing. Each row reuses an existing property photo (property_photo_id) or unit photo (unit_photo_id), or points at a listing-specific upload (storage_path): exactly one of the three.\n\nPages through the listing photos table of the organization, oldest first. Filters: id, listing_id, property_photo_id, unit_photo_id, is_cover, is_ai_enhanced, created_by.\n\nNeeds one of: marketing.write.","tags":["Listing photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"listing_id","in":"query","required":false,"schema":{"description":"Only rows whose listing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose listing_id equals this."},{"name":"property_photo_id","in":"query","required":false,"schema":{"description":"Only rows whose property_photo_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_photo_id equals this."},{"name":"unit_photo_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_photo_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_photo_id equals this."},{"name":"is_cover","in":"query","required":false,"schema":{"description":"Only rows whose is_cover equals this.","type":"boolean"},"description":"Only rows whose is_cover equals this."},{"name":"is_ai_enhanced","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_enhanced equals this.","type":"boolean"},"description":"Only rows whose is_ai_enhanced equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]},"post":{"operationId":"create_listing_photos_row","summary":"Create a listing photo","description":"Ordered photo set of a listing. Each row reuses an existing property photo (property_photo_id) or unit photo (unit_photo_id), or points at a listing-specific upload (storage_path): exactly one of the three.\n\nInserts one row of listing photos in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: marketing.write.","tags":["Listing photos"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},"property_photo_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property photo id"},{"type":"null"}]},"unit_photo_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit photo id"},{"type":"null"}]},"storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"Path in the Supabase Storage bucket \"listing-photos\" for listing-only images (e.g. staged or AI-enhanced). Starts with the org_id folder (\"<org_id>/...\"), with no \".\" / \"..\" or empty segments."},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"caption":{"anyOf":[{"type":"string","maxLength":100000,"description":"caption"},{"type":"null"}]},"alt_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Accessibility text; may be AI-generated."},{"type":"null"}]},"is_cover":{"type":"boolean","description":"Primary image shown in search results; at most one per listing."},"is_ai_enhanced":{"type":"boolean","description":"Image was AI-edited (virtual staging, sky replacement); some channels require disclosure."}},"required":["listing_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/listing_photos/{id}":{"get":{"operationId":"get_listing_photos_row","summary":"Get a listing photo","description":"Ordered photo set of a listing. Each row reuses an existing property photo (property_photo_id) or unit photo (unit_photo_id), or points at a listing-specific upload (storage_path): exactly one of the three.\n\nOne row of listing photos by id, with every column the API shows.\n\nNeeds one of: marketing.write.","tags":["Listing photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]},"patch":{"operationId":"update_listing_photos_row","summary":"Update a listing photo","description":"Ordered photo set of a listing. Each row reuses an existing property photo (property_photo_id) or unit photo (unit_photo_id), or points at a listing-specific upload (storage_path): exactly one of the three.\n\nChanges the given fields of one row of listing photos and returns it. Fields left out stay as they are.\n\nNeeds one of: marketing.write.","tags":["Listing photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},"property_photo_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property photo id"},{"type":"null"}]},"unit_photo_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit photo id"},{"type":"null"}]},"storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"Path in the Supabase Storage bucket \"listing-photos\" for listing-only images (e.g. staged or AI-enhanced). Starts with the org_id folder (\"<org_id>/...\"), with no \".\" / \"..\" or empty segments."},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"caption":{"anyOf":[{"type":"string","maxLength":100000,"description":"caption"},{"type":"null"}]},"alt_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"Accessibility text; may be AI-generated."},{"type":"null"}]},"is_cover":{"type":"boolean","description":"Primary image shown in search results; at most one per listing."},"is_ai_enhanced":{"type":"boolean","description":"Image was AI-edited (virtual staging, sky replacement); some channels require disclosure."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]},"delete":{"operationId":"delete_listing_photos_row","summary":"Delete a listing photo","description":"Ordered photo set of a listing. Each row reuses an existing property photo (property_photo_id) or unit photo (unit_photo_id), or points at a listing-specific upload (storage_path): exactly one of the three.\n\nDeletes one row of listing photos. The database refuses it where other records still need the row.\n\nNeeds one of: marketing.write.","tags":["Listing photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/listing_syndications":{"get":{"operationId":"list_listing_syndications","summary":"List listing syndications","description":"Publication of a listing to one outside channel (Zillow, Apartments.com, ...). Kept in sync by the syndication Edge Function; one row per listing and channel.\n\nPages through the listing syndications table of the organization, oldest first. Filters: id, listing_id, channel, status, created_by, is_selected.\n\nNeeds one of: marketing.write.","tags":["Listing syndications"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"listing_id","in":"query","required":false,"schema":{"description":"Only rows whose listing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose listing_id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"]},"description":"Only rows whose channel equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","published","failed","paused","pending_removal","removed"]},"description":"Only rows whose status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"is_selected","in":"query","required":false,"schema":{"description":"Only rows whose is_selected equals this.","type":"boolean"},"description":"Only rows whose is_selected equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/listing_syndications/{id}":{"get":{"operationId":"get_listing_syndications_row","summary":"Get a listing syndication","description":"Publication of a listing to one outside channel (Zillow, Apartments.com, ...). Kept in sync by the syndication Edge Function; one row per listing and channel.\n\nOne row of listing syndications by id, with every column the API shows.\n\nNeeds one of: marketing.write.","tags":["Listing syndications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]},"patch":{"operationId":"update_listing_syndications_row","summary":"Update a listing syndication","description":"Publication of a listing to one outside channel (Zillow, Apartments.com, ...). Kept in sync by the syndication Edge Function; one row per listing and channel.\n\nChanges the given fields of one row of listing syndications and returns it. Fields left out stay as they are.\n\nNeeds one of: marketing.write.","tags":["Listing syndications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},"channel":{"type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"],"description":"channel"},"external_listing_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"The channel's own id for the listing, used for updates, removal and attributing inbound leads."},{"type":"null"}]},"external_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"external url"},{"type":"null"}]},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Last successful push of listing content/price to the channel."},{"type":"null"}]},"last_error":{"anyOf":[{"type":"string","maxLength":100000,"description":"last error"},{"type":"null"}]},"removed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"removed at"},{"type":"null"}]},"is_selected":{"type":"boolean","description":"Staff currently want the listing on this channel (set by public.set_listing_syndication_channels). A deselected row keeps its history and status (pending_removal, then removed) but is never revived when the listing is reactivated."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/loan_hedges":{"get":{"operationId":"list_loan_hedges","summary":"List loan hedges","description":"An interest rate cap, swap or collar bought for a floating-rate loan: counterparty, notional, strike (the capped or swapped rate) and the expiry, which lenders usually require to be extended before it passes. Reference data; nothing posts to the journal. Written by save_loan_hedge and archive_loan_hedge.\n\nPages through the loan hedges table of the organization, oldest first. Filters: id, property_id, loan_id, effective_on, expires_on, created_by.\n\nNeeds one of: properties.read.","tags":["Loan hedges"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"loan_id","in":"query","required":false,"schema":{"description":"Only rows whose loan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose loan_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/loan_hedges/{id}":{"get":{"operationId":"get_loan_hedges_row","summary":"Get a loan hedge","description":"An interest rate cap, swap or collar bought for a floating-rate loan: counterparty, notional, strike (the capped or swapped rate) and the expiry, which lenders usually require to be extended before it passes. Reference data; nothing posts to the journal. Written by save_loan_hedge and archive_loan_hedge.\n\nOne row of loan hedges by id, with every column the API shows.\n\nNeeds one of: properties.read.","tags":["Loan hedges"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/loan_reserve_draws":{"get":{"operationId":"list_loan_reserve_draws","summary":"List loan reserve draws","description":"A replacement reserve draw request: the paid bills (loan_reserve_draw_bills) a property asks its lender to reimburse from the loan's replacement reserve. The requested amount is the sum of its bills (derived). draft -> submitted -> funded. Funding records the date and amount the lender paid and can request a reserve draw (property_reserve_transactions, posted on approval). Written only by the loan reserve draw RPCs.\n\nPages through the loan reserve draws table of the organization, oldest first. Filters: id, property_id, loan_id, period_start_on, period_end_on, submitted_by, funded_on, funded_by, reserve_transaction_id, created_by.\n\nNeeds one of: payables.read, properties.read.","tags":["Loan reserve draws"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"loan_id","in":"query","required":false,"schema":{"description":"Only rows whose loan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose loan_id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"funded_on","in":"query","required":false,"schema":{"description":"Only rows whose funded_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose funded_on equals this."},{"name":"funded_by","in":"query","required":false,"schema":{"description":"Only rows whose funded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose funded_by equals this."},{"name":"reserve_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose reserve_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reserve_transaction_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","properties.read"]}},"/v1/loan_reserve_draws/{id}":{"get":{"operationId":"get_loan_reserve_draws_row","summary":"Get a loan reserve draw","description":"A replacement reserve draw request: the paid bills (loan_reserve_draw_bills) a property asks its lender to reimburse from the loan's replacement reserve. The requested amount is the sum of its bills (derived). draft -> submitted -> funded. Funding records the date and amount the lender paid and can request a reserve draw (property_reserve_transactions, posted on approval). Written only by the loan reserve draw RPCs.\n\nOne row of loan reserve draws by id, with every column the API shows.\n\nNeeds one of: payables.read, properties.read.","tags":["Loan reserve draws"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","properties.read"]}},"/v1/lockbox_batches":{"get":{"operationId":"list_lockbox_batches","summary":"List lockbox batches","description":"One bank lockbox deposit imported from the bank's file: the deposit date, total and items the bank reported, into one bank account. Written only by the lockbox RPCs; posting records the receipts and one deposit (deposit_id) whose total equals file_total_cents.\n\nPages through the lockbox batches table of the organization, oldest first. Filters: id, bank_account_id, file_format, deposit_date, status, file_document_id, images_document_id, deposit_id, posted_by, created_by.\n\nNeeds one of: receivables.read.","tags":["Lockbox batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"file_format","in":"query","required":false,"schema":{"description":"Only rows whose file_format equals this.","type":"string","enum":["bai2","bai_lockbox","csv"]},"description":"Only rows whose file_format equals this."},{"name":"deposit_date","in":"query","required":false,"schema":{"description":"Only rows whose deposit_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose deposit_date equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["review","posted","canceled"]},"description":"Only rows whose status equals this."},{"name":"file_document_id","in":"query","required":false,"schema":{"description":"Only rows whose file_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose file_document_id equals this."},{"name":"images_document_id","in":"query","required":false,"schema":{"description":"Only rows whose images_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose images_document_id equals this."},{"name":"deposit_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_id equals this."},{"name":"posted_by","in":"query","required":false,"schema":{"description":"Only rows whose posted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose posted_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lockbox_batches/{id}":{"get":{"operationId":"get_lockbox_batches_row","summary":"Get a lockbox batch","description":"One bank lockbox deposit imported from the bank's file: the deposit date, total and items the bank reported, into one bank account. Written only by the lockbox RPCs; posting records the receipts and one deposit (deposit_id) whose total equals file_total_cents.\n\nOne row of lockbox batches by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Lockbox batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lockbox_item_lines":{"get":{"operationId":"list_lockbox_item_lines","summary":"List lockbox item lines","description":"The approved application of a lockbox item: one line per lease (a check for several tenants splits). A line with hap_contract_id pays that subsidy's charges through record_hap_payment; a line without one pays the tenant's own charges through the manual receipt path (an agency named on the remittance paying arrears, such as an HRA one-shot deal, is this kind). Lines change only while the batch is in review; receipt_id or hap_payment_id is set when the batch posts.\n\nPages through the lockbox item lines table of the organization, oldest first. Filters: id, lockbox_item_id, lease_id, hap_contract_id, period_month, receipt_id, hap_payment_id.\n\nNeeds one of: receivables.read.","tags":["Lockbox item lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lockbox_item_id","in":"query","required":false,"schema":{"description":"Only rows whose lockbox_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lockbox_item_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"period_month","in":"query","required":false,"schema":{"description":"Only rows whose period_month equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_month equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"hap_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_payment_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lockbox_item_lines/{id}":{"get":{"operationId":"get_lockbox_item_lines_row","summary":"Get a lockbox item line","description":"The approved application of a lockbox item: one line per lease (a check for several tenants splits). A line with hap_contract_id pays that subsidy's charges through record_hap_payment; a line without one pays the tenant's own charges through the manual receipt path (an agency named on the remittance paying arrears, such as an HRA one-shot deal, is this kind). Lines change only while the batch is in review; receipt_id or hap_payment_id is set when the batch posts.\n\nOne row of lockbox item lines by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Lockbox item lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lockbox_items":{"get":{"operationId":"list_lockbox_items","summary":"List lockbox items","description":"One check (or other item) in a lockbox batch as the bank reported it: amount, check number, payer, remitter address, the stub's reference text, the bank's batch and item numbers, and its images. The match a person approves is lockbox_item_lines; an item held in suspense posts as unidentified money of suspense_property_id.\n\nPages through the lockbox items table of the organization, oldest first. Filters: id, lockbox_batch_id, check_document_id, stub_document_id, status, suspense_property_id, suspense_receipt_id, decided_by.\n\nNeeds one of: receivables.read.","tags":["Lockbox items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lockbox_batch_id","in":"query","required":false,"schema":{"description":"Only rows whose lockbox_batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lockbox_batch_id equals this."},{"name":"check_document_id","in":"query","required":false,"schema":{"description":"Only rows whose check_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_document_id equals this."},{"name":"stub_document_id","in":"query","required":false,"schema":{"description":"Only rows whose stub_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose stub_document_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","approved","suspense","posted"]},"description":"Only rows whose status equals this."},{"name":"suspense_property_id","in":"query","required":false,"schema":{"description":"Only rows whose suspense_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose suspense_property_id equals this."},{"name":"suspense_receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose suspense_receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose suspense_receipt_id equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lockbox_items/{id}":{"get":{"operationId":"get_lockbox_items_row","summary":"Get a lockbox item","description":"One check (or other item) in a lockbox batch as the bank reported it: amount, check number, payer, remitter address, the stub's reference text, the bank's batch and item numbers, and its images. The match a person approves is lockbox_item_lines; an item held in suspense posts as unidentified money of suspense_property_id.\n\nOne row of lockbox items by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Lockbox items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/mail_batches":{"get":{"operationId":"list_mail_batches","summary":"List mail batches","description":"A batch of sent arrears letters (collections_letters) to print and mail through the mail provider (Lob; the mock provider locally). Staff approve each batch; nothing is mailed while it is a draft. Written only by draft_collections_mail_batch, set_mail_piece_included, approve_mail_batch and cancel_mail_batch.\n\nPages through the mail batches table of the organization, oldest first. Filters: id, status, approved_by, created_by.\n\nNeeds one of: receivables.read.","tags":["Mail batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","approved","canceled","done"]},"description":"Only rows whose status equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/mail_batches/{id}":{"get":{"operationId":"get_mail_batches_row","summary":"Get a mail batch","description":"A batch of sent arrears letters (collections_letters) to print and mail through the mail provider (Lob; the mock provider locally). Staff approve each batch; nothing is mailed while it is a draft. Written only by draft_collections_mail_batch, set_mail_piece_included, approve_mail_batch and cancel_mail_batch.\n\nOne row of mail batches by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Mail batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/mail_piece_events":{"get":{"operationId":"list_mail_piece_events","summary":"List mail piece events","description":"Tracking events from the mail provider, once each by provider event id.\n\nPages through the mail piece events table of the organization, oldest first. Filters: id, piece_id.\n\nNeeds one of: communications.read.","tags":["Mail piece events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"piece_id","in":"query","required":false,"schema":{"description":"Only rows whose piece_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose piece_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/mail_piece_events/{id}":{"get":{"operationId":"get_mail_piece_events_row","summary":"Get a mail piece event","description":"Tracking events from the mail provider, once each by provider event id.\n\nOne row of mail piece events by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Mail piece events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/mail_pieces":{"get":{"operationId":"list_mail_pieces","summary":"List mail pieces","description":"One arrears letter PDF to print and mail: the address as of drafting (the tenant's unit at the property). Staff download the approved batch as one PDF (/api/mail-batches/[id]/print) and mark it mailed.\n\nPages through the mail pieces table of the organization, oldest first. Filters: id, batch_id, collections_letter_id, lease_id, property_id, document_id, status, expected_delivery_on.\n\nNeeds one of: receivables.read.","tags":["Mail pieces"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"batch_id","in":"query","required":false,"schema":{"description":"Only rows whose batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose batch_id equals this."},{"name":"collections_letter_id","in":"query","required":false,"schema":{"description":"Only rows whose collections_letter_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose collections_letter_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","skipped","queued","submitted","in_transit","delivered","returned","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"expected_delivery_on","in":"query","required":false,"schema":{"description":"Only rows whose expected_delivery_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expected_delivery_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/mail_pieces/{id}":{"get":{"operationId":"get_mail_pieces_row","summary":"Get a mail piece","description":"One arrears letter PDF to print and mail: the address as of drafting (the tenant's unit at the property). Staff download the approved batch as one PDF (/api/mail-batches/[id]/print) and mark it mailed.\n\nOne row of mail pieces by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Mail pieces"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/maintenance_categories":{"get":{"operationId":"list_maintenance_categories","summary":"List maintenance categories","description":"Org-configurable maintenance categories (plumbing, HVAC, ...), optionally nested via parent_id. Seeded per org on creation. Used by service requests, work orders, PM schedules and inventory.\n\nPages through the maintenance categories table of the organization, oldest first. Filters: id, parent_id, default_priority, default_vendor_trade_id, is_emergency, is_tenant_selectable.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance categories"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"parent_id","in":"query","required":false,"schema":{"description":"Only rows whose parent_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose parent_id equals this."},{"name":"default_priority","in":"query","required":false,"schema":{"description":"Only rows whose default_priority equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose default_priority equals this."},{"name":"default_vendor_trade_id","in":"query","required":false,"schema":{"description":"Only rows whose default_vendor_trade_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose default_vendor_trade_id equals this."},{"name":"is_emergency","in":"query","required":false,"schema":{"description":"Only rows whose is_emergency equals this.","type":"boolean"},"description":"Only rows whose is_emergency equals this."},{"name":"is_tenant_selectable","in":"query","required":false,"schema":{"description":"Only rows whose is_tenant_selectable equals this.","type":"boolean"},"description":"Only rows whose is_tenant_selectable equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_categories/{id}":{"get":{"operationId":"get_maintenance_categories_row","summary":"Get a maintenance category","description":"Org-configurable maintenance categories (plumbing, HVAC, ...), optionally nested via parent_id. Seeded per org on creation. Used by service requests, work orders, PM schedules and inventory.\n\nOne row of maintenance categories by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance categories"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"patch":{"operationId":"update_maintenance_categories_row","summary":"Update a maintenance category","description":"Org-configurable maintenance categories (plumbing, HVAC, ...), optionally nested via parent_id. Seeded per org on creation. Used by service requests, work orders, PM schedules and inventory.\n\nChanges the given fields of one row of maintenance categories and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance categories"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"parent id"},{"type":"null"}]},"key":{"anyOf":[{"type":"string","maxLength":100000,"description":"Stable machine key for seeded categories (plumbing, electrical, hvac, appliance, pest, locks_keys, landscaping, roofing, structural, cleaning, general, emergency); null for custom categories."},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"default_priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"Priority applied to a new request in this category when the submitter does not choose one."},"default_vendor_trade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Vendor trade (vendor_trades) normally dispatched for this category; used to suggest vendors."},{"type":"null"}]},"sla_response_hours":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hours from work order creation to first response (assignment or status change); sets work_orders.response_due_at."},{"type":"null"}]},"sla_completion_hours":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hours from work order creation to completion; sets work_orders.due_at when not given."},{"type":"null"}]},"is_emergency":{"type":"boolean","description":"Requests in this category are always treated as emergency priority."},"is_tenant_selectable":{"type":"boolean","description":"Shown to tenants in the portal request form."},"tenant_guidance":{"anyOf":[{"type":"string","maxLength":100000,"description":"Self-help / safety text shown to tenants when they choose this category (e.g. shut off the water valve)."},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_category_tips":{"get":{"operationId":"list_maintenance_category_tips","summary":"List maintenance category tips","description":"An org's own self-help tips for a maintenance category, shown to residents with the reviewed library tips before the request form. Staff write them; is_active false retires one (outcomes keep the title the resident saw).\n\nPages through the maintenance category tips table of the organization, oldest first. Filters: id, category_id, is_active, created_by.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance category tips"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"post":{"operationId":"create_maintenance_category_tips_row","summary":"Create a maintenance category tip","description":"An org's own self-help tips for a maintenance category, shown to residents with the reviewed library tips before the request form. Staff write them; is_active false retires one (outcomes keep the title the resident saw).\n\nInserts one row of maintenance category tips in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance category tips"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.maintenance_categories (the category the tip is for)."},"title":{"type":"string","maxLength":100000,"description":"Short title (at most 60 characters)."},"body":{"type":"string","maxLength":100000,"description":"What to try (at most 320 characters)."},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Order within the category."},"is_active":{"type":"boolean","description":"False hides the tip."}},"required":["category_id","title","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_category_tips/{id}":{"get":{"operationId":"get_maintenance_category_tips_row","summary":"Get a maintenance category tip","description":"An org's own self-help tips for a maintenance category, shown to residents with the reviewed library tips before the request form. Staff write them; is_active false retires one (outcomes keep the title the resident saw).\n\nOne row of maintenance category tips by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance category tips"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"patch":{"operationId":"update_maintenance_category_tips_row","summary":"Update a maintenance category tip","description":"An org's own self-help tips for a maintenance category, shown to residents with the reviewed library tips before the request form. Staff write them; is_active false retires one (outcomes keep the title the resident saw).\n\nChanges the given fields of one row of maintenance category tips and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance category tips"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"category_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.maintenance_categories (the category the tip is for)."},"title":{"type":"string","maxLength":100000,"description":"Short title (at most 60 characters)."},"body":{"type":"string","maxLength":100000,"description":"What to try (at most 320 characters)."},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Order within the category."},"is_active":{"type":"boolean","description":"False hides the tip."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_intake_photos":{"get":{"operationId":"list_maintenance_intake_photos","summary":"List maintenance intake photos","description":"A photo a resident uploads while filling in a new maintenance request, before the request exists. Created only by create_maintenance_intake_photo (the resident's own current lease); the file is a downscaled JPEG in the maintenance bucket at storage_path, which never changes. The photo intake agent reads it as the resident to suggest details. attach_maintenance_intake attaches it to the submitted request (a service_request_photos row pointing at the same object); unattached photos are visible only to the uploader.\n\nPages through the maintenance intake photos table of the organization, oldest first. Filters: id, lease_id, uploaded_by, service_request_id.\n\nNeeds one of: maintenance.read.","tags":["Maintenance intake photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"uploaded_by","in":"query","required":false,"schema":{"description":"Only rows whose uploaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose uploaded_by equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/maintenance_intake_photos/{id}":{"get":{"operationId":"get_maintenance_intake_photos_row","summary":"Get a maintenance intake photo","description":"A photo a resident uploads while filling in a new maintenance request, before the request exists. Created only by create_maintenance_intake_photo (the resident's own current lease); the file is a downscaled JPEG in the maintenance bucket at storage_path, which never changes. The photo intake agent reads it as the resident to suggest details. attach_maintenance_intake attaches it to the submitted request (a service_request_photos row pointing at the same object); unattached photos are visible only to the uploader.\n\nOne row of maintenance intake photos by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Maintenance intake photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/maintenance_policies":{"get":{"operationId":"list_maintenance_policies","summary":"List maintenance policies","description":"Maintenance rules: one org-wide default row (property_id null, seeded) plus optional per-property overrides.\n\nPages through the maintenance policies table of the organization, oldest first. Filters: id, property_id, auto_dispatch_emergencies.\n\nNeeds one of: maintenance.read, owners.read, settings.write.","tags":["Maintenance policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"auto_dispatch_emergencies","in":"query","required":false,"schema":{"description":"Only rows whose auto_dispatch_emergencies equals this.","type":"boolean"},"description":"Only rows whose auto_dispatch_emergencies equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","owners.read","settings.write"]},"post":{"operationId":"create_maintenance_policies_row","summary":"Create a maintenance policy","description":"Maintenance rules: one org-wide default row (property_id null, seeded) plus optional per-property overrides.\n\nInserts one row of maintenance policies in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Maintenance policies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Null = organization default; otherwise an override for one property."},{"type":"null"}]},"owner_approval_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fallback owner approval threshold: used only when neither property_settings.maintenance_approval_threshold_cents nor the owners' maintenance_approval_threshold_cents is set (see private.owner_approval_threshold_for). Amounts at or above it need owner approval. Null = never required automatically."},{"type":"null"}]},"default_not_to_exceed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Not-to-exceed amount given to vendors when the dispatcher sets none."},{"type":"null"}]},"approval_expiry_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Owner approval requests expire after this many hours without a response."},"labor_rate_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Default hourly billing rate (cents) for in-house technician labor entries; bill_from_work_order (00010) bills billable in-house labor to the owner at the entry's rate."},"auto_dispatch_emergencies":{"type":"boolean","description":"Retired (00056, josh 2026-10-20): emergencies page a person and suggest a vendor; nothing dispatches automatically. Kept until nothing reads it."},"emergency_instructions":{"anyOf":[{"type":"string","maxLength":100000,"description":"emergency instructions"},{"type":"null"}]},"after_hours_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"after hours phone"},{"type":"null"}]},"emergency_keywords":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":100000},"description":"Words and phrases that make a maintenance request or work order an emergency for automations (condition emergency_keyword_matched, 00055): whole words, any case, in the title or description. Null = inherit: a property row without a list uses the org row's, and an org row without one the defaults (pr"},{"type":"null"}]},"repeat_issue_window_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Repeat issue window in days (default 90): a work order is flagged as a repeat issue (public.is_repeat_issue) when another non-canceled work order on the same unit for the same category or asset was created within this many days before it. Property row wins over the organization default (private.main"}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/maintenance_policies/{id}":{"get":{"operationId":"get_maintenance_policies_row","summary":"Get a maintenance policy","description":"Maintenance rules: one org-wide default row (property_id null, seeded) plus optional per-property overrides.\n\nOne row of maintenance policies by id, with every column the API shows.\n\nNeeds one of: maintenance.read, owners.read, settings.write.","tags":["Maintenance policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","owners.read","settings.write"]},"patch":{"operationId":"update_maintenance_policies_row","summary":"Update a maintenance policy","description":"Maintenance rules: one org-wide default row (property_id null, seeded) plus optional per-property overrides.\n\nChanges the given fields of one row of maintenance policies and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Maintenance policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Null = organization default; otherwise an override for one property."},{"type":"null"}]},"owner_approval_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fallback owner approval threshold: used only when neither property_settings.maintenance_approval_threshold_cents nor the owners' maintenance_approval_threshold_cents is set (see private.owner_approval_threshold_for). Amounts at or above it need owner approval. Null = never required automatically."},{"type":"null"}]},"default_not_to_exceed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Not-to-exceed amount given to vendors when the dispatcher sets none."},{"type":"null"}]},"approval_expiry_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Owner approval requests expire after this many hours without a response."},"labor_rate_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Default hourly billing rate (cents) for in-house technician labor entries; bill_from_work_order (00010) bills billable in-house labor to the owner at the entry's rate."},"auto_dispatch_emergencies":{"type":"boolean","description":"Retired (00056, josh 2026-10-20): emergencies page a person and suggest a vendor; nothing dispatches automatically. Kept until nothing reads it."},"emergency_instructions":{"anyOf":[{"type":"string","maxLength":100000,"description":"emergency instructions"},{"type":"null"}]},"after_hours_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"after hours phone"},{"type":"null"}]},"emergency_keywords":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":100000},"description":"Words and phrases that make a maintenance request or work order an emergency for automations (condition emergency_keyword_matched, 00055): whole words, any case, in the title or description. Null = inherit: a property row without a list uses the org row's, and an org row without one the defaults (pr"},{"type":"null"}]},"repeat_issue_window_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Repeat issue window in days (default 90): a work order is flagged as a repeat issue (public.is_repeat_issue) when another non-canceled work order on the same unit for the same category or asset was created within this many days before it. Property row wins over the organization default (private.main"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"delete":{"operationId":"delete_maintenance_policies_row","summary":"Delete a maintenance policy","description":"Maintenance rules: one org-wide default row (property_id null, seeded) plus optional per-property overrides.\n\nDeletes one row of maintenance policies. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Maintenance policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/maintenance_priority_goals":{"get":{"operationId":"list_maintenance_priority_goals","summary":"List maintenance priority goals","description":"An org's response and completion goals per work order priority. No row for a priority means the built-in default: emergency 1h/24h, high 4h/72h, normal 24h/168h, low 48h/336h. A category's own SLA hours replace these (for emergencies the shorter one applies).\n\nPages through the maintenance priority goals table of the organization, oldest first. Filters: id, priority.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance priority goals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"priority","in":"query","required":false,"schema":{"description":"Only rows whose priority equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose priority equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"post":{"operationId":"create_maintenance_priority_goals_row","summary":"Create a maintenance priority goal","description":"An org's response and completion goals per work order priority. No row for a priority means the built-in default: emergency 1h/24h, high 4h/72h, normal 24h/168h, low 48h/336h. A category's own SLA hours replace these (for emergencies the shorter one applies).\n\nInserts one row of maintenance priority goals in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance priority goals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"Work order priority this goal applies to."},"response_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hours from work order creation to first response; sets work_orders.response_due_at."},"completion_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hours from work order creation to completion; sets work_orders.due_at when not given."}},"required":["priority","response_hours","completion_hours"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_priority_goals/{id}":{"get":{"operationId":"get_maintenance_priority_goals_row","summary":"Get a maintenance priority goal","description":"An org's response and completion goals per work order priority. No row for a priority means the built-in default: emergency 1h/24h, high 4h/72h, normal 24h/168h, low 48h/336h. A category's own SLA hours replace these (for emergencies the shorter one applies).\n\nOne row of maintenance priority goals by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance priority goals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"patch":{"operationId":"update_maintenance_priority_goals_row","summary":"Update a maintenance priority goal","description":"An org's response and completion goals per work order priority. No row for a priority means the built-in default: emergency 1h/24h, high 4h/72h, normal 24h/168h, low 48h/336h. A category's own SLA hours replace these (for emergencies the shorter one applies).\n\nChanges the given fields of one row of maintenance priority goals and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance priority goals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"Work order priority this goal applies to."},"response_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hours from work order creation to first response; sets work_orders.response_due_at."},"completion_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hours from work order creation to completion; sets work_orders.due_at when not given."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"delete":{"operationId":"delete_maintenance_priority_goals_row","summary":"Delete a maintenance priority goal","description":"An org's response and completion goals per work order priority. No row for a priority means the built-in default: emergency 1h/24h, high 4h/72h, normal 24h/168h, low 48h/336h. A category's own SLA hours replace these (for emergencies the shorter one applies).\n\nDeletes one row of maintenance priority goals. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance priority goals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_self_help_outcomes":{"get":{"operationId":"list_maintenance_self_help_outcomes","summary":"List maintenance self help outcomes","description":"What a resident did after reading a category's self-help: fixed (a deflection: no request was sent) or needs_help (they went on to the form; service_request_id links the request once sent). Written only by record_self_help_outcome and link_self_help_outcome.\n\nPages through the maintenance self help outcomes table of the organization, oldest first. Filters: id, category_id, lease_id, contact_id, service_request_id.\n\nNeeds one of: maintenance.read.","tags":["Maintenance self help outcomes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/maintenance_self_help_outcomes/{id}":{"get":{"operationId":"get_maintenance_self_help_outcomes_row","summary":"Get a maintenance self help outcome","description":"What a resident did after reading a category's self-help: fixed (a deflection: no request was sent) or needs_help (they went on to the form; service_request_id links the request once sent). Written only by record_self_help_outcome and link_self_help_outcome.\n\nOne row of maintenance self help outcomes by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Maintenance self help outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/maintenance_self_help_settings":{"get":{"operationId":"list_maintenance_self_help_settings","summary":"List maintenance self help settings","description":"An org's self-help step before a maintenance request. No row means on, with every library tip shown.\n\nPages through the maintenance self help settings table of the organization, oldest first. Filters: id, is_enabled.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance self help settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"post":{"operationId":"create_maintenance_self_help_settings_row","summary":"Create a maintenance self help setting","description":"An org's self-help step before a maintenance request. No row means on, with every library tip shown.\n\nInserts one row of maintenance self help settings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance self help settings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"is_enabled":{"type":"boolean","description":"Residents see the tips and guidance of the category they pick before the request form."},"hidden_library_tip_keys":{"type":"array","items":{"type":"string","maxLength":100000},"description":"maintenance_self_help_tips keys this org does not show."}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/maintenance_self_help_settings/{id}":{"get":{"operationId":"get_maintenance_self_help_settings_row","summary":"Get a maintenance self help setting","description":"An org's self-help step before a maintenance request. No row means on, with every library tip shown.\n\nOne row of maintenance self help settings by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance self help settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"patch":{"operationId":"update_maintenance_self_help_settings_row","summary":"Update a maintenance self help setting","description":"An org's self-help step before a maintenance request. No row means on, with every library tip shown.\n\nChanges the given fields of one row of maintenance self help settings and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["Maintenance self help settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"is_enabled":{"type":"boolean","description":"Residents see the tips and guidance of the category they pick before the request form."},"hidden_library_tip_keys":{"type":"array","items":{"type":"string","maxLength":100000},"description":"maintenance_self_help_tips keys this org does not show."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/management_agreement_owners":{"get":{"operationId":"list_management_agreement_owners","summary":"List management agreement owners","description":"Owners who are party to a management agreement (co-owners may sign one agreement).\n\nPages through the management agreement owners table of the organization, oldest first. Filters: id, management_agreement_id, owner_id, is_primary_signatory, signed_on.\n\nNeeds one of: owners.read, owners.write.","tags":["Management agreement owners"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"management_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose management_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_agreement_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"is_primary_signatory","in":"query","required":false,"schema":{"description":"Only rows whose is_primary_signatory equals this.","type":"boolean"},"description":"Only rows whose is_primary_signatory equals this."},{"name":"signed_on","in":"query","required":false,"schema":{"description":"Only rows whose signed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose signed_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]}},"/v1/management_agreement_owners/{id}":{"get":{"operationId":"get_management_agreement_owners_row","summary":"Get a management agreement owner","description":"Owners who are party to a management agreement (co-owners may sign one agreement).\n\nOne row of management agreement owners by id, with every column the API shows.\n\nNeeds one of: owners.read, owners.write.","tags":["Management agreement owners"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]}},"/v1/management_agreement_properties":{"get":{"operationId":"list_management_agreement_properties","summary":"List management agreement properties","description":"Which properties an agreement covers, effective-dated (ends_on inclusive, null = open). A property is under at most one agreement on any date.\n\nPages through the management agreement properties table of the organization, oldest first. Filters: id, management_agreement_id, property_id, effective_on, ends_on.\n\nNeeds one of: owners.read, owners.write.","tags":["Management agreement properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"management_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose management_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_agreement_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]}},"/v1/management_agreement_properties/{id}":{"get":{"operationId":"get_management_agreement_properties_row","summary":"Get a management agreement property","description":"Which properties an agreement covers, effective-dated (ends_on inclusive, null = open). A property is under at most one agreement on any date.\n\nOne row of management agreement properties by id, with every column the API shows.\n\nNeeds one of: owners.read, owners.write.","tags":["Management agreement properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]}},"/v1/management_agreements/{id}":{"get":{"operationId":"get_management_agreements_row","summary":"Get a management agreement","description":"Property management agreement (contract) between the management company and one or more owners, covering one or more properties (management_agreement_owners, management_agreement_properties). Fee terms live in management_fee_rules.\n\nOne row of management agreements by id, with every column the API shows.\n\nNeeds one of: owners.read, owners.write.","tags":["Management agreements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]}},"/v1/management_fee_adjustments":{"get":{"operationId":"list_management_fee_adjustments","summary":"List management fee adjustments","description":"The markup difference (corrected bill less original bill, signed) for a property whose fee run of period_start_on had already charged the original bill's markup when correct_bill changed it. The next fee run for the property charges it as a markup_correction item (management_fee_run_id); voiding that run leaves it for the following run.\n\nPages through the management fee adjustments table of the organization, oldest first. Filters: id, property_id, bill_correction_id, period_start_on, management_fee_run_id, management_fee_item_id.\n\nNeeds one of: owners.read.","tags":["Management fee adjustments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"bill_correction_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_correction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_correction_id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"management_fee_run_id","in":"query","required":false,"schema":{"description":"Only rows whose management_fee_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_fee_run_id equals this."},{"name":"management_fee_item_id","in":"query","required":false,"schema":{"description":"Only rows whose management_fee_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_fee_item_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_adjustments/{id}":{"get":{"operationId":"get_management_fee_adjustments_row","summary":"Get a management fee adjustment","description":"The markup difference (corrected bill less original bill, signed) for a property whose fee run of period_start_on had already charged the original bill's markup when correct_bill changed it. The next fee run for the property charges it as a markup_correction item (management_fee_run_id); voiding that run leaves it for the following run.\n\nOne row of management fee adjustments by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Management fee adjustments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_items":{"get":{"operationId":"list_management_fee_items","summary":"List management fee items","description":"One fee component for one property in a run. All items of a property in a run share one journal entry: property fund Dr MGMT_FEE_EXPENSE (LEASING_FEE_EXPENSE for leasing/renewal) / Cr DUE_TO_MANAGEMENT; company fund Dr DUE_FROM_PROPERTIES (counterparty_property_id) / Cr MGMT_FEE_INCOME, LEASING_FEE_INCOME, RENEWAL_FEE_INCOME or MAINTENANCE_MARKUP_INCOME.\n\nPages through the management fee items table of the organization, oldest first. Filters: id, management_fee_run_id, property_id, management_fee_rule_id, component, lease_id, journal_entry_id.\n\nNeeds one of: owners.read.","tags":["Management fee items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"management_fee_run_id","in":"query","required":false,"schema":{"description":"Only rows whose management_fee_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_fee_run_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"management_fee_rule_id","in":"query","required":false,"schema":{"description":"Only rows whose management_fee_rule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_fee_rule_id equals this."},{"name":"component","in":"query","required":false,"schema":{"description":"Only rows whose component equals this.","type":"string","enum":["percent_of_income","flat_fee","per_unit_fee","vacancy_fee","leasing_fee","renewal_fee","maintenance_markup","minimum_fee_adjustment","maximum_fee_adjustment","returned_payment_reversal","markup_correction"]},"description":"Only rows whose component equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_items/{id}":{"get":{"operationId":"get_management_fee_items_row","summary":"Get a management fee item","description":"One fee component for one property in a run. All items of a property in a run share one journal entry: property fund Dr MGMT_FEE_EXPENSE (LEASING_FEE_EXPENSE for leasing/renewal) / Cr DUE_TO_MANAGEMENT; company fund Dr DUE_FROM_PROPERTIES (counterparty_property_id) / Cr MGMT_FEE_INCOME, LEASING_FEE_INCOME, RENEWAL_FEE_INCOME or MAINTENANCE_MARKUP_INCOME.\n\nOne row of management fee items by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Management fee items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_reversals":{"get":{"operationId":"list_management_fee_reversals","summary":"List management fee reversals","description":"A percent-of-income management fee taken back because the receipt that earned it was returned or voided: one row per receipt, property and month of the original income, with the receipt's reversal entries (reversal_journal_entry_ids) and their net income (basis_cents). fee_cents null = waiting for the fee run of original_period_start_on (that run takes it back in a returned_payment_reversal item, management_fee_run_id). Otherwise the fee had posted, so the reversal posted at once (journal_entry_id, dated reversed_on) after the rule's minimum and maximum. Either way the reversal entries' income\n\nPages through the management fee reversals table of the organization, oldest first. Filters: id, property_id, receipt_id, original_period_start_on, reversed_on, management_fee_item_id, management_fee_run_id, journal_entry_id.\n\nNeeds one of: owners.read.","tags":["Management fee reversals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"original_period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose original_period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose original_period_start_on equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"management_fee_item_id","in":"query","required":false,"schema":{"description":"Only rows whose management_fee_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_fee_item_id equals this."},{"name":"management_fee_run_id","in":"query","required":false,"schema":{"description":"Only rows whose management_fee_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_fee_run_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_reversals/{id}":{"get":{"operationId":"get_management_fee_reversals_row","summary":"Get a management fee reversal","description":"A percent-of-income management fee taken back because the receipt that earned it was returned or voided: one row per receipt, property and month of the original income, with the receipt's reversal entries (reversal_journal_entry_ids) and their net income (basis_cents). fee_cents null = waiting for the fee run of original_period_start_on (that run takes it back in a returned_payment_reversal item, management_fee_run_id). Otherwise the fee had posted, so the reversal posted at once (journal_entry_id, dated reversed_on) after the rule's minimum and maximum. Either way the reversal entries' income\n\nOne row of management fee reversals by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Management fee reversals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_rules":{"get":{"operationId":"list_management_fee_rules","summary":"List management fee rules","description":"Effective-dated management fee terms. Scope is exactly one of property_id (property-specific override) or management_agreement_id (applies to every property the agreement covers on that date). For a property and date, a property rule wins over an agreement rule. Monthly fee = percent_of_income + flat + per_unit + vacancy (then clamped to minimum/maximum) + leasing + renewal + maintenance markup.\n\nPages through the management fee rules table of the organization, oldest first. Filters: id, property_id, management_agreement_id, effective_on, ends_on, is_per_unit_occupied_only, created_by.\n\nNeeds one of: owners.read, owners.write.","tags":["Management fee rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"management_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose management_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_agreement_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"is_per_unit_occupied_only","in":"query","required":false,"schema":{"description":"Only rows whose is_per_unit_occupied_only equals this.","type":"boolean"},"description":"Only rows whose is_per_unit_occupied_only equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]},"post":{"operationId":"create_management_fee_rules_row","summary":"Create a management fee rule","description":"Effective-dated management fee terms. Scope is exactly one of property_id (property-specific override) or management_agreement_id (applies to every property the agreement covers on that date). For a property and date, a property rule wins over an agreement rule. Monthly fee = percent_of_income + flat + per_unit + vacancy (then clamped to minimum/maximum) + leasing + renewal + maintenance markup.\n\nInserts one row of management fee rules in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: owners.write.","tags":["Management fee rules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"management_agreement_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"management agreement id"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":100000,"description":"name"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day the rule applies; the rule in effect on the last day of a month governs that month's fees."},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day the rule applies (inclusive); null = open-ended."},{"type":"null"}]},"income_percent_pct":{"type":"number","description":"Percent (100 = 100%) of cash-basis income collected in the month on the property. Only the charge types in management_fee_rule_charge_types count; if that list is empty, all income accounts count."},"flat_monthly_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fixed fee per property per month."},"per_unit_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee per unit per month (all active units, or occupied units only if is_per_unit_occupied_only)."},"is_per_unit_occupied_only":{"type":"boolean","description":"If true, per_unit_fee_cents applies only to units with a current lease on the last day of the month."},"minimum_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly floor applied to percent + flat + per-unit + vacancy fees (leasing, renewal and markup are on top)."},"maximum_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly cap applied to the same recurring components as the minimum; null = no cap."},{"type":"null"}]},"leasing_fee_pct":{"type":"number","description":"Leasing (placement) fee as a percent of the first month's rent of each new lease starting in the month (100 = one full month)."},"leasing_fee_flat_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat leasing fee per new lease starting in the month, added to any percent part."},"renewal_fee_pct":{"type":"number","description":"Renewal fee as a percent of the renewal lease's monthly rent, per renewal starting in the month."},"renewal_fee_flat_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat renewal fee per renewal lease starting in the month."},"maintenance_markup_pct":{"type":"number","description":"Default maintenance markup percent (100 = 100%) for owner-billable maintenance bill lines whose bill_lines.owner_markup_rate is null (no vendor rate). Lines with their own rate use it. Applies to bills dated in the month; see ledger.calculate_management_fees."},"vacancy_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee per unit vacant (no current lease) on the last day of the month."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["effective_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/management_fee_rules/{id}":{"get":{"operationId":"get_management_fee_rules_row","summary":"Get a management fee rule","description":"Effective-dated management fee terms. Scope is exactly one of property_id (property-specific override) or management_agreement_id (applies to every property the agreement covers on that date). For a property and date, a property rule wins over an agreement rule. Monthly fee = percent_of_income + flat + per_unit + vacancy (then clamped to minimum/maximum) + leasing + renewal + maintenance markup.\n\nOne row of management fee rules by id, with every column the API shows.\n\nNeeds one of: owners.read, owners.write.","tags":["Management fee rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write"]},"patch":{"operationId":"update_management_fee_rules_row","summary":"Update a management fee rule","description":"Effective-dated management fee terms. Scope is exactly one of property_id (property-specific override) or management_agreement_id (applies to every property the agreement covers on that date). For a property and date, a property rule wins over an agreement rule. Monthly fee = percent_of_income + flat + per_unit + vacancy (then clamped to minimum/maximum) + leasing + renewal + maintenance markup.\n\nChanges the given fields of one row of management fee rules and returns it. Fields left out stay as they are.\n\nNeeds one of: owners.write.","tags":["Management fee rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"management_agreement_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"management agreement id"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":100000,"description":"name"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day the rule applies; the rule in effect on the last day of a month governs that month's fees."},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day the rule applies (inclusive); null = open-ended."},{"type":"null"}]},"income_percent_pct":{"type":"number","description":"Percent (100 = 100%) of cash-basis income collected in the month on the property. Only the charge types in management_fee_rule_charge_types count; if that list is empty, all income accounts count."},"flat_monthly_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fixed fee per property per month."},"per_unit_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee per unit per month (all active units, or occupied units only if is_per_unit_occupied_only)."},"is_per_unit_occupied_only":{"type":"boolean","description":"If true, per_unit_fee_cents applies only to units with a current lease on the last day of the month."},"minimum_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly floor applied to percent + flat + per-unit + vacancy fees (leasing, renewal and markup are on top)."},"maximum_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly cap applied to the same recurring components as the minimum; null = no cap."},{"type":"null"}]},"leasing_fee_pct":{"type":"number","description":"Leasing (placement) fee as a percent of the first month's rent of each new lease starting in the month (100 = one full month)."},"leasing_fee_flat_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat leasing fee per new lease starting in the month, added to any percent part."},"renewal_fee_pct":{"type":"number","description":"Renewal fee as a percent of the renewal lease's monthly rent, per renewal starting in the month."},"renewal_fee_flat_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat renewal fee per renewal lease starting in the month."},"maintenance_markup_pct":{"type":"number","description":"Default maintenance markup percent (100 = 100%) for owner-billable maintenance bill lines whose bill_lines.owner_markup_rate is null (no vendor rate). Lines with their own rate use it. Applies to bills dated in the month; see ledger.calculate_management_fees."},"vacancy_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee per unit vacant (no current lease) on the last day of the month."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]},"delete":{"operationId":"delete_management_fee_rules_row","summary":"Delete a management fee rule","description":"Effective-dated management fee terms. Scope is exactly one of property_id (property-specific override) or management_agreement_id (applies to every property the agreement covers on that date). For a property and date, a property rule wins over an agreement rule. Monthly fee = percent_of_income + flat + per_unit + vacancy (then clamped to minimum/maximum) + leasing + renewal + maintenance markup.\n\nDeletes one row of management fee rules. The database refuses it where other records still need the row.\n\nNeeds one of: owners.write.","tags":["Management fee rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/management_fee_runs":{"get":{"operationId":"list_management_fee_runs","summary":"List management fee runs","description":"One management fee calculation per org per calendar month.\n\nPages through the management fee runs table of the organization, oldest first. Filters: id, period_start_on, period_end_on, status, created_by.\n\nNeeds one of: owners.read.","tags":["Management fee runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["posted","voided"]},"description":"Only rows whose status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_runs/{id}":{"get":{"operationId":"get_management_fee_runs_row","summary":"Get a management fee run","description":"One management fee calculation per org per calendar month.\n\nOne row of management fee runs by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Management fee runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_settings":{"get":{"operationId":"list_management_fee_settings","summary":"List management fee settings","description":"Per-organization schedule for management fee runs. No row, or is_automatic false: staff run fees by hand as before.\n\nPages through the management fee settings table of the organization, oldest first. Filters: id, is_automatic, last_auto_period_start_on, updated_by.\n\nNeeds one of: owners.read.","tags":["Management fee settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"is_automatic","in":"query","required":false,"schema":{"description":"Only rows whose is_automatic equals this.","type":"boolean"},"description":"Only rows whose is_automatic equals this."},{"name":"last_auto_period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose last_auto_period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_auto_period_start_on equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/management_fee_settings/{id}":{"get":{"operationId":"get_management_fee_settings_row","summary":"Get a management fee setting","description":"Per-organization schedule for management fee runs. No row, or is_automatic false: staff run fees by hand as before.\n\nOne row of management fee settings by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Management fee settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/market_rent_history":{"get":{"operationId":"list_market_rent_history","summary":"List market rent history","description":"Asking/market rent of a unit or a floor plan over time (exactly one of unit_id, floor_plan_id). The current value is also on units.market_rent_cents / floor_plans.market_rent_cents. Written by trigger when those change and by set_market_rent().\n\nPages through the market rent history table of the organization, oldest first. Filters: id, unit_id, floor_plan_id, effective_on, source, created_by.\n\nNeeds one of: properties.read.","tags":["Market rent history"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"floor_plan_id","in":"query","required":false,"schema":{"description":"Only rows whose floor_plan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose floor_plan_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["manual","ai_recommendation","comp_survey","pricing_engine","import"]},"description":"Only rows whose source equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/market_rent_history/{id}":{"get":{"operationId":"get_market_rent_history_row","summary":"Get a market rent history","description":"Asking/market rent of a unit or a floor plan over time (exactly one of unit_id, floor_plan_id). The current value is also on units.market_rent_cents / floor_plans.market_rent_cents. Written by trigger when those change and by set_market_rent().\n\nOne row of market rent history by id, with every column the API shows.\n\nNeeds one of: properties.read.","tags":["Market rent history"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/material_catalog_items/{id}":{"get":{"operationId":"get_material_catalog_items_row","summary":"Get a material catalog item","description":"Products the organization buys for maintenance and unit turns: the supplier (a vendor), the exact product link, the price and when someone last checked it. property_id null = every property; set = only that property.\n\nOne row of material catalog items by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Material catalog items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"patch":{"operationId":"update_material_catalog_items_row","summary":"Update a material catalog item","description":"Products the organization buys for maintenance and unit turns: the supplier (a vendor), the exact product link, the price and when someone last checked it. property_id null = every property; set = only that property.\n\nChanges the given fields of one row of material catalog items and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch.","tags":["Material catalog items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The one property that uses this product; null for every property."},{"type":"null"}]},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Supplier the product is ordered from (Home Depot, Lowe's, a supply house). Purchase orders go to this vendor."},"name":{"type":"string","maxLength":100000,"description":"name"},"category":{"type":"string","enum":["flooring","paint","fixtures","appliances","hardware","cleaning","other"],"description":"category"},"product_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"The exact product page at the supplier (https only)."},{"type":"null"}]},"supplier_sku":{"anyOf":[{"type":"string","maxLength":100000,"description":"The supplier's item or model number."},{"type":"null"}]},"unit_of_measure":{"type":"string","maxLength":100000,"description":"What one unit of quantity is (gallon, box, each). Prices and quantities are per this unit."},"unit_price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Price per unit of measure, before tax and delivery."},"price_checked_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When someone last confirmed the price at the supplier. The apps flag prices older than 30 days."},"gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Expense account for purchase order lines; null = the repairs account for the category (private.material_gl_account)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/material_entries/{id}":{"get":{"operationId":"get_material_entries_row","summary":"Get a material entry","description":"Parts and materials used on a work order: from stock (inventory_item_id + location, with the matching issue transaction) or free text (purchased ad hoc / supplied by vendor_id). Write via add_material_entry().\n\nOne row of material entries by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Material entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/material_list_items":{"get":{"operationId":"list_material_list_items","summary":"List material list items","description":"One product on a material list and its quantity rule. The quantity is worked out per unit by material_plan and rounded up to whole units of measure.\n\nPages through the material list items table of the organization, oldest first. Filters: id, material_list_id, catalog_item_id, basis.\n\nNeeds one of: maintenance.dispatch.","tags":["Material list items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"material_list_id","in":"query","required":false,"schema":{"description":"Only rows whose material_list_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose material_list_id equals this."},{"name":"catalog_item_id","in":"query","required":false,"schema":{"description":"Only rows whose catalog_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose catalog_item_id equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["fixed","per_sqft","per_bedroom","per_bathroom"]},"description":"Only rows whose basis equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]},"post":{"operationId":"create_material_list_items_row","summary":"Create a material list item","description":"One product on a material list and its quantity rule. The quantity is worked out per unit by material_plan and rounded up to whole units of measure.\n\nInserts one row of material list items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Material list items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"material_list_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"material list id"},"catalog_item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"catalog item id"},"basis":{"type":"string","enum":["fixed","per_sqft","per_bedroom","per_bathroom"],"description":"fixed = quantity; per_bedroom / per_bathroom = quantity times the unit's bedrooms or bathrooms; per_sqft = the unit's square feet divided by coverage_sqft."},"quantity":{"anyOf":[{"type":"number","description":"Units of measure, in total (fixed) or per bedroom or bathroom. Null for per_sqft."},{"type":"null"}]},"coverage_sqft":{"anyOf":[{"type":"number","description":"For per_sqft: square feet of the unit's floor area that one unit of measure covers (a gallon of paint for 250 sq ft of floor). Null otherwise."},{"type":"null"}]},"waste_percent":{"type":"number","description":"Extra to order for cuts and waste, as a percent of the worked-out quantity."}},"required":["material_list_id","catalog_item_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/material_list_items/{id}":{"get":{"operationId":"get_material_list_items_row","summary":"Get a material list item","description":"One product on a material list and its quantity rule. The quantity is worked out per unit by material_plan and rounded up to whole units of measure.\n\nOne row of material list items by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch.","tags":["Material list items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]},"patch":{"operationId":"update_material_list_items_row","summary":"Update a material list item","description":"One product on a material list and its quantity rule. The quantity is worked out per unit by material_plan and rounded up to whole units of measure.\n\nChanges the given fields of one row of material list items and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch.","tags":["Material list items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"material_list_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"material list id"},"catalog_item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"catalog item id"},"basis":{"type":"string","enum":["fixed","per_sqft","per_bedroom","per_bathroom"],"description":"fixed = quantity; per_bedroom / per_bathroom = quantity times the unit's bedrooms or bathrooms; per_sqft = the unit's square feet divided by coverage_sqft."},"quantity":{"anyOf":[{"type":"number","description":"Units of measure, in total (fixed) or per bedroom or bathroom. Null for per_sqft."},{"type":"null"}]},"coverage_sqft":{"anyOf":[{"type":"number","description":"For per_sqft: square feet of the unit's floor area that one unit of measure covers (a gallon of paint for 250 sq ft of floor). Null otherwise."},{"type":"null"}]},"waste_percent":{"type":"number","description":"Extra to order for cuts and waste, as a percent of the worked-out quantity."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]},"delete":{"operationId":"delete_material_list_items_row","summary":"Delete a material list item","description":"One product on a material list and its quantity rule. The quantity is worked out per unit by material_plan and rounded up to whole units of measure.\n\nDeletes one row of material list items. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Material list items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/material_lists":{"get":{"operationId":"list_material_lists","summary":"List material lists","description":"Standard materials for a job: every unit turn, or work orders of one maintenance category. A property's own lists replace the organization-wide lists (property_id null) for that property and use.\n\nPages through the material lists table of the organization, oldest first. Filters: id, property_id, used_for, category_id.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Material lists"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"used_for","in":"query","required":false,"schema":{"description":"Only rows whose used_for equals this.","type":"string","enum":["unit_turn","work_order"]},"description":"Only rows whose used_for equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"post":{"operationId":"create_material_lists_row","summary":"Create a material list","description":"Standard materials for a job: every unit turn, or work orders of one maintenance category. A property's own lists replace the organization-wide lists (property_id null) for that property and use.\n\nInserts one row of material lists in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Material lists"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"used_for":{"type":"string","enum":["unit_turn","work_order"],"description":"unit_turn = ordered for every unit turn at the property; work_order = offered on work orders of category_id (or picked by hand)."},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"For work order lists: the maintenance category whose work orders use this list by default. Null = only when picked by hand."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/material_lists/{id}":{"get":{"operationId":"get_material_lists_row","summary":"Get a material list","description":"Standard materials for a job: every unit turn, or work orders of one maintenance category. A property's own lists replace the organization-wide lists (property_id null) for that property and use.\n\nOne row of material lists by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Material lists"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"patch":{"operationId":"update_material_lists_row","summary":"Update a material list","description":"Standard materials for a job: every unit turn, or work orders of one maintenance category. A property's own lists replace the organization-wide lists (property_id null) for that property and use.\n\nChanges the given fields of one row of material lists and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch.","tags":["Material lists"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"used_for":{"type":"string","enum":["unit_turn","work_order"],"description":"unit_turn = ordered for every unit turn at the property; work_order = offered on work orders of category_id (or picked by hand)."},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"For work order lists: the maintenance category whose work orders use this list by default. Null = only when picked by hand."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/message_attachments":{"get":{"operationId":"list_message_attachments","summary":"List message attachments","description":"Files attached to a message (photos of a leak, PDFs, MMS media, voice notes). Bytes live in Supabase Storage at storage_bucket/storage_path, path prefixed with org_id. A copy promoted to the document library is linked via document_id (added in 00014).\n\nPages through the message attachments table of the organization, oldest first. Filters: id, message_id, created_by, document_id.\n\nNeeds one of: communications.read.","tags":["Message attachments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/message_attachments/{id}":{"get":{"operationId":"get_message_attachments_row","summary":"Get a message attachment","description":"Files attached to a message (photos of a leak, PDFs, MMS media, voice notes). Bytes live in Supabase Storage at storage_bucket/storage_path, path prefixed with org_id. A copy promoted to the document library is linked via document_id (added in 00014).\n\nOne row of message attachments by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Message attachments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/message_recipients":{"get":{"operationId":"list_message_recipients","summary":"List message recipients","description":"One row per external recipient of an outbound email/SMS/WhatsApp/voice message: group conversations send a separate copy to every external participant. Holds the per-recipient provider id and delivery status; messages.status is rolled up from these rows.\n\nPages through the message recipients table of the organization, oldest first. Filters: id, message_id, contact_id, channel, provider, status, skip_reason.\n\nNeeds one of: communications.read.","tags":["Message recipients"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["in_app","email","sms","voice","whatsapp"]},"description":"Only rows whose channel equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["internal","twilio","resend","sendgrid","postmark","mailgun","ses","expo","meta_whatsapp","vonage","other"]},"description":"Only rows whose provider equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","queued","sending","sent","delivered","opened","clicked","read","received","failed","bounced","complained","undelivered"]},"description":"Only rows whose status equals this."},{"name":"skip_reason","in":"query","required":false,"schema":{"description":"Only rows whose skip_reason equals this.","type":"string","enum":["suppressed","opted_out","do_not_contact","no_address","no_voice_consent"]},"description":"Only rows whose skip_reason equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/message_recipients/{id}":{"get":{"operationId":"get_message_recipients_row","summary":"Get a message recipient","description":"One row per external recipient of an outbound email/SMS/WhatsApp/voice message: group conversations send a separate copy to every external participant. Holds the per-recipient provider id and delivery status; messages.status is rolled up from these rows.\n\nOne row of message recipients by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Message recipients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/messages":{"get":{"operationId":"list_messages","summary":"List messages","description":"One message in a conversation, in any channel. Outbound email/SMS/WhatsApp are queued here and sent by an Edge Function; inbound ones are written by provider webhooks. AI-suggested replies awaiting approval are rows with is_ai_draft = true (hidden from portal users).\n\nPages through the messages table of the organization, oldest first. Filters: id, conversation_id, sender_kind, sender_user_id, sender_contact_id, channel, direction, is_internal_note, reply_to_message_id, status, provider, endpoint_id, is_ai_generated, is_ai_draft, ai_draft_status, ai_draft_reviewed_by, sentiment, intent, urgency, deleted_by, requires_sender_review.\n\nNeeds one of: communications.read.","tags":["Messages"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"sender_kind","in":"query","required":false,"schema":{"description":"Only rows whose sender_kind equals this.","type":"string","enum":["user","contact","external","system","ai"]},"description":"Only rows whose sender_kind equals this."},{"name":"sender_user_id","in":"query","required":false,"schema":{"description":"Only rows whose sender_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose sender_user_id equals this."},{"name":"sender_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose sender_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose sender_contact_id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["in_app","email","sms","voice","whatsapp"]},"description":"Only rows whose channel equals this."},{"name":"direction","in":"query","required":false,"schema":{"description":"Only rows whose direction equals this.","type":"string","enum":["inbound","outbound","internal"]},"description":"Only rows whose direction equals this."},{"name":"is_internal_note","in":"query","required":false,"schema":{"description":"Only rows whose is_internal_note equals this.","type":"boolean"},"description":"Only rows whose is_internal_note equals this."},{"name":"reply_to_message_id","in":"query","required":false,"schema":{"description":"Only rows whose reply_to_message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reply_to_message_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","queued","sending","sent","delivered","opened","clicked","read","received","failed","bounced","complained","undelivered"]},"description":"Only rows whose status equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["internal","twilio","resend","sendgrid","postmark","mailgun","ses","expo","meta_whatsapp","vonage","other"]},"description":"Only rows whose provider equals this."},{"name":"endpoint_id","in":"query","required":false,"schema":{"description":"Only rows whose endpoint_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose endpoint_id equals this."},{"name":"is_ai_generated","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_generated equals this.","type":"boolean"},"description":"Only rows whose is_ai_generated equals this."},{"name":"is_ai_draft","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_draft equals this.","type":"boolean"},"description":"Only rows whose is_ai_draft equals this."},{"name":"ai_draft_status","in":"query","required":false,"schema":{"description":"Only rows whose ai_draft_status equals this.","type":"string","enum":["pending_review","approved","edited_and_sent","rejected","expired"]},"description":"Only rows whose ai_draft_status equals this."},{"name":"ai_draft_reviewed_by","in":"query","required":false,"schema":{"description":"Only rows whose ai_draft_reviewed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ai_draft_reviewed_by equals this."},{"name":"sentiment","in":"query","required":false,"schema":{"description":"Only rows whose sentiment equals this.","type":"string","enum":["very_negative","negative","neutral","positive","very_positive"]},"description":"Only rows whose sentiment equals this."},{"name":"intent","in":"query","required":false,"schema":{"description":"Only rows whose intent equals this.","type":"string","enum":["general_inquiry","maintenance_request","maintenance_follow_up","emergency","payment_question","payment_promise","balance_dispute","lease_question","renewal","move_out","move_in","showing_request","application_status","noise_complaint","neighbor_complaint","parking","package","amenity","pet","document_request","owner_report_question","vendor_scheduling","vendor_invoice","spam","thanks_acknowledgement","other"]},"description":"Only rows whose intent equals this."},{"name":"urgency","in":"query","required":false,"schema":{"description":"Only rows whose urgency equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose urgency equals this."},{"name":"deleted_by","in":"query","required":false,"schema":{"description":"Only rows whose deleted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deleted_by equals this."},{"name":"requires_sender_review","in":"query","required":false,"schema":{"description":"Only rows whose requires_sender_review equals this.","type":"boolean"},"description":"Only rows whose requires_sender_review equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/messages/{id}":{"get":{"operationId":"get_messages_row","summary":"Get a message","description":"One message in a conversation, in any channel. Outbound email/SMS/WhatsApp are queued here and sent by an Edge Function; inbound ones are written by provider webhooks. AI-suggested replies awaiting approval are rows with is_ai_draft = true (hidden from portal users).\n\nOne row of messages by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Messages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/meter_readings":{"get":{"operationId":"list_meter_readings","summary":"List meter readings","description":"Dial readings of a utility meter. Consumption for a period = (reading - previous reading) * utility_meters.multiplier.\n\nPages through the meter readings table of the organization, oldest first. Filters: id, utility_meter_id, read_on, reading_type, created_by.\n\nNeeds one of: maintenance.write, properties.read, properties.write.","tags":["Meter readings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_meter_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_meter_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_meter_id equals this."},{"name":"read_on","in":"query","required":false,"schema":{"description":"Only rows whose read_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose read_on equals this."},{"name":"reading_type","in":"query","required":false,"schema":{"description":"Only rows whose reading_type equals this.","type":"string","enum":["actual","estimated","move_in","move_out","provider"]},"description":"Only rows whose reading_type equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.read","properties.write"]}},"/v1/meter_readings/{id}":{"get":{"operationId":"get_meter_readings_row","summary":"Get a meter reading","description":"Dial readings of a utility meter. Consumption for a period = (reading - previous reading) * utility_meters.multiplier.\n\nOne row of meter readings by id, with every column the API shows.\n\nNeeds one of: maintenance.write, properties.read, properties.write.","tags":["Meter readings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write","properties.read","properties.write"]}},"/v1/mitchell_lama_affidavits":{"get":{"operationId":"list_mitchell_lama_affidavits","summary":"List mitchell lama affidavits","description":"One household's annual income affidavit for a Mitchell-Lama program: requested and due dates, and once received the household size and income from the affidavit, the rent it was measured against, the income limit, how far over it the income is, and the surcharge. An affidavit not received by its due date is missing (the agency then lets the maximum surcharge apply).\n\nPages through the mitchell lama affidavits table of the organization, oldest first. Filters: id, mitchell_lama_program_id, property_id, lease_id, unit_id, requested_on, due_on, received_on, surcharge_starts_on, created_by.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama affidavits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"mitchell_lama_program_id","in":"query","required":false,"schema":{"description":"Only rows whose mitchell_lama_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose mitchell_lama_program_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"requested_on","in":"query","required":false,"schema":{"description":"Only rows whose requested_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose requested_on equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"received_on","in":"query","required":false,"schema":{"description":"Only rows whose received_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose received_on equals this."},{"name":"surcharge_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose surcharge_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose surcharge_starts_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_affidavits/{id}":{"get":{"operationId":"get_mitchell_lama_affidavits_row","summary":"Get a mitchell lama affidavit","description":"One household's annual income affidavit for a Mitchell-Lama program: requested and due dates, and once received the household size and income from the affidavit, the rent it was measured against, the income limit, how far over it the income is, and the surcharge. An affidavit not received by its due date is missing (the agency then lets the maximum surcharge apply).\n\nOne row of mitchell lama affidavits by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama affidavits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_programs":{"get":{"operationId":"list_mitchell_lama_programs","summary":"List mitchell lama programs","description":"The Mitchell-Lama terms of a housing program: the supervising agency, its development number and the income limit used for the surcharge. Staff read with affordable.read and write through the RPCs at the property.\n\nPages through the mitchell lama programs table of the organization, oldest first. Filters: id, property_id, housing_program_id, supervising_agency, created_by.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama programs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"supervising_agency","in":"query","required":false,"schema":{"description":"Only rows whose supervising_agency equals this.","type":"string","enum":["hpd","hcr"]},"description":"Only rows whose supervising_agency equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_programs/{id}":{"get":{"operationId":"get_mitchell_lama_programs_row","summary":"Get a mitchell lama program","description":"The Mitchell-Lama terms of a housing program: the supervising agency, its development number and the income limit used for the surcharge. Staff read with affordable.read and write through the RPCs at the property.\n\nOne row of mitchell lama programs by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama programs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_surcharge_bands":{"get":{"operationId":"list_mitchell_lama_surcharge_bands","summary":"List mitchell lama surcharge bands","description":"The published surcharge schedule as data: from effective_on, income over the limit by more than over_limit_from_pct and up to over_limit_to_pct (null = no top) pays surcharge_pct of the monthly rent. The schedule in force on a date is every band with the latest effective_on on or before it.\n\nPages through the mitchell lama surcharge bands table of the organization, oldest first. Filters: id, mitchell_lama_program_id, effective_on, created_by.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama surcharge bands"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"mitchell_lama_program_id","in":"query","required":false,"schema":{"description":"Only rows whose mitchell_lama_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose mitchell_lama_program_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_surcharge_bands/{id}":{"get":{"operationId":"get_mitchell_lama_surcharge_bands_row","summary":"Get a mitchell lama surcharge band","description":"The published surcharge schedule as data: from effective_on, income over the limit by more than over_limit_from_pct and up to over_limit_to_pct (null = no top) pays surcharge_pct of the monthly rent. The schedule in force on a date is every band with the latest effective_on on or before it.\n\nOne row of mitchell lama surcharge bands by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama surcharge bands"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_surcharge_charges":{"get":{"operationId":"list_mitchell_lama_surcharge_charges","summary":"List mitchell lama surcharge charges","description":"Each month's surcharge charge posted for an affidavit (through post_charge, charge type ML_SURCHARGE). One per lease and month, so a newer affidavit never charges a month twice.\n\nPages through the mitchell lama surcharge charges table of the organization, oldest first. Filters: id, mitchell_lama_affidavit_id, lease_id, charge_id, period_month, created_by.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama surcharge charges"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"mitchell_lama_affidavit_id","in":"query","required":false,"schema":{"description":"Only rows whose mitchell_lama_affidavit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose mitchell_lama_affidavit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"period_month","in":"query","required":false,"schema":{"description":"Only rows whose period_month equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_month equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_surcharge_charges/{id}":{"get":{"operationId":"get_mitchell_lama_surcharge_charges_row","summary":"Get a mitchell lama surcharge charge","description":"Each month's surcharge charge posted for an affidavit (through post_charge, charge type ML_SURCHARGE). One per lease and month, so a newer affidavit never charges a month twice.\n\nOne row of mitchell lama surcharge charges by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama surcharge charges"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_waitlist_entries":{"get":{"operationId":"list_mitchell_lama_waitlist_entries","summary":"List mitchell lama waitlist entries","description":"An applicant on the supervising agency's waitlist for the development, kept in the agency's order: external_list_position is the place on the agency list and agency_log_number its log or application number (the agency, not the owner, sets both).\n\nPages through the mitchell lama waitlist entries table of the organization, oldest first. Filters: id, mitchell_lama_program_id, property_id, contact_id, applied_on, status, created_by.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama waitlist entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"mitchell_lama_program_id","in":"query","required":false,"schema":{"description":"Only rows whose mitchell_lama_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose mitchell_lama_program_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"applied_on","in":"query","required":false,"schema":{"description":"Only rows whose applied_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose applied_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["waiting","offered","housed","declined","withdrawn"]},"description":"Only rows whose status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_waitlist_entries/{id}":{"get":{"operationId":"get_mitchell_lama_waitlist_entries_row","summary":"Get a mitchell lama waitlist entry","description":"An applicant on the supervising agency's waitlist for the development, kept in the agency's order: external_list_position is the place on the agency list and agency_log_number its log or application number (the agency, not the owner, sets both).\n\nOne row of mitchell lama waitlist entries by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama waitlist entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_waitlist_offers":{"get":{"operationId":"list_mitchell_lama_waitlist_offers","summary":"List mitchell lama waitlist offers","description":"A unit offered to a waitlist applicant, with the date to answer by and the answer. One pending offer per applicant at a time.\n\nPages through the mitchell lama waitlist offers table of the organization, oldest first. Filters: id, mitchell_lama_waitlist_entry_id, unit_id, offered_on, respond_by, outcome, responded_on, created_by.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama waitlist offers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"mitchell_lama_waitlist_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose mitchell_lama_waitlist_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose mitchell_lama_waitlist_entry_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"offered_on","in":"query","required":false,"schema":{"description":"Only rows whose offered_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose offered_on equals this."},{"name":"respond_by","in":"query","required":false,"schema":{"description":"Only rows whose respond_by equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose respond_by equals this."},{"name":"outcome","in":"query","required":false,"schema":{"description":"Only rows whose outcome equals this.","type":"string","enum":["pending","accepted","declined","expired"]},"description":"Only rows whose outcome equals this."},{"name":"responded_on","in":"query","required":false,"schema":{"description":"Only rows whose responded_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose responded_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/mitchell_lama_waitlist_offers/{id}":{"get":{"operationId":"get_mitchell_lama_waitlist_offers_row","summary":"Get a mitchell lama waitlist offer","description":"A unit offered to a waitlist applicant, with the date to answer by and the answer. One pending offer per applicant at a time.\n\nOne row of mitchell lama waitlist offers by id, with every column the API shows.\n\nNeeds one of: affordable.read.","tags":["Mitchell lama waitlist offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/move_checklist_template_items":{"get":{"operationId":"list_move_checklist_template_items","summary":"List move checklist template items","description":"Org-configurable default checklist copied onto every new move-in / move-out event (keys, utilities transfer, renter's insurance, inspection, forwarding address...).\n\nPages through the move checklist template items table of the organization, oldest first. Filters: id, event_type, is_required, is_tenant_task, is_active.\n\nNeeds one of: leasing.write, settings.write.","tags":["Move checklist template items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"event_type","in":"query","required":false,"schema":{"description":"Only rows whose event_type equals this.","type":"string","enum":["move_in","move_out"]},"description":"Only rows whose event_type equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."},{"name":"is_tenant_task","in":"query","required":false,"schema":{"description":"Only rows whose is_tenant_task equals this.","type":"boolean"},"description":"Only rows whose is_tenant_task equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write","settings.write"]},"post":{"operationId":"create_move_checklist_template_items_row","summary":"Create a move checklist template item","description":"Org-configurable default checklist copied onto every new move-in / move-out event (keys, utilities transfer, renter's insurance, inspection, forwarding address...).\n\nInserts one row of move checklist template items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write, settings.write.","tags":["Move checklist template items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event_type":{"type":"string","enum":["move_in","move_out"],"description":"event type"},"label":{"type":"string","maxLength":100000,"description":"label"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"is_required":{"type":"boolean","description":"is required"},"is_tenant_task":{"type":"boolean","description":"Item the tenant completes in the portal (e.g. upload renter's insurance) rather than staff."},"is_active":{"type":"boolean","description":"is active"},"system_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"Set when the system knows whether the item is done (public.move_in_readiness reads the fact); null for a custom item ticked by hand."},{"type":"null"}]}},"required":["event_type","label"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write","settings.write"]}},"/v1/move_checklist_template_items/{id}":{"get":{"operationId":"get_move_checklist_template_items_row","summary":"Get a move checklist template item","description":"Org-configurable default checklist copied onto every new move-in / move-out event (keys, utilities transfer, renter's insurance, inspection, forwarding address...).\n\nOne row of move checklist template items by id, with every column the API shows.\n\nNeeds one of: leasing.write, settings.write.","tags":["Move checklist template items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write","settings.write"]},"patch":{"operationId":"update_move_checklist_template_items_row","summary":"Update a move checklist template item","description":"Org-configurable default checklist copied onto every new move-in / move-out event (keys, utilities transfer, renter's insurance, inspection, forwarding address...).\n\nChanges the given fields of one row of move checklist template items and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write, settings.write.","tags":["Move checklist template items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"event_type":{"type":"string","enum":["move_in","move_out"],"description":"event type"},"label":{"type":"string","maxLength":100000,"description":"label"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"is_required":{"type":"boolean","description":"is required"},"is_tenant_task":{"type":"boolean","description":"Item the tenant completes in the portal (e.g. upload renter's insurance) rather than staff."},"is_active":{"type":"boolean","description":"is active"},"system_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"Set when the system knows whether the item is done (public.move_in_readiness reads the fact); null for a custom item ticked by hand."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write","settings.write"]},"delete":{"operationId":"delete_move_checklist_template_items_row","summary":"Delete a move checklist template item","description":"Org-configurable default checklist copied onto every new move-in / move-out event (keys, utilities transfer, renter's insurance, inspection, forwarding address...).\n\nDeletes one row of move checklist template items. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write, settings.write.","tags":["Move checklist template items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write","settings.write"]}},"/v1/move_event_checklist_items":{"get":{"operationId":"list_move_event_checklist_items","summary":"List move event checklist items","description":"Checklist items of a move-in / move-out; completed when completed_at is set.\n\nPages through the move event checklist items table of the organization, oldest first. Filters: id, move_event_id, is_required, is_tenant_task, completed_by.\n\nNeeds one of: leasing.write.","tags":["Move event checklist items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"move_event_id","in":"query","required":false,"schema":{"description":"Only rows whose move_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose move_event_id equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."},{"name":"is_tenant_task","in":"query","required":false,"schema":{"description":"Only rows whose is_tenant_task equals this.","type":"boolean"},"description":"Only rows whose is_tenant_task equals this."},{"name":"completed_by","in":"query","required":false,"schema":{"description":"Only rows whose completed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose completed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/move_event_checklist_items/{id}":{"get":{"operationId":"get_move_event_checklist_items_row","summary":"Get a move event checklist item","description":"Checklist items of a move-in / move-out; completed when completed_at is set.\n\nOne row of move event checklist items by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Move event checklist items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/notification_preferences":{"get":{"operationId":"list_notification_preferences","summary":"List notification preferences","description":"Opt-in/opt-out per recipient (user or contact), event and channel. event_key null = applies to every event on that channel; an event-specific row overrides it. Absence of a row means the event's default_channels apply. Transactional events ignore opt-outs for in_app and email.\n\nPages through the notification preferences table of the organization, oldest first. Filters: id, user_id, contact_id, channel, is_enabled.\n\nNeeds one of: communications.write.","tags":["Notification preferences"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["in_app","push","email","sms","voice"]},"description":"Only rows whose channel equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]},"post":{"operationId":"create_notification_preferences_row","summary":"Create a notification preference","description":"Opt-in/opt-out per recipient (user or contact), event and channel. event_key null = applies to every event on that channel; an event-specific row overrides it. Absence of a row means the event's default_channels apply. Transactional events ignore opt-outs for in_app and email.\n\nInserts one row of notification preferences in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: communications.write.","tags":["Notification preferences"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"event_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"event key"},{"type":"null"}]},"channel":{"type":"string","enum":["in_app","push","email","sms","voice"],"description":"channel"},"is_enabled":{"type":"boolean","description":"is enabled"}},"required":["channel","is_enabled"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/notification_preferences/{id}":{"get":{"operationId":"get_notification_preferences_row","summary":"Get a notification preference","description":"Opt-in/opt-out per recipient (user or contact), event and channel. event_key null = applies to every event on that channel; an event-specific row overrides it. Absence of a row means the event's default_channels apply. Transactional events ignore opt-outs for in_app and email.\n\nOne row of notification preferences by id, with every column the API shows.\n\nNeeds one of: communications.write.","tags":["Notification preferences"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]},"patch":{"operationId":"update_notification_preferences_row","summary":"Update a notification preference","description":"Opt-in/opt-out per recipient (user or contact), event and channel. event_key null = applies to every event on that channel; an event-specific row overrides it. Absence of a row means the event's default_channels apply. Transactional events ignore opt-outs for in_app and email.\n\nChanges the given fields of one row of notification preferences and returns it. Fields left out stay as they are.\n\nNeeds one of: communications.write.","tags":["Notification preferences"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"event_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"event key"},{"type":"null"}]},"channel":{"type":"string","enum":["in_app","push","email","sms","voice"],"description":"channel"},"is_enabled":{"type":"boolean","description":"is enabled"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/notification_quiet_hours":{"get":{"operationId":"list_notification_quiet_hours","summary":"List notification quiet hours","description":"Do-not-disturb window per recipient: push and SMS deliveries falling inside it are deferred to its end (status deferred). Windows may cross midnight (22:00-07:00).\n\nPages through the notification quiet hours table of the organization, oldest first. Filters: id, user_id, contact_id, allow_urgent.\n\nNeeds one of: communications.write.","tags":["Notification quiet hours"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"allow_urgent","in":"query","required":false,"schema":{"description":"Only rows whose allow_urgent equals this.","type":"boolean"},"description":"Only rows whose allow_urgent equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/notification_quiet_hours/{id}":{"get":{"operationId":"get_notification_quiet_hours_row","summary":"Get a notification quiet hour","description":"Do-not-disturb window per recipient: push and SMS deliveries falling inside it are deferred to its end (status deferred). Windows may cross midnight (22:00-07:00).\n\nOne row of notification quiet hours by id, with every column the API shows.\n\nNeeds one of: communications.write.","tags":["Notification quiet hours"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/notification_templates":{"get":{"operationId":"list_notification_templates","summary":"List notification templates","description":"Message templates per event and channel with {{merge_field}} placeholders. org_id null = platform system default;\n\nPages through the notification templates table of the organization, oldest first. Filters: id, channel, is_active, created_by.\n\nNeeds one of: settings.write.","tags":["Notification templates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["in_app","push","email","sms","voice"]},"description":"Only rows whose channel equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"post":{"operationId":"create_notification_templates_row","summary":"Create a notification template","description":"Message templates per event and channel with {{merge_field}} placeholders. org_id null = platform system default;\n\nInserts one row of notification templates in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Notification templates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event_key":{"type":"string","maxLength":100000,"description":"event key"},"channel":{"type":"string","enum":["in_app","push","email","sms","voice"],"description":"channel"},"locale":{"type":"string","maxLength":100000,"description":"locale"},"subject":{"anyOf":[{"type":"string","maxLength":100000,"description":"Email subject or push title (merge fields allowed). Required for email."},{"type":"null"}]},"body":{"type":"string","maxLength":100000,"description":"Plain-text body (SMS, push, in-app) or email text part, with {{merge_field}} placeholders listed in notification_events.merge_fields."},"body_html":{"anyOf":[{"type":"string","maxLength":100000,"description":"body html"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"version"}},"required":["event_key","channel","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/notification_templates/{id}":{"get":{"operationId":"get_notification_templates_row","summary":"Get a notification template","description":"Message templates per event and channel with {{merge_field}} placeholders. org_id null = platform system default;\n\nOne row of notification templates by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Notification templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"patch":{"operationId":"update_notification_templates_row","summary":"Update a notification template","description":"Message templates per event and channel with {{merge_field}} placeholders. org_id null = platform system default;\n\nChanges the given fields of one row of notification templates and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Notification templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"event_key":{"type":"string","maxLength":100000,"description":"event key"},"channel":{"type":"string","enum":["in_app","push","email","sms","voice"],"description":"channel"},"locale":{"type":"string","maxLength":100000,"description":"locale"},"subject":{"anyOf":[{"type":"string","maxLength":100000,"description":"Email subject or push title (merge fields allowed). Required for email."},{"type":"null"}]},"body":{"type":"string","maxLength":100000,"description":"Plain-text body (SMS, push, in-app) or email text part, with {{merge_field}} placeholders listed in notification_events.merge_fields."},"body_html":{"anyOf":[{"type":"string","maxLength":100000,"description":"body html"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"version"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"delete":{"operationId":"delete_notification_templates_row","summary":"Delete a notification template","description":"Message templates per event and channel with {{merge_field}} placeholders. org_id null = platform system default;\n\nDeletes one row of notification templates. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Notification templates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/notifications":{"get":{"operationId":"list_notifications","summary":"List notifications","description":"One notification for one recipient (a user or a contact) about one event: the in-app inbox row plus the parent of its per-channel notification_deliveries. Facts are typed columns (amount_cents, due_on, subject FKs) for reporting; data holds extra template merge values. Created by enqueue_notification.\n\nPages through the notifications table of the organization, oldest first. Filters: id, recipient_user_id, recipient_contact_id, priority, due_on, property_id, unit_id, lease_id, work_order_id, service_request_id, rental_application_id, showing_id, conversation_id, message_id, announcement_id, task_id, calendar_event_id, charge_id, receipt_id, bill_id, owner_statement_id, template_id, has_custom_wording.\n\nNeeds one of: communications.read.","tags":["Notifications"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"recipient_user_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_user_id equals this."},{"name":"recipient_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_contact_id equals this."},{"name":"priority","in":"query","required":false,"schema":{"description":"Only rows whose priority equals this.","type":"string","enum":["low","normal","high","urgent"]},"description":"Only rows whose priority equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"showing_id","in":"query","required":false,"schema":{"description":"Only rows whose showing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose showing_id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."},{"name":"announcement_id","in":"query","required":false,"schema":{"description":"Only rows whose announcement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose announcement_id equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"calendar_event_id","in":"query","required":false,"schema":{"description":"Only rows whose calendar_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose calendar_event_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"owner_statement_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_statement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_statement_id equals this."},{"name":"template_id","in":"query","required":false,"schema":{"description":"Only rows whose template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose template_id equals this."},{"name":"has_custom_wording","in":"query","required":false,"schema":{"description":"Only rows whose has_custom_wording equals this.","type":"boolean"},"description":"Only rows whose has_custom_wording equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/notifications/{id}":{"get":{"operationId":"get_notifications_row","summary":"Get a notification","description":"One notification for one recipient (a user or a contact) about one event: the in-app inbox row plus the parent of its per-channel notification_deliveries. Facts are typed columns (amount_cents, due_on, subject FKs) for reporting; data holds extra template merge values. Created by enqueue_notification.\n\nOne row of notifications by id, with every column the API shows.\n\nNeeds one of: communications.read.","tags":["Notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/nsf_events":{"get":{"operationId":"list_nsf_events","summary":"List nsf events","description":"A tenant payment returned by the bank or processor (NSF, closed account, chargeback...). the receipt's postings are reversed and an NSF fee may be charged.\n\nPages through the nsf events table of the organization, oldest first. Filters: id, receipt_id, lease_id, contact_id, property_id, returned_on, reason, payment_transaction_id, fee_charge_id, created_by.\n\nNeeds one of: receivables.read.","tags":["NSF events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"returned_on","in":"query","required":false,"schema":{"description":"Only rows whose returned_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose returned_on equals this."},{"name":"reason","in":"query","required":false,"schema":{"description":"Only rows whose reason equals this.","type":"string","enum":["nsf","account_closed","stop_payment","invalid_account","unauthorized","chargeback","counterfeit","other"]},"description":"Only rows whose reason equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"fee_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose fee_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose fee_charge_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/nsf_events/{id}":{"get":{"operationId":"get_nsf_events_row","summary":"Get a nsf event","description":"A tenant payment returned by the bank or processor (NSF, closed account, chargeback...). the receipt's postings are reversed and an NSF fee may be charged.\n\nOne row of nsf events by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["NSF events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/nsf_fee_policies":{"get":{"operationId":"list_nsf_fee_policies","summary":"List nsf fee policies","description":"Returned-payment rules per property (or org default when property_id is null), effective dated: the NSF fee charged and when a tenant must switch to certified funds.\n\nPages through the nsf fee policies table of the organization, oldest first. Filters: id, property_id, charge_type_id, effective_on, ends_on, is_active, created_by.\n\nNeeds one of: receivables.read, settings.write.","tags":["NSF fee policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","settings.write"]},"post":{"operationId":"create_nsf_fee_policies_row","summary":"Create a nsf fee policy","description":"Returned-payment rules per property (or org default when property_id is null), effective dated: the NSF fee charged and when a tenant must switch to certified funds.\n\nInserts one row of nsf fee policies in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["NSF fee policies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee charged on a returned payment; 0 = no fee."},"charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type for the fee; null = the NSF_FEE system type."},{"type":"null"}]},"certified_funds_after_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"After this many returned payments within the lookback window the lease must pay with certified funds (public.lease_requires_certified_funds). Null = never."},{"type":"null"}]},"certified_funds_lookback_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"certified funds lookback months"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/nsf_fee_policies/{id}":{"get":{"operationId":"get_nsf_fee_policies_row","summary":"Get a nsf fee policy","description":"Returned-payment rules per property (or org default when property_id is null), effective dated: the NSF fee charged and when a tenant must switch to certified funds.\n\nOne row of nsf fee policies by id, with every column the API shows.\n\nNeeds one of: receivables.read, settings.write.","tags":["NSF fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","settings.write"]},"patch":{"operationId":"update_nsf_fee_policies_row","summary":"Update a nsf fee policy","description":"Returned-payment rules per property (or org default when property_id is null), effective dated: the NSF fee charged and when a tenant must switch to certified funds.\n\nChanges the given fields of one row of nsf fee policies and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["NSF fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee charged on a returned payment; 0 = no fee."},"charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type for the fee; null = the NSF_FEE system type."},{"type":"null"}]},"certified_funds_after_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"After this many returned payments within the lookback window the lease must pay with certified funds (public.lease_requires_certified_funds). Null = never."},{"type":"null"}]},"certified_funds_lookback_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"certified funds lookback months"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/nspire_scores":{"get":{"operationId":"list_nspire_scores","summary":"List nspire scores","description":"HUD NSPIRE (formerly REAC) inspection scores per property, kept as history. The score sets the next inspection: 90 or more in 3 years, 80 or more in 2 years, otherwise in 1 year; below 60 fails. Written by staff with compliance.write.\n\nPages through the nspire scores table of the organization, oldest first. Filters: id, property_id, inspected_on, inspection_id, next_due_on, created_by.\n\nNeeds one of: compliance.read, compliance.write.","tags":["NSPIRE scores"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"inspected_on","in":"query","required":false,"schema":{"description":"Only rows whose inspected_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose inspected_on equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"next_due_on","in":"query","required":false,"schema":{"description":"Only rows whose next_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_due_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"post":{"operationId":"create_nspire_scores_row","summary":"Create a nspire score","description":"HUD NSPIRE (formerly REAC) inspection scores per property, kept as history. The score sets the next inspection: 90 or more in 3 years, 80 or more in 2 years, otherwise in 1 year; below 60 fails. Written by staff with compliance.write.\n\nInserts one row of nspire scores in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: compliance.write.","tags":["NSPIRE scores"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"inspected_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"inspected on"},"score":{"type":"number","description":"Inspection score from 0 to 100; below 60 is a failing score."},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The NSPIRE inspection recorded in the app, when there is one."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","inspected_on","score"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/nspire_scores/{id}":{"get":{"operationId":"get_nspire_scores_row","summary":"Get a nspire score","description":"HUD NSPIRE (formerly REAC) inspection scores per property, kept as history. The score sets the next inspection: 90 or more in 3 years, 80 or more in 2 years, otherwise in 1 year; below 60 fails. Written by staff with compliance.write.\n\nOne row of nspire scores by id, with every column the API shows.\n\nNeeds one of: compliance.read, compliance.write.","tags":["NSPIRE scores"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","compliance.write"]},"patch":{"operationId":"update_nspire_scores_row","summary":"Update a nspire score","description":"HUD NSPIRE (formerly REAC) inspection scores per property, kept as history. The score sets the next inspection: 90 or more in 3 years, 80 or more in 2 years, otherwise in 1 year; below 60 fails. Written by staff with compliance.write.\n\nChanges the given fields of one row of nspire scores and returns it. Fields left out stay as they are.\n\nNeeds one of: compliance.write.","tags":["NSPIRE scores"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"inspected_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"inspected on"},"score":{"type":"number","description":"Inspection score from 0 to 100; below 60 is a failing score."},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The NSPIRE inspection recorded in the app, when there is one."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/nyc_open_data_syncs":{"get":{"operationId":"list_nyc_open_data_syncs","summary":"List nyc open data syncs","description":"One row per NYC Open Data sync of one property and source: how many agency records came back, how many rows were written and the error, if the request failed.\n\nPages through the nyc open data syncs table of the organization, oldest first. Filters: id, property_id, requested_by.\n\nNeeds one of: compliance.read.","tags":["NYC open data syncs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read"]}},"/v1/nyc_open_data_syncs/{id}":{"get":{"operationId":"get_nyc_open_data_syncs_row","summary":"Get a nyc open data sync","description":"One row per NYC Open Data sync of one property and source: how many agency records came back, how many rows were written and the error, if the request failed.\n\nOne row of nyc open data syncs by id, with every column the API shows.\n\nNeeds one of: compliance.read.","tags":["NYC open data syncs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read"]}},"/v1/offerings":{"get":{"operationId":"list_offerings","summary":"List offerings","description":"A capital raise for an investment entity (one share class). Fundraising pipeline = its investor_commitments by status. Status machine: draft -> marketing -> open -> closed -> funded; cancelled from any non-funded state.\n\nPages through the offerings table of the organization, oldest first. Filters: id, investment_entity_id, share_class_id, status, exemption, requires_accreditation, opens_on, closes_on, closed_on, created_by.\n\nNeeds one of: investments.read, investments.write.","tags":["Offerings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"share_class_id","in":"query","required":false,"schema":{"description":"Only rows whose share_class_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose share_class_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","marketing","open","closed","funded","cancelled"]},"description":"Only rows whose status equals this."},{"name":"exemption","in":"query","required":false,"schema":{"description":"Only rows whose exemption equals this.","type":"string","enum":["reg_d_506b","reg_d_506c","reg_a","reg_cf","intrastate","private","other"]},"description":"Only rows whose exemption equals this."},{"name":"requires_accreditation","in":"query","required":false,"schema":{"description":"Only rows whose requires_accreditation equals this.","type":"boolean"},"description":"Only rows whose requires_accreditation equals this."},{"name":"opens_on","in":"query","required":false,"schema":{"description":"Only rows whose opens_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose opens_on equals this."},{"name":"closes_on","in":"query","required":false,"schema":{"description":"Only rows whose closes_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose closes_on equals this."},{"name":"closed_on","in":"query","required":false,"schema":{"description":"Only rows whose closed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose closed_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"post":{"operationId":"create_offerings_row","summary":"Create an offering","description":"A capital raise for an investment entity (one share class). Fundraising pipeline = its investor_commitments by status. Status machine: draft -> marketing -> open -> closed -> funded; cancelled from any non-funded state.\n\nInserts one row of offerings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: investments.write.","tags":["Offerings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"share_class_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"share class id"},"name":{"type":"string","maxLength":100000,"description":"name"},"exemption":{"type":"string","enum":["reg_d_506b","reg_d_506c","reg_a","reg_cf","intrastate","private","other"],"description":"Securities exemption: reg_d_506b (no general solicitation, up to 35 non-accredited), reg_d_506c (general solicitation, verified accredited only), reg_a, reg_cf, intrastate, private, other."},"target_raise_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Equity the sponsor aims to raise, minor units."},"max_raise_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hard cap on accepted commitments, minor units (null = target is the cap only by policy)."},{"type":"null"}]},"min_investment_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Smallest commitment accepted, minor units."},"unit_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"unit price cents"},{"type":"null"}]},"preferred_return_rate":{"anyOf":[{"type":"number","description":"Marketed preferred return, 0.08 = 8% per year (the binding terms live in distribution_waterfalls)."},{"type":"null"}]},"target_irr_rate":{"anyOf":[{"type":"number","description":"Projected investor IRR, 0.15 = 15% (marketing only)."},{"type":"null"}]},"target_equity_multiple":{"anyOf":[{"type":"number","description":"Projected equity multiple, e.g. 1.85 (marketing only)."},{"type":"null"}]},"requires_accreditation":{"type":"boolean","description":"requires accreditation"},"opens_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opens on"},{"type":"null"}]},"closes_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"closes on"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["investment_entity_id","share_class_id","name","target_raise_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/offerings/{id}":{"get":{"operationId":"get_offerings_row","summary":"Get an offering","description":"A capital raise for an investment entity (one share class). Fundraising pipeline = its investor_commitments by status. Status machine: draft -> marketing -> open -> closed -> funded; cancelled from any non-funded state.\n\nOne row of offerings by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Offerings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_offerings_row","summary":"Update an offering","description":"A capital raise for an investment entity (one share class). Fundraising pipeline = its investor_commitments by status. Status machine: draft -> marketing -> open -> closed -> funded; cancelled from any non-funded state.\n\nChanges the given fields of one row of offerings and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Offerings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"investment_entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},"share_class_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"share class id"},"name":{"type":"string","maxLength":100000,"description":"name"},"exemption":{"type":"string","enum":["reg_d_506b","reg_d_506c","reg_a","reg_cf","intrastate","private","other"],"description":"Securities exemption: reg_d_506b (no general solicitation, up to 35 non-accredited), reg_d_506c (general solicitation, verified accredited only), reg_a, reg_cf, intrastate, private, other."},"target_raise_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Equity the sponsor aims to raise, minor units."},"max_raise_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Hard cap on accepted commitments, minor units (null = target is the cap only by policy)."},{"type":"null"}]},"min_investment_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Smallest commitment accepted, minor units."},"unit_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"unit price cents"},{"type":"null"}]},"preferred_return_rate":{"anyOf":[{"type":"number","description":"Marketed preferred return, 0.08 = 8% per year (the binding terms live in distribution_waterfalls)."},{"type":"null"}]},"target_irr_rate":{"anyOf":[{"type":"number","description":"Projected investor IRR, 0.15 = 15% (marketing only)."},{"type":"null"}]},"target_equity_multiple":{"anyOf":[{"type":"number","description":"Projected equity multiple, e.g. 1.85 (marketing only)."},{"type":"null"}]},"requires_accreditation":{"type":"boolean","description":"requires accreditation"},"opens_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opens on"},{"type":"null"}]},"closes_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"closes on"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]},"delete":{"operationId":"delete_offerings_row","summary":"Delete an offering","description":"A capital raise for an investment entity (one share class). Fundraising pipeline = its investor_commitments by status. Status machine: draft -> marketing -> open -> closed -> funded; cancelled from any non-funded state.\n\nDeletes one row of offerings. The database refuses it where other records still need the row.\n\nNeeds one of: investments.write.","tags":["Offerings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/on_call_overrides":{"get":{"operationId":"list_on_call_overrides","summary":"List on call overrides","description":"Someone covers the primary or the backup slot of a schedule for the on-call days starts_on to ends_on (a vacation swap). Where overrides overlap, the newest wins.\n\nPages through the on call overrides table of the organization, oldest first. Filters: id, schedule_id, user_id, starts_on, ends_on, created_by.\n\nNeeds one of: maintenance.dispatch, maintenance.read, settings.write.","tags":["On call overrides"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose schedule_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read","settings.write"]},"post":{"operationId":"create_on_call_overrides_row","summary":"Create an on call override","description":"Someone covers the primary or the backup slot of a schedule for the on-call days starts_on to ends_on (a vacation swap). Where overrides overlap, the newest wins.\n\nInserts one row of on call overrides in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call overrides"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},"slot":{"type":"string","maxLength":100000,"description":"slot"},"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["schedule_id","slot","user_id","starts_on","ends_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call_overrides/{id}":{"get":{"operationId":"get_on_call_overrides_row","summary":"Get an on call override","description":"Someone covers the primary or the backup slot of a schedule for the on-call days starts_on to ends_on (a vacation swap). Where overrides overlap, the newest wins.\n\nOne row of on call overrides by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read, settings.write.","tags":["On call overrides"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read","settings.write"]},"delete":{"operationId":"delete_on_call_overrides_row","summary":"Delete an on call override","description":"Someone covers the primary or the backup slot of a schedule for the on-call days starts_on to ends_on (a vacation swap). Where overrides overlap, the newest wins.\n\nDeletes one row of on call overrides. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call overrides"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call_schedule_members":{"get":{"operationId":"list_on_call_schedule_members","summary":"List on call schedule members","description":"The people of a weekly rotation in turn order (position, then when added). Week k of the rotation has member k as primary and member k + 1 as backup.\n\nPages through the on call schedule members table of the organization, oldest first. Filters: id, schedule_id, user_id.\n\nNeeds one of: maintenance.dispatch, maintenance.read, settings.write.","tags":["On call schedule members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose schedule_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read","settings.write"]},"post":{"operationId":"create_on_call_schedule_members_row","summary":"Create an on call schedule member","description":"The people of a weekly rotation in turn order (position, then when added). Week k of the rotation has member k as primary and member k + 1 as backup.\n\nInserts one row of on call schedule members in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call schedule members"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"position"}},"required":["schedule_id","user_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call_schedule_members/{id}":{"get":{"operationId":"get_on_call_schedule_members_row","summary":"Get an on call schedule member","description":"The people of a weekly rotation in turn order (position, then when added). Week k of the rotation has member k as primary and member k + 1 as backup.\n\nOne row of on call schedule members by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read, settings.write.","tags":["On call schedule members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read","settings.write"]},"patch":{"operationId":"update_on_call_schedule_members_row","summary":"Update an on call schedule member","description":"The people of a weekly rotation in turn order (position, then when added). Week k of the rotation has member k as primary and member k + 1 as backup.\n\nChanges the given fields of one row of on call schedule members and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call schedule members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"position"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"delete":{"operationId":"delete_on_call_schedule_members_row","summary":"Delete an on call schedule member","description":"The people of a weekly rotation in turn order (position, then when added). Week k of the rotation has member k as primary and member k + 1 as backup.\n\nDeletes one row of on call schedule members. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call schedule members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call_schedules/{id}":{"get":{"operationId":"get_on_call_schedules_row","summary":"Get an on call schedule","description":"An on-call rotation: org-wide (no property or group), for one property, or for a portfolio group. The most specific active schedule decides who is on call for a property.\n\nOne row of on call schedules by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read, settings.write.","tags":["On call schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read","settings.write"]},"patch":{"operationId":"update_on_call_schedules_row","summary":"Update an on call schedule","description":"An on-call rotation: org-wide (no property or group), for one property, or for a portfolio group. The most specific active schedule decides who is on call for a property.\n\nChanges the given fields of one row of on call schedules and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"portfolio_group_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"portfolio group id"},{"type":"null"}]},"rotation":{"type":"string","maxLength":100000,"description":"weekly: on_call_schedule_members take turns, one week each, and the next member is the backup. custom: on_call_shifts name the primary and backup per date range."},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"The first on-call day. A weekly rotation hands off every 7 days from this date."},"handoff_time":{"type":"string","maxLength":100000,"description":"When the on-call day starts, in the org time zone. An on-call day runs from this time to the same time the next day."},"is_active":{"type":"boolean","description":"is active"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]},"delete":{"operationId":"delete_on_call_schedules_row","summary":"Delete an on call schedule","description":"An on-call rotation: org-wide (no property or group), for one property, or for a portfolio group. The most specific active schedule decides who is on call for a property.\n\nDeletes one row of on call schedules. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/on_call_shifts/{id}":{"get":{"operationId":"get_on_call_shifts_row","summary":"Get an on call shift","description":"A custom rotation's shifts: who is primary and backup for the on-call days starts_on to ends_on. Where shifts overlap, the newest wins.\n\nOne row of on call shifts by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read, settings.write.","tags":["On call shifts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read","settings.write"]},"delete":{"operationId":"delete_on_call_shifts_row","summary":"Delete an on call shift","description":"A custom rotation's shifts: who is primary and backup for the on-call days starts_on to ends_on. Where shifts overlap, the newest wins.\n\nDeletes one row of on call shifts. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch, settings.write.","tags":["On call shifts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","settings.write"]}},"/v1/opening_balance_batches":{"get":{"operationId":"list_opening_balance_batches","summary":"List opening balance batches","description":"Starting balances at conversion (trial balance by property fund, tenant receivables and prepaids by lease, deposits held, owner equity, bank balances) as of as_of_on. Lines are drafted in opening_balance_lines and posted as one journal entry with entry_type opening_balance by post_opening_balance_batch (must balance in total and per property fund; use OPENING_BALANCE_EQUITY as the offset). Money row: SELECT only for clients.\n\nPages through the opening balance batches table of the organization, oldest first. Filters: id, data_import_id, as_of_on, status, journal_entry_id, posted_by, void_journal_entry_id, created_by.\n\nNeeds one of: gl.read, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"data_import_id","in":"query","required":false,"schema":{"description":"Only rows whose data_import_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose data_import_id equals this."},{"name":"as_of_on","in":"query","required":false,"schema":{"description":"Only rows whose as_of_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose as_of_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","posted","voided"]},"description":"Only rows whose status equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"posted_by","in":"query","required":false,"schema":{"description":"Only rows whose posted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose posted_by equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","imports.run"]}},"/v1/opening_balance_batches/{id}":{"get":{"operationId":"get_opening_balance_batches_row","summary":"Get an opening balance batch","description":"Starting balances at conversion (trial balance by property fund, tenant receivables and prepaids by lease, deposits held, owner equity, bank balances) as of as_of_on. Lines are drafted in opening_balance_lines and posted as one journal entry with entry_type opening_balance by post_opening_balance_batch (must balance in total and per property fund; use OPENING_BALANCE_EQUITY as the offset). Money row: SELECT only for clients.\n\nOne row of opening balance batches by id, with every column the API shows.\n\nNeeds one of: gl.read, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","imports.run"]}},"/v1/opening_balance_lines":{"get":{"operationId":"list_opening_balance_lines","summary":"List opening balance lines","description":"Draft lines of an opening balance batch, same shape as journal_lines (signed amount_cents: debit positive, credit negative; ledger dimensions). Copied into the journal when the batch is posted; frozen afterwards.\n\nPages through the opening balance lines table of the organization, oldest first. Filters: id, batch_id, gl_account_id, property_id, unit_id, lease_id, owner_id, contact_id, vendor_id, bank_account_id, data_import_row_id.\n\nNeeds one of: gl.read, imports.run.","tags":["Opening balance lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"batch_id","in":"query","required":false,"schema":{"description":"Only rows whose batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose batch_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"data_import_row_id","in":"query","required":false,"schema":{"description":"Only rows whose data_import_row_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose data_import_row_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","imports.run"]}},"/v1/opening_balance_lines/{id}":{"get":{"operationId":"get_opening_balance_lines_row","summary":"Get an opening balance line","description":"Draft lines of an opening balance batch, same shape as journal_lines (signed amount_cents: debit positive, credit negative; ledger dimensions). Copied into the journal when the batch is posted; frozen afterwards.\n\nOne row of opening balance lines by id, with every column the API shows.\n\nNeeds one of: gl.read, imports.run.","tags":["Opening balance lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","imports.run"]}},"/v1/ops_meetings":{"get":{"operationId":"list_ops_meetings","summary":"List ops meetings","description":"An owner-manager operations call: properties in scope (ops_meeting_properties), an agenda drafted from what needs attention (ops_meeting_items), notes or a transcript, and the action items it produced (tasks with ops_meeting_id). The next call's agenda carries open items forward from previous_meeting_id.\n\nPages through the ops meetings table of the organization, oldest first. Filters: id, meeting_on, status, previous_meeting_id, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Ops meetings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"meeting_on","in":"query","required":false,"schema":{"description":"Only rows whose meeting_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose meeting_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","held"]},"description":"Only rows whose status equals this."},{"name":"previous_meeting_id","in":"query","required":false,"schema":{"description":"Only rows whose previous_meeting_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose previous_meeting_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_ops_meetings_row","summary":"Create an ops meeting","description":"An owner-manager operations call: properties in scope (ops_meeting_properties), an agenda drafted from what needs attention (ops_meeting_items), notes or a transcript, and the action items it produced (tasks with ops_meeting_id). The next call's agenda carries open items forward from previous_meeting_id.\n\nInserts one row of ops meetings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Ops meetings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"meeting_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"meeting on"},"previous_meeting_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"previous meeting id"},{"type":"null"}]},"participants":{"anyOf":[{"type":"string","maxLength":100000,"description":"Who joins the call, as typed."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"Notes or a pasted transcript of the call."},{"type":"null"}]}},"required":["title","meeting_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/ops_meetings/{id}":{"get":{"operationId":"get_ops_meetings_row","summary":"Get an ops meeting","description":"An owner-manager operations call: properties in scope (ops_meeting_properties), an agenda drafted from what needs attention (ops_meeting_items), notes or a transcript, and the action items it produced (tasks with ops_meeting_id). The next call's agenda carries open items forward from previous_meeting_id.\n\nOne row of ops meetings by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Ops meetings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_ops_meetings_row","summary":"Update an ops meeting","description":"An owner-manager operations call: properties in scope (ops_meeting_properties), an agenda drafted from what needs attention (ops_meeting_items), notes or a transcript, and the action items it produced (tasks with ops_meeting_id). The next call's agenda carries open items forward from previous_meeting_id.\n\nChanges the given fields of one row of ops meetings and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Ops meetings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"meeting_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"meeting on"},"previous_meeting_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"previous meeting id"},{"type":"null"}]},"participants":{"anyOf":[{"type":"string","maxLength":100000,"description":"Who joins the call, as typed."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"Notes or a pasted transcript of the call."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]},"delete":{"operationId":"delete_ops_meetings_row","summary":"Delete an ops meeting","description":"An owner-manager operations call: properties in scope (ops_meeting_properties), an agenda drafted from what needs attention (ops_meeting_items), notes or a transcript, and the action items it produced (tasks with ops_meeting_id). The next call's agenda carries open items forward from previous_meeting_id.\n\nDeletes one row of ops meetings. The database refuses it where other records still need the row.\n\nNeeds one of: properties.write.","tags":["Ops meetings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/org_ip_allowlist_entries":{"get":{"operationId":"list_org_ip_allowlist_entries","summary":"List org ip allowlist entries","description":"Network ranges staff may sign in from when org_security_settings.is_ip_allowlist_enforced.\n\nPages through the org ip allowlist entries table of the organization, oldest first. Filters: id, created_by.\n\nNeeds one of: settings.write.","tags":["Org ip allowlist entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/org_ip_allowlist_entries/{id}":{"get":{"operationId":"get_org_ip_allowlist_entries_row","summary":"Get an org ip allowlist entry","description":"Network ranges staff may sign in from when org_security_settings.is_ip_allowlist_enforced.\n\nOne row of org ip allowlist entries by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Org ip allowlist entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/org_security_settings":{"get":{"operationId":"list_org_security_settings","summary":"List org security settings","description":"One row per organization: two-factor policy, session limits, password policy, SSO enforcement and IP allowlisting for staff. Enforced by the auth hook / Edge middleware, which reads this table.\n\nPages through the org security settings table of the organization, oldest first. Filters: id, mfa_requirement, allows_totp, allows_sms_otp, allows_webauthn, requires_sso_for_staff, is_ip_allowlist_enforced, updated_by.\n\nNeeds one of: settings.write.","tags":["Org security settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"mfa_requirement","in":"query","required":false,"schema":{"description":"Only rows whose mfa_requirement equals this.","type":"string","enum":["off","optional","required_for_admins","required_for_staff","required_for_all"]},"description":"Only rows whose mfa_requirement equals this."},{"name":"allows_totp","in":"query","required":false,"schema":{"description":"Only rows whose allows_totp equals this.","type":"boolean"},"description":"Only rows whose allows_totp equals this."},{"name":"allows_sms_otp","in":"query","required":false,"schema":{"description":"Only rows whose allows_sms_otp equals this.","type":"boolean"},"description":"Only rows whose allows_sms_otp equals this."},{"name":"allows_webauthn","in":"query","required":false,"schema":{"description":"Only rows whose allows_webauthn equals this.","type":"boolean"},"description":"Only rows whose allows_webauthn equals this."},{"name":"requires_sso_for_staff","in":"query","required":false,"schema":{"description":"Only rows whose requires_sso_for_staff equals this.","type":"boolean"},"description":"Only rows whose requires_sso_for_staff equals this."},{"name":"is_ip_allowlist_enforced","in":"query","required":false,"schema":{"description":"Only rows whose is_ip_allowlist_enforced equals this.","type":"boolean"},"description":"Only rows whose is_ip_allowlist_enforced equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/org_security_settings/{id}":{"get":{"operationId":"get_org_security_settings_row","summary":"Get an org security setting","description":"One row per organization: two-factor policy, session limits, password policy, SSO enforcement and IP allowlisting for staff. Enforced by the auth hook / Edge middleware, which reads this table.\n\nOne row of org security settings by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Org security settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/org_sso_domains":{"get":{"operationId":"list_org_sso_domains","summary":"List org sso domains","description":"Email domains routed to an SSO connection. A domain belongs to one organization platform-wide and must be verified (DNS TXT record) before it routes sign-ins.\n\nPages through the org sso domains table of the organization, oldest first. Filters: id, org_sso_connection_id.\n\nNeeds one of: settings.write.","tags":["Org sso domains"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"org_sso_connection_id","in":"query","required":false,"schema":{"description":"Only rows whose org_sso_connection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose org_sso_connection_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/org_sso_domains/{id}":{"get":{"operationId":"get_org_sso_domains_row","summary":"Get an org sso domain","description":"Email domains routed to an SSO connection. A domain belongs to one organization platform-wide and must be verified (DNS TXT record) before it routes sign-ins.\n\nOne row of org sso domains by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Org sso domains"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/organization_feature_interests":{"get":{"operationId":"list_organization_feature_interests","summary":"List organization feature interests","description":"Features a management company said it wants to use (onboarding step 2, or Settings > Your setup), one row per feature. Only personalizes the setup checklist and the sidebar's Specialty group; every feature stays available whatever is chosen. Written only by save_onboarding_step.\n\nPages through the organization feature interests table of the organization, oldest first. Filters: id, feature, created_by.\n\nNeeds one of: settings.write.","tags":["Organization feature interests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"feature","in":"query","required":false,"schema":{"description":"Only rows whose feature equals this.","type":"string","enum":["rent_collection","accounting","maintenance","leasing","portals","messaging","esign","reports","ai","compliance","associations","commercial","affordable","utilities","investments"]},"description":"Only rows whose feature equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/organization_feature_interests/{id}":{"get":{"operationId":"get_organization_feature_interests_row","summary":"Get an organization feature interest","description":"Features a management company said it wants to use (onboarding step 2, or Settings > Your setup), one row per feature. Only personalizes the setup checklist and the sidebar's Specialty group; every feature stays available whatever is chosen. Written only by save_onboarding_step.\n\nOne row of organization feature interests by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Organization feature interests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/organization_onboarding":{"get":{"operationId":"list_organization_onboarding","summary":"List organization onboarding","description":"A management company's onboarding answers, one row per org: who it manages for, how many units, which kinds of property, the software it used before, and how far its first admin got through the four onboarding steps (1 company, 2 features, 3 current software, 4 team). A null answer was skipped. The features it wants are organization_feature_interests. Written only by save_onboarding_step.\n\nPages through the organization onboarding table of the organization, oldest first. Filters: id, management_kind, unit_band, current_software, created_by, updated_by.\n\nNeeds one of: settings.write.","tags":["Organization onboarding"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"management_kind","in":"query","required":false,"schema":{"description":"Only rows whose management_kind equals this.","type":"string","enum":["third_party","own_portfolio","both"]},"description":"Only rows whose management_kind equals this."},{"name":"unit_band","in":"query","required":false,"schema":{"description":"Only rows whose unit_band equals this.","type":"string","enum":["up_to_50","from_51_to_250","from_251_to_1000","over_1000"]},"description":"Only rows whose unit_band equals this."},{"name":"current_software","in":"query","required":false,"schema":{"description":"Only rows whose current_software equals this.","type":"string","enum":["appfolio","yardi","buildium","rent_manager","spreadsheets","other","none"]},"description":"Only rows whose current_software equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/organization_onboarding/{id}":{"get":{"operationId":"get_organization_onboarding_row","summary":"Get an organization onboarding","description":"A management company's onboarding answers, one row per org: who it manages for, how many units, which kinds of property, the software it used before, and how far its first admin got through the four onboarding steps (1 company, 2 features, 3 current software, 4 team). A null answer was skipped. The features it wants are organization_feature_interests. Written only by save_onboarding_step.\n\nOne row of organization onboarding by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Organization onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/outreach_batches":{"get":{"operationId":"list_outreach_batches","summary":"List outreach batches","description":"A list of scripted calls or a text message sequence the system drafted and a person approved (suggest-only). Nothing is called or sent while the batch is a draft. Written only by the outreach RPCs (draft_collections_outreach, draft_vendor_quote_calls, update_outreach_batch, approve_outreach_batch, cancel_outreach_batch).\n\nPages through the outreach batches table of the organization, oldest first. Filters: id, purpose, channel, status, vendor_rfp_id, approved_by, approved_on, created_by.\n\nNeeds one of: maintenance.read, receivables.read.","tags":["Outreach batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["collections","vendor_quote"]},"description":"Only rows whose purpose equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["voice","sms"]},"description":"Only rows whose channel equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","approved","canceled","done"]},"description":"Only rows whose status equals this."},{"name":"vendor_rfp_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_rfp_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_rfp_id equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"approved_on","in":"query","required":false,"schema":{"description":"Only rows whose approved_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose approved_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","receivables.read"]}},"/v1/outreach_batches/{id}":{"get":{"operationId":"get_outreach_batches_row","summary":"Get an outreach batch","description":"A list of scripted calls or a text message sequence the system drafted and a person approved (suggest-only). Nothing is called or sent while the batch is a draft. Written only by the outreach RPCs (draft_collections_outreach, draft_vendor_quote_calls, update_outreach_batch, approve_outreach_batch, cancel_outreach_batch).\n\nOne row of outreach batches by id, with every column the API shows.\n\nNeeds one of: maintenance.read, receivables.read.","tags":["Outreach batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","receivables.read"]}},"/v1/outreach_items":{"get":{"operationId":"list_outreach_items","summary":"List outreach items","description":"One person in an outreach batch: a tenant of a lease (collections) or a vendor invited to an RFP (vendor_quote). Holds the call attempts, the SMS step and the outcome. The outcome of a call is also written to the call log on the tenant's or vendor's record.\n\nPages through the outreach items table of the organization, oldest first. Filters: id, batch_id, status, contact_id, lease_id, property_id, vendor_id, vendor_rfp_invitation_id, call_log_id, sms_next_on, outcome, promise_on, quote_by_on, recorded_by.\n\nNeeds one of: maintenance.read, receivables.read.","tags":["Outreach items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"batch_id","in":"query","required":false,"schema":{"description":"Only rows whose batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose batch_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","skipped","queued","calling","completed","no_answer","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"vendor_rfp_invitation_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_rfp_invitation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_rfp_invitation_id equals this."},{"name":"call_log_id","in":"query","required":false,"schema":{"description":"Only rows whose call_log_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose call_log_id equals this."},{"name":"sms_next_on","in":"query","required":false,"schema":{"description":"Only rows whose sms_next_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sms_next_on equals this."},{"name":"outcome","in":"query","required":false,"schema":{"description":"Only rows whose outcome equals this.","type":"string","enum":["promise_to_pay","already_paid","callback_requested","will_quote","declined","no_response","voicemail","opted_out"]},"description":"Only rows whose outcome equals this."},{"name":"promise_on","in":"query","required":false,"schema":{"description":"Only rows whose promise_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose promise_on equals this."},{"name":"quote_by_on","in":"query","required":false,"schema":{"description":"Only rows whose quote_by_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose quote_by_on equals this."},{"name":"recorded_by","in":"query","required":false,"schema":{"description":"Only rows whose recorded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recorded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","receivables.read"]}},"/v1/outreach_items/{id}":{"get":{"operationId":"get_outreach_items_row","summary":"Get an outreach item","description":"One person in an outreach batch: a tenant of a lease (collections) or a vendor invited to an RFP (vendor_quote). Holds the call attempts, the SMS step and the outcome. The outcome of a call is also written to the call log on the tenant's or vendor's record.\n\nOne row of outreach items by id, with every column the API shows.\n\nNeeds one of: maintenance.read, receivables.read.","tags":["Outreach items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","receivables.read"]}},"/v1/outside_payment_exports":{"get":{"operationId":"list_outside_payment_exports","summary":"List outside payment exports","description":"A payment file of approved bills sent to the outside payment system (AvidXchange). Records which bills went out so the next file leaves them out; moves no money.\n\nPages through the outside payment exports table of the organization, oldest first. Filters: id, created_by.\n\nNeeds one of: payables.read.","tags":["Outside payment exports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/outside_payment_exports/{id}":{"get":{"operationId":"get_outside_payment_exports_row","summary":"Get an outside payment export","description":"A payment file of approved bills sent to the outside payment system (AvidXchange). Records which bills went out so the next file leaves them out; moves no money.\n\nOne row of outside payment exports by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Outside payment exports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/outstanding_item_resolutions":{"get":{"operationId":"list_outstanding_item_resolutions","summary":"List outstanding item resolutions","description":"What staff did with a stale outstanding item (an old uncleared bank line, 00136): kept with a note, written off through an entry, or its check voided (and reissued). Resolved items leave the default stale list. journal_entry_id is the write-off or void entry that offsets the line.\n\nPages through the outstanding item resolutions table of the organization, oldest first. Filters: id, bank_account_id, journal_line_id, resolution, journal_entry_id, check_id, replacement_check_id, resolved_by.\n\nNeeds one of: banking.read.","tags":["Outstanding item resolutions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"journal_line_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_line_id equals this."},{"name":"resolution","in":"query","required":false,"schema":{"description":"Only rows whose resolution equals this.","type":"string","enum":["kept","written_off","voided","reissued"]},"description":"Only rows whose resolution equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"check_id","in":"query","required":false,"schema":{"description":"Only rows whose check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_id equals this."},{"name":"replacement_check_id","in":"query","required":false,"schema":{"description":"Only rows whose replacement_check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose replacement_check_id equals this."},{"name":"resolved_by","in":"query","required":false,"schema":{"description":"Only rows whose resolved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resolved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/outstanding_item_resolutions/{id}":{"get":{"operationId":"get_outstanding_item_resolutions_row","summary":"Get an outstanding item resolution","description":"What staff did with a stale outstanding item (an old uncleared bank line, 00136): kept with a note, written off through an entry, or its check voided (and reissued). Resolved items leave the default stale list. journal_entry_id is the write-off or void entry that offsets the line.\n\nOne row of outstanding item resolutions by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Outstanding item resolutions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/owner_approvals":{"get":{"operationId":"list_owner_approvals","summary":"List owner approvals","description":"Owner sign-off request for exactly one of: a work order, a vendor estimate, a vendor bill (bill_id) or a purchase order (purchase_order_id). One row per owner asked; owners answer in the owner portal (respond_owner_approval). Bills and POs at or above the owner approval threshold cannot be posted / approved until every owner asked has approved.\n\nPages through the owner approvals table of the organization, oldest first. Filters: id, work_order_id, work_order_estimate_id, bill_id, purchase_order_id, owner_id, property_id, request_group_id, status, requested_by, responded_by_user_id, responded_by_contact_id, response_channel.\n\nNeeds one of: maintenance.read.","tags":["Owner approvals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"work_order_estimate_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_estimate_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_estimate_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"purchase_order_id","in":"query","required":false,"schema":{"description":"Only rows whose purchase_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose purchase_order_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"request_group_id","in":"query","required":false,"schema":{"description":"Only rows whose request_group_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose request_group_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","approved","rejected","expired","canceled"]},"description":"Only rows whose status equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"responded_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose responded_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose responded_by_user_id equals this."},{"name":"responded_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose responded_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose responded_by_contact_id equals this."},{"name":"response_channel","in":"query","required":false,"schema":{"description":"Only rows whose response_channel equals this.","type":"string","enum":["portal","phone","email","in_person"]},"description":"Only rows whose response_channel equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/owner_approvals/{id}":{"get":{"operationId":"get_owner_approvals_row","summary":"Get an owner approval","description":"Owner sign-off request for exactly one of: a work order, a vendor estimate, a vendor bill (bill_id) or a purchase order (purchase_order_id). One row per owner asked; owners answer in the owner portal (respond_owner_approval). Bills and POs at or above the owner approval threshold cannot be posted / approved until every owner asked has approved.\n\nOne row of owner approvals by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Owner approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/owner_contributions":{"get":{"operationId":"list_owner_contributions","summary":"List owner contributions","description":"Money an owner puts into a property's trust fund. Posts Dr bank GL (or UNDEPOSITED_FUNDS when bank_account_id is null, until deposited in 00012 deposits) / Cr OWNER_CONTRIBUTIONS (owner_id).\n\nPages through the owner contributions table of the organization, oldest first. Filters: id, owner_id, property_id, received_on, method, bank_account_id, status, payment_transaction_id, journal_entry_id, reversal_journal_entry_id, deposit_id, created_by.\n\nNeeds one of: owners.read.","tags":["Owner contributions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"received_on","in":"query","required":false,"schema":{"description":"Only rows whose received_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose received_on equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["ach","check","wire","cash","card","internal_transfer","other"]},"description":"Only rows whose method equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["posted","reversed"]},"description":"Only rows whose status equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."},{"name":"deposit_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_contributions/{id}":{"get":{"operationId":"get_owner_contributions_row","summary":"Get an owner contribution","description":"Money an owner puts into a property's trust fund. Posts Dr bank GL (or UNDEPOSITED_FUNDS when bank_account_id is null, until deposited in 00012 deposits) / Cr OWNER_CONTRIBUTIONS (owner_id).\n\nOne row of owner contributions by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner contributions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distribution_holds":{"get":{"operationId":"list_owner_distribution_holds","summary":"List owner distribution holds","description":"One owner share a distribution run held back (no owner_distribution_lines row was made for it): the amount stays in trust. owner_distribution_properties.held_cents is the sum per property.\n\nPages through the owner distribution holds table of the organization, oldest first. Filters: id, owner_distribution_id, property_id, owner_id, reason.\n\nNeeds one of: owners.read.","tags":["Owner distribution holds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_distribution_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_distribution_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_distribution_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"reason","in":"query","required":false,"schema":{"description":"Only rows whose reason equals this.","type":"string","enum":["owner_hold","below_minimum"]},"description":"Only rows whose reason equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distribution_holds/{id}":{"get":{"operationId":"get_owner_distribution_holds_row","summary":"Get an owner distribution hold","description":"One owner share a distribution run held back (no owner_distribution_lines row was made for it): the amount stays in trust. owner_distribution_properties.held_cents is the sum per property.\n\nOne row of owner distribution holds by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner distribution holds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distribution_lines":{"get":{"operationId":"list_owner_distribution_lines","summary":"List owner distribution lines","description":"One payment to one owner from one property's fund in a distribution run: amount = property distributable cash x ownership_pct on the as-of date. Posting writes Dr OWNER_DISTRIBUTIONS (owner_id) / Cr bank GL.\n\nPages through the owner distribution lines table of the organization, oldest first. Filters: id, owner_distribution_id, owner_id, property_id, method, bank_account_id, status, payment_transaction_id, check_id, journal_entry_id, void_journal_entry_id.\n\nNeeds one of: owners.read.","tags":["Owner distribution lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_distribution_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_distribution_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_distribution_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["ach","check","manual"]},"description":"Only rows whose method equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","posted","sent_to_bank","paid","failed","voided"]},"description":"Only rows whose status equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"check_id","in":"query","required":false,"schema":{"description":"Only rows whose check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distribution_lines/{id}":{"get":{"operationId":"get_owner_distribution_lines_row","summary":"Get an owner distribution line","description":"One payment to one owner from one property's fund in a distribution run: amount = property distributable cash x ownership_pct on the as-of date. Posting writes Dr OWNER_DISTRIBUTIONS (owner_id) / Cr bank GL.\n\nOne row of owner distribution lines by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner distribution lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distribution_properties":{"get":{"operationId":"list_owner_distribution_properties","summary":"List owner distribution properties","description":"Pages through the owner distribution properties table of the organization, oldest first. Filters: id, owner_distribution_id, property_id.\n\nNeeds one of: owners.read.","tags":["Owner distribution properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_distribution_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_distribution_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_distribution_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_distribution_properties/{id}":{"get":{"operationId":"get_owner_distribution_properties_row","summary":"Get an owner distribution property","description":"One row of owner distribution properties by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner distribution properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_onboardings":{"get":{"operationId":"list_owner_onboardings","summary":"List owner onboardings","description":"A guided owner setup started by one invitation (invite_owner_onboarding): create the login, sign the management agreement, tax details, bank account for distributions, confirm properties and contact details. this row keeps only what has no other home. At most one in progress per owner.\n\nPages through the owner onboardings table of the organization, oldest first. Filters: id, owner_id, status, invitation_id, management_agreement_id, is_agreement_signed_before, esign_envelope_id, canceled_by, invited_by.\n\nNeeds one of: owners.read.","tags":["Owner onboardings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["in_progress","completed","canceled"]},"description":"Only rows whose status equals this."},{"name":"invitation_id","in":"query","required":false,"schema":{"description":"Only rows whose invitation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose invitation_id equals this."},{"name":"management_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose management_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose management_agreement_id equals this."},{"name":"is_agreement_signed_before","in":"query","required":false,"schema":{"description":"Only rows whose is_agreement_signed_before equals this.","type":"boolean"},"description":"Only rows whose is_agreement_signed_before equals this."},{"name":"esign_envelope_id","in":"query","required":false,"schema":{"description":"Only rows whose esign_envelope_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose esign_envelope_id equals this."},{"name":"canceled_by","in":"query","required":false,"schema":{"description":"Only rows whose canceled_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose canceled_by equals this."},{"name":"invited_by","in":"query","required":false,"schema":{"description":"Only rows whose invited_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose invited_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_onboardings/{id}":{"get":{"operationId":"get_owner_onboardings_row","summary":"Get an owner onboarding","description":"A guided owner setup started by one invitation (invite_owner_onboarding): create the login, sign the management agreement, tax details, bank account for distributions, confirm properties and contact details. this row keeps only what has no other home. At most one in progress per owner.\n\nOne row of owner onboardings by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner onboardings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_profile_changes":{"get":{"operationId":"list_owner_profile_changes","summary":"List owner profile changes","description":"Tax details and payout bank accounts an owner sent from the portal. The first W-9 applies at once (status applied). Every bank account, and every later W-9, waits for staff (decide_owner_profile_change, payables.approve and owners.distribute). Written only by the RPCs; kept as history.\n\nPages through the owner profile changes table of the organization, oldest first. Filters: id, owner_id, onboarding_id, kind, status, is_first, submitted_by, decided_by.\n\nNeeds one of: owners.read, payables.read.","tags":["Owner profile changes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"onboarding_id","in":"query","required":false,"schema":{"description":"Only rows whose onboarding_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose onboarding_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["tax","bank"]},"description":"Only rows whose kind equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["applied","pending","approved","rejected","canceled"]},"description":"Only rows whose status equals this."},{"name":"is_first","in":"query","required":false,"schema":{"description":"Only rows whose is_first equals this.","type":"boolean"},"description":"Only rows whose is_first equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/owner_profile_changes/{id}":{"get":{"operationId":"get_owner_profile_changes_row","summary":"Get an owner profile change","description":"Tax details and payout bank accounts an owner sent from the portal. The first W-9 applies at once (status applied). Every bank account, and every later W-9, waits for staff (decide_owner_profile_change, payables.approve and owners.distribute). Written only by the RPCs; kept as history.\n\nOne row of owner profile changes by id, with every column the API shows.\n\nNeeds one of: owners.read, payables.read.","tags":["Owner profile changes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/owner_report_schedules":{"get":{"operationId":"list_owner_report_schedules","summary":"List owner report schedules","description":"Emails one owner report to an owner on a schedule, as CSV and PDF. Written only through set_owner_report_schedule, delete_owner_report_schedule and set_my_owner_report_subscription; the job claims and finishes runs through the private.*owner_report_schedule* functions.\n\nPages through the owner report schedules table of the organization, oldest first. Filters: id, owner_id, property_id, frequency, is_active, unsubscribed_by, created_by, updated_by.\n\nNeeds one of: owners.read.","tags":["Owner report schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["daily","weekly","monthly"]},"description":"Only rows whose frequency equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"unsubscribed_by","in":"query","required":false,"schema":{"description":"Only rows whose unsubscribed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unsubscribed_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_report_schedules/{id}":{"get":{"operationId":"get_owner_report_schedules_row","summary":"Get an owner report schedule","description":"Emails one owner report to an owner on a schedule, as CSV and PDF. Written only through set_owner_report_schedule, delete_owner_report_schedule and set_my_owner_report_subscription; the job claims and finishes runs through the private.*owner_report_schedule* functions.\n\nOne row of owner report schedules by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner report schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_statement_lines":{"get":{"operationId":"list_owner_statement_lines","summary":"List owner statement lines","description":"Snapshot of each ledger transaction line shown on an owner statement (cash basis, income/expense/fee/contribution/distribution accounts). Account number/name and description are copied so the statement never changes after it is final.\n\nPages through the owner statement lines table of the organization, oldest first. Filters: id, owner_statement_id, property_id, journal_line_id, journal_entry_id, section, entry_date, gl_account_id, unit_id.\n\nNeeds one of: owners.read.","tags":["Owner statement lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_statement_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_statement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_statement_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"journal_line_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_line_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"section","in":"query","required":false,"schema":{"description":"Only rows whose section equals this.","type":"string","enum":["income","expense","management_fee","contribution","distribution"]},"description":"Only rows whose section equals this."},{"name":"entry_date","in":"query","required":false,"schema":{"description":"Only rows whose entry_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose entry_date equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_statement_lines/{id}":{"get":{"operationId":"get_owner_statement_lines_row","summary":"Get an owner statement line","description":"Snapshot of each ledger transaction line shown on an owner statement (cash basis, income/expense/fee/contribution/distribution accounts). Account number/name and description are copied so the statement never changes after it is final.\n\nOne row of owner statement lines by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner statement lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_statement_properties":{"get":{"operationId":"list_owner_statement_properties","summary":"List owner statement properties","description":"Per-property section of an owner statement with the owner's ownership_pct at period end. Cash, income, expense, fee, reserve and available figures are at 100% (whole property; header = sum x pct); contribution_cents and distribution_cents are this owner's own amounts, so the header uses them as is, and other_cash_activity_cents balances the row.\n\nPages through the owner statement properties table of the organization, oldest first. Filters: id, owner_statement_id, property_id.\n\nNeeds one of: owners.read.","tags":["Owner statement properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_statement_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_statement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_statement_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_statement_properties/{id}":{"get":{"operationId":"get_owner_statement_properties_row","summary":"Get an owner statement property","description":"Per-property section of an owner statement with the owner's ownership_pct at period end. Cash, income, expense, fee, reserve and available figures are at 100% (whole property; header = sum x pct); contribution_cents and distribution_cents are this owner's own amounts, so the header uses them as is, and other_cash_activity_cents balances the row.\n\nOne row of owner statement properties by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner statement properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_tax_settings":{"get":{"operationId":"list_owner_tax_settings","summary":"List owner tax settings","description":"Per-organization options for the owner tax package. At most one row per org; no row = no capitalization threshold.\n\nPages through the owner tax settings table of the organization, oldest first. Filters: id, updated_by.\n\nNeeds one of: gl.read, owners.read.","tags":["Owner tax settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","owners.read"]},"post":{"operationId":"create_owner_tax_settings_row","summary":"Create an owner tax setting","description":"Per-organization options for the owner tax package. At most one row per org; no row = no capitalization threshold.\n\nInserts one row of owner tax settings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write.","tags":["Owner tax settings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"capitalization_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bills coded to an account on Schedule E line 14 (repairs) whose bill line is at least this amount are listed with the capital items, marked for the accountant to check. Null = list only payments posted to fixed asset accounts."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/owner_tax_settings/{id}":{"get":{"operationId":"get_owner_tax_settings_row","summary":"Get an owner tax setting","description":"Per-organization options for the owner tax package. At most one row per org; no row = no capitalization threshold.\n\nOne row of owner tax settings by id, with every column the API shows.\n\nNeeds one of: gl.read, owners.read.","tags":["Owner tax settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","owners.read"]},"patch":{"operationId":"update_owner_tax_settings_row","summary":"Update an owner tax setting","description":"Per-organization options for the owner tax package. At most one row per org; no row = no capitalization threshold.\n\nChanges the given fields of one row of owner tax settings and returns it. Fields left out stay as they are.\n\nNeeds one of: gl.write.","tags":["Owner tax settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"capitalization_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bills coded to an account on Schedule E line 14 (repairs) whose bill line is at least this amount are listed with the capital items, marked for the accountant to check. Null = list only payments posted to fixed asset accounts."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/owner_tax_summaries":{"get":{"operationId":"list_owner_tax_summaries","summary":"List owner tax summaries","description":"Per owner per tax year 1099-MISC figures: rents collected on the owner's behalf (box 1) at the owner's ownership share. editable while draft.\n\nPages through the owner tax summaries table of the organization, oldest first. Filters: id, owner_id, status, is_1099_required, document_id.\n\nNeeds one of: owners.read.","tags":["Owner tax summaries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","final","filed","corrected"]},"description":"Only rows whose status equals this."},{"name":"is_1099_required","in":"query","required":false,"schema":{"description":"Only rows whose is_1099_required equals this.","type":"boolean"},"description":"Only rows whose is_1099_required equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_tax_summaries/{id}":{"get":{"operationId":"get_owner_tax_summaries_row","summary":"Get an owner tax summary","description":"Per owner per tax year 1099-MISC figures: rents collected on the owner's behalf (box 1) at the owner's ownership share. editable while draft.\n\nOne row of owner tax summaries by id, with every column the API shows.\n\nNeeds one of: owners.read.","tags":["Owner tax summaries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owner_work_orders":{"get":{"operationId":"list_owner_work_orders","summary":"List owner work orders","description":"Owner portal view of work orders on properties the caller's owners owned while the work was open: status, cost, approval and resolution, without entry notes, pet/access details, AI dispatch data or staff notes. Runs as the view owner (security_invoker = false) because owners have no SELECT policy on work_orders;\n\nPages through the owner work orders view of the organization, oldest first. Filters: id, property_id, unit_id, category_id, priority, status, source, vendor_id, billing_responsibility, requires_owner_approval, owner_approval_status.\n\nNeeds one of: org.admin.","tags":["Owner work orders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"priority","in":"query","required":false,"schema":{"description":"Only rows whose priority equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose priority equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["new","assigned","scheduled","in_progress","on_hold","awaiting_parts","awaiting_approval","completed","verified","canceled"]},"description":"Only rows whose status equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["service_request","staff","preventive_maintenance","inspection","unit_turn","owner_request","import"]},"description":"Only rows whose source equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"billing_responsibility","in":"query","required":false,"schema":{"description":"Only rows whose billing_responsibility equals this.","type":"string","enum":["owner","tenant","management","warranty","insurance"]},"description":"Only rows whose billing_responsibility equals this."},{"name":"requires_owner_approval","in":"query","required":false,"schema":{"description":"Only rows whose requires_owner_approval equals this.","type":"boolean"},"description":"Only rows whose requires_owner_approval equals this."},{"name":"owner_approval_status","in":"query","required":false,"schema":{"description":"Only rows whose owner_approval_status equals this.","type":"string","enum":["not_required","pending","approved","rejected","expired"]},"description":"Only rows whose owner_approval_status equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_work_orders/{id}":{"get":{"operationId":"get_owner_work_orders_row","summary":"Get an owner work order","description":"Owner portal view of work orders on properties the caller's owners owned while the work was open: status, cost, approval and resolution, without entry notes, pet/access details, AI dispatch data or staff notes. Runs as the view owner (security_invoker = false) because owners have no SELECT policy on work_orders;\n\nOne row of owner work orders by id, with every column the API shows.\n\nNeeds one of: org.admin.","tags":["Owner work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/packages/{id}":{"get":{"operationId":"get_packages_row","summary":"Get a package","description":"Parcel received at the front desk or package room for a resident: logged by staff, resident notified, released at pickup (optionally against a pickup code).\n\nOne row of packages by id, with every column the API shows.\n\nNeeds one of: residents.read.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/park_homes":{"get":{"operationId":"list_park_homes","summary":"List park homes","description":"A manufactured home in a park: the lot it sits on (a unit), who owns it (park_home_ownership; owner_contact_id for any owner but the park), its identification (serial or VIN, HUD label numbers, title) and size. One home per lot at a time; a removed home keeps its row. Staff read with properties.read and write with properties.write on the property.\n\nPages through the park homes table of the organization, oldest first. Filters: id, property_id, unit_id, ownership, owner_contact_id, status, section, removed_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Park homes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"ownership","in":"query","required":false,"schema":{"description":"Only rows whose ownership equals this.","type":"string","enum":["park","resident","rent_to_own","seller_financed"]},"description":"Only rows whose ownership equals this."},{"name":"owner_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_contact_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["occupied","vacant","for_sale","abandoned","removed"]},"description":"Only rows whose status equals this."},{"name":"section","in":"query","required":false,"schema":{"description":"Only rows whose section equals this.","type":"string","enum":["single","double","triple","park_model","other"]},"description":"Only rows whose section equals this."},{"name":"removed_on","in":"query","required":false,"schema":{"description":"Only rows whose removed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose removed_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_park_homes_row","summary":"Create a park home","description":"A manufactured home in a park: the lot it sits on (a unit), who owns it (park_home_ownership; owner_contact_id for any owner but the park), its identification (serial or VIN, HUD label numbers, title) and size. One home per lot at a time; a removed home keeps its row. Staff read with properties.read and write with properties.write on the property.\n\nInserts one row of park homes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Park homes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lot the home sits on. Null when the home is not on a lot (moved off before removal)."},{"type":"null"}]},"ownership":{"type":"string","enum":["park","resident","rent_to_own","seller_financed"],"description":"Who holds the home. rent_to_own and seller_financed are set by the home purchase contracts, and ownership moves to resident when a contract completes."},"owner_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The resident who owns or is buying the home; null when the park owns it."},{"type":"null"}]},"year_built":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year built"},{"type":"null"}]},"make":{"anyOf":[{"type":"string","maxLength":100000,"description":"make"},{"type":"null"}]},"model":{"anyOf":[{"type":"string","maxLength":100000,"description":"model"},{"type":"null"}]},"serial_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Manufacturer serial number or VIN."},{"type":"null"}]},"hud_label_numbers":{"anyOf":[{"type":"string","maxLength":100000,"description":"HUD certification label numbers, one per section, as printed on the labels."},{"type":"null"}]},"title_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Certificate of title number, with title_state the state that issued it."},{"type":"null"}]},"title_state":{"anyOf":[{"type":"string","maxLength":100000,"description":"title state"},{"type":"null"}]},"section":{"anyOf":[{"type":"string","enum":["single","double","triple","park_model","other"],"description":"Single-wide, double-wide, triple-wide, park model or other."},{"type":"null"}]},"length_ft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"length ft"},{"type":"null"}]},"width_ft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"width ft"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"removed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"removed on"},{"type":"null"}]}},"required":["property_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/park_homes/{id}":{"get":{"operationId":"get_park_homes_row","summary":"Get a park home","description":"A manufactured home in a park: the lot it sits on (a unit), who owns it (park_home_ownership; owner_contact_id for any owner but the park), its identification (serial or VIN, HUD label numbers, title) and size. One home per lot at a time; a removed home keeps its row. Staff read with properties.read and write with properties.write on the property.\n\nOne row of park homes by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Park homes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_park_homes_row","summary":"Update a park home","description":"A manufactured home in a park: the lot it sits on (a unit), who owns it (park_home_ownership; owner_contact_id for any owner but the park), its identification (serial or VIN, HUD label numbers, title) and size. One home per lot at a time; a removed home keeps its row. Staff read with properties.read and write with properties.write on the property.\n\nChanges the given fields of one row of park homes and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Park homes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lot the home sits on. Null when the home is not on a lot (moved off before removal)."},{"type":"null"}]},"ownership":{"type":"string","enum":["park","resident","rent_to_own","seller_financed"],"description":"Who holds the home. rent_to_own and seller_financed are set by the home purchase contracts, and ownership moves to resident when a contract completes."},"owner_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The resident who owns or is buying the home; null when the park owns it."},{"type":"null"}]},"year_built":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year built"},{"type":"null"}]},"make":{"anyOf":[{"type":"string","maxLength":100000,"description":"make"},{"type":"null"}]},"model":{"anyOf":[{"type":"string","maxLength":100000,"description":"model"},{"type":"null"}]},"serial_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Manufacturer serial number or VIN."},{"type":"null"}]},"hud_label_numbers":{"anyOf":[{"type":"string","maxLength":100000,"description":"HUD certification label numbers, one per section, as printed on the labels."},{"type":"null"}]},"title_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Certificate of title number, with title_state the state that issued it."},{"type":"null"}]},"title_state":{"anyOf":[{"type":"string","maxLength":100000,"description":"title state"},{"type":"null"}]},"section":{"anyOf":[{"type":"string","enum":["single","double","triple","park_model","other"],"description":"Single-wide, double-wide, triple-wide, park model or other."},{"type":"null"}]},"length_ft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"length ft"},{"type":"null"}]},"width_ft":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"width ft"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"removed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"removed on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/payables_approval_rules":{"get":{"operationId":"list_payables_approval_rules","summary":"List payables approval rules","description":"When a bill (or purchase order) needs approval and by whom. A rule applies when the document total is >= min_amount_cents and its property (any line's property) and vendor match (null = any). Each distinct step must be approved in order by a matching approver (the user, or anyone holding the role) with payables.approve. No matching rule = auto-approved on submit.\n\nPages through the payables approval rules table of the organization, oldest first. Filters: id, property_id, vendor_id, approver_user_id, approver_role_id, applies_to_purchase_orders, effective_on, ends_on, is_active, created_by.\n\nNeeds one of: payables.read, settings.write.","tags":["Payables approval rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"approver_user_id","in":"query","required":false,"schema":{"description":"Only rows whose approver_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approver_user_id equals this."},{"name":"approver_role_id","in":"query","required":false,"schema":{"description":"Only rows whose approver_role_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approver_role_id equals this."},{"name":"applies_to_purchase_orders","in":"query","required":false,"schema":{"description":"Only rows whose applies_to_purchase_orders equals this.","type":"boolean"},"description":"Only rows whose applies_to_purchase_orders equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","settings.write"]}},"/v1/payables_approval_rules/{id}":{"get":{"operationId":"get_payables_approval_rules_row","summary":"Get a payables approval rule","description":"When a bill (or purchase order) needs approval and by whom. A rule applies when the document total is >= min_amount_cents and its property (any line's property) and vendor match (null = any). Each distinct step must be approved in order by a matching approver (the user, or anyone holding the role) with payables.approve. No matching rule = auto-approved on submit.\n\nOne row of payables approval rules by id, with every column the API shows.\n\nNeeds one of: payables.read, settings.write.","tags":["Payables approval rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","settings.write"]}},"/v1/payee_bank_accounts":{"get":{"operationId":"list_payee_bank_accounts","summary":"List payee bank accounts","description":"Bank account a vendor or owner (by contact) is paid by NACHA file. Stored like bank_accounts: routing number (public) and last four digits for display; Rows never change: new details archive the active row and add a new one, so a file already sent can be rebuilt byte for byte. Written by set_payee_bank_account.\n\nPages through the payee bank accounts table of the organization, oldest first. Filters: id, contact_id, holder_type, account_kind, archived_by, created_by.\n\nNeeds one of: owners.read, payables.read.","tags":["Payee bank accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"holder_type","in":"query","required":false,"schema":{"description":"Only rows whose holder_type equals this.","type":"string","enum":["individual","company"]},"description":"Only rows whose holder_type equals this."},{"name":"account_kind","in":"query","required":false,"schema":{"description":"Only rows whose account_kind equals this.","type":"string","enum":["checking","savings","money_market"]},"description":"Only rows whose account_kind equals this."},{"name":"archived_by","in":"query","required":false,"schema":{"description":"Only rows whose archived_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose archived_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/payee_bank_accounts/{id}":{"get":{"operationId":"get_payee_bank_accounts_row","summary":"Get a payee bank account","description":"Bank account a vendor or owner (by contact) is paid by NACHA file. Stored like bank_accounts: routing number (public) and last four digits for display; Rows never change: new details archive the active row and add a new one, so a file already sent can be rebuilt byte for byte. Written by set_payee_bank_account.\n\nOne row of payee bank accounts by id, with every column the API shows.\n\nNeeds one of: owners.read, payables.read.","tags":["Payee bank accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/payer_customers":{"get":{"operationId":"list_payer_customers","summary":"List payer customers","description":"A contact's customer record at one processor account (Stripe cus_..., Dwolla customer, Finix identity). Saved payment methods hang off it.\n\nPages through the payer customers table of the organization, oldest first. Filters: id, contact_id, processor_account_id.\n\nNeeds one of: receivables.read.","tags":["Payer customers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"processor_account_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payer_customers/{id}":{"get":{"operationId":"get_payer_customers_row","summary":"Get a payer customer","description":"A contact's customer record at one processor account (Stripe cus_..., Dwolla customer, Finix identity). Saved payment methods hang off it.\n\nOne row of payer customers by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payer customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_batch_items":{"get":{"operationId":"list_payment_batch_items","summary":"List payment batch items","description":"One lease's share of a payment keyed into a payment batch: lease, amount, method and its instrument (check details and photos, a draft receipt_instruments row until posted). Several items share an instrument when one check pays several leases. receipt_id is set when the batch posts; an item with receipt_id null is pending.\n\nPages through the payment batch items table of the organization, oldest first. Filters: id, payment_batch_id, lease_id, contact_id, property_id, instrument_id, method, received_on, receipt_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Payment batch items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"payment_batch_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_batch_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"instrument_id","in":"query","required":false,"schema":{"description":"Only rows whose instrument_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose instrument_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"]},"description":"Only rows whose method equals this."},{"name":"received_on","in":"query","required":false,"schema":{"description":"Only rows whose received_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose received_on equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_batch_items/{id}":{"get":{"operationId":"get_payment_batch_items_row","summary":"Get a payment batch item","description":"One lease's share of a payment keyed into a payment batch: lease, amount, method and its instrument (check details and photos, a draft receipt_instruments row until posted). Several items share an instrument when one check pays several leases. receipt_id is set when the batch posts; an item with receipt_id null is pending.\n\nOne row of payment batch items by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment batch items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_batches":{"get":{"operationId":"list_payment_batches","summary":"List payment batches","description":"Batch entry of offline payments (QuickBooks \"Receive payments\" / AppFolio receipt batch): staff key in a stack of checks and money orders, check the count and total against the adding-machine tape, then post them all in one transaction (post_payment_batch), optionally depositing them into deposit_bank_account_id at the same time. Written only by RPCs.\n\nPages through the payment batches table of the organization, oldest first. Filters: id, batch_date, property_id, deposit_bank_account_id, deposit_method, status, deposit_id, posted_by, canceled_by, created_by.\n\nNeeds one of: receivables.read.","tags":["Payment batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"batch_date","in":"query","required":false,"schema":{"description":"Only rows whose batch_date equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose batch_date equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"deposit_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_bank_account_id equals this."},{"name":"deposit_method","in":"query","required":false,"schema":{"description":"Only rows whose deposit_method equals this.","type":"string","enum":["branch","atm","mobile_capture","remote_scanner","night_drop","armored_pickup","other"]},"description":"Only rows whose deposit_method equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["open","posted","canceled"]},"description":"Only rows whose status equals this."},{"name":"deposit_id","in":"query","required":false,"schema":{"description":"Only rows whose deposit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose deposit_id equals this."},{"name":"posted_by","in":"query","required":false,"schema":{"description":"Only rows whose posted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose posted_by equals this."},{"name":"canceled_by","in":"query","required":false,"schema":{"description":"Only rows whose canceled_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose canceled_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_batches/{id}":{"get":{"operationId":"get_payment_batches_row","summary":"Get a payment batch","description":"Batch entry of offline payments (QuickBooks \"Receive payments\" / AppFolio receipt batch): staff key in a stack of checks and money orders, check the count and total against the adding-machine tape, then post them all in one transaction (post_payment_batch), optionally depositing them into deposit_bank_account_id at the same time. Written only by RPCs.\n\nOne row of payment batches by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_fee_policies":{"get":{"operationId":"list_payment_fee_policies","summary":"List payment fee policies","description":"Effective-dated rules for who pays processing costs and the convenience fee charged to payers, per method and optionally per property and purpose. Most specific wins: property over org default, purpose over any purpose. No matching policy means no convenience fee and the manager absorbs processing cost.\n\nPages through the payment fee policies table of the organization, oldest first. Filters: id, property_id, method, purpose, fee_payer, fee_income_recipient, effective_on, ends_on, created_by.\n\nNeeds one of: settings.write.","tags":["Payment fee policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["card","ach","rtp","wire","check","cash","cash_barcode","wallet","money_order"]},"description":"Only rows whose method equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["rent","deposit","application_fee","owner_contribution","vendor_payment","owner_distribution","deposit_refund","tenant_refund","platform_fee","other","resale_fee"]},"description":"Only rows whose purpose equals this."},{"name":"fee_payer","in":"query","required":false,"schema":{"description":"Only rows whose fee_payer equals this.","type":"string","enum":["payer","manager","owner","split"]},"description":"Only rows whose fee_payer equals this."},{"name":"fee_income_recipient","in":"query","required":false,"schema":{"description":"Only rows whose fee_income_recipient equals this.","type":"string","enum":["manager","owner"]},"description":"Only rows whose fee_income_recipient equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"post":{"operationId":"create_payment_fee_policies_row","summary":"Create a payment fee policy","description":"Effective-dated rules for who pays processing costs and the convenience fee charged to payers, per method and optionally per property and purpose. Most specific wins: property over org default, purpose over any purpose. No matching policy means no convenience fee and the manager absorbs processing cost.\n\nInserts one row of payment fee policies in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Payment fee policies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Property the policy applies to; null = org default."},{"type":"null"}]},"method":{"type":"string","enum":["card","ach","rtp","wire","check","cash","cash_barcode","wallet","money_order"],"description":"method"},"purpose":{"anyOf":[{"type":"string","enum":["rent","deposit","application_fee","owner_contribution","vendor_payment","owner_distribution","deposit_refund","tenant_refund","platform_fee","other","resale_fee"],"description":"Purpose the policy applies to; null = every purpose."},{"type":"null"}]},"fee_payer":{"type":"string","enum":["payer","manager","owner","split"],"description":"Who bears the processing cost (see enum fee_payer). Only payer and split produce a convenience fee."},"flat_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat part of the fee per payment, in cents."},"percent_rate":{"type":"number","description":"Percentage part of the fee as a rate of the payment amount: 0.0295 = 2.95%."},"min_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minimum total fee (before the payer share) in cents."},{"type":"null"}]},"max_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on the total fee (before the payer share) in cents."},{"type":"null"}]},"payer_share_pct":{"anyOf":[{"type":"number","description":"For fee_payer = split: percent of the computed fee charged to the payer, 100 = all of it."},{"type":"null"}]},"fee_income_recipient":{"type":"string","enum":["manager","owner"],"description":"Whose income the convenience fee is: manager (company books) or owner (property fund)."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day the policy applies (inclusive)."},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day the policy applies (inclusive); null = open-ended."},{"type":"null"}]}},"required":["method"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/payment_fee_policies/{id}":{"get":{"operationId":"get_payment_fee_policies_row","summary":"Get a payment fee policy","description":"Effective-dated rules for who pays processing costs and the convenience fee charged to payers, per method and optionally per property and purpose. Most specific wins: property over org default, purpose over any purpose. No matching policy means no convenience fee and the manager absorbs processing cost.\n\nOne row of payment fee policies by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Payment fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"patch":{"operationId":"update_payment_fee_policies_row","summary":"Update a payment fee policy","description":"Effective-dated rules for who pays processing costs and the convenience fee charged to payers, per method and optionally per property and purpose. Most specific wins: property over org default, purpose over any purpose. No matching policy means no convenience fee and the manager absorbs processing cost.\n\nChanges the given fields of one row of payment fee policies and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Payment fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Property the policy applies to; null = org default."},{"type":"null"}]},"method":{"type":"string","enum":["card","ach","rtp","wire","check","cash","cash_barcode","wallet","money_order"],"description":"method"},"purpose":{"anyOf":[{"type":"string","enum":["rent","deposit","application_fee","owner_contribution","vendor_payment","owner_distribution","deposit_refund","tenant_refund","platform_fee","other","resale_fee"],"description":"Purpose the policy applies to; null = every purpose."},{"type":"null"}]},"fee_payer":{"type":"string","enum":["payer","manager","owner","split"],"description":"Who bears the processing cost (see enum fee_payer). Only payer and split produce a convenience fee."},"flat_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Flat part of the fee per payment, in cents."},"percent_rate":{"type":"number","description":"Percentage part of the fee as a rate of the payment amount: 0.0295 = 2.95%."},"min_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minimum total fee (before the payer share) in cents."},{"type":"null"}]},"max_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on the total fee (before the payer share) in cents."},{"type":"null"}]},"payer_share_pct":{"anyOf":[{"type":"number","description":"For fee_payer = split: percent of the computed fee charged to the payer, 100 = all of it."},{"type":"null"}]},"fee_income_recipient":{"type":"string","enum":["manager","owner"],"description":"Whose income the convenience fee is: manager (company books) or owner (property fund)."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day the policy applies (inclusive)."},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day the policy applies (inclusive); null = open-ended."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"delete":{"operationId":"delete_payment_fee_policies_row","summary":"Delete a payment fee policy","description":"Effective-dated rules for who pays processing costs and the convenience fee charged to payers, per method and optionally per property and purpose. Most specific wins: property over org default, purpose over any purpose. No matching policy means no convenience fee and the manager absorbs processing cost.\n\nDeletes one row of payment fee policies. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Payment fee policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/payment_methods":{"get":{"operationId":"list_payment_methods","summary":"List payment methods","description":"Tokenized payment instruments saved by a payer at a processor account. Only processor tokens and display metadata are stored: never full card numbers (PAN), CVV, or full bank account numbers. A method can only be charged through the processor account that tokenized it.\n\nPages through the payment methods table of the organization, oldest first. Filters: id, contact_id, processor_account_id, payer_customer_id, instrument_type, card_funding, bank_account_type, bank_account_holder_type, verification_status, status, is_default, created_by.\n\nNeeds one of: receivables.read.","tags":["Payment methods"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"processor_account_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_account_id equals this."},{"name":"payer_customer_id","in":"query","required":false,"schema":{"description":"Only rows whose payer_customer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payer_customer_id equals this."},{"name":"instrument_type","in":"query","required":false,"schema":{"description":"Only rows whose instrument_type equals this.","type":"string","enum":["card","us_bank_account","wallet","cash_barcode"]},"description":"Only rows whose instrument_type equals this."},{"name":"card_funding","in":"query","required":false,"schema":{"description":"Only rows whose card_funding equals this.","type":"string","enum":["credit","debit","prepaid","unknown"]},"description":"Only rows whose card_funding equals this."},{"name":"bank_account_type","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_type equals this.","type":"string","enum":["checking","savings","money_market"]},"description":"Only rows whose bank_account_type equals this."},{"name":"bank_account_holder_type","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_holder_type equals this.","type":"string","enum":["individual","company"]},"description":"Only rows whose bank_account_holder_type equals this."},{"name":"verification_status","in":"query","required":false,"schema":{"description":"Only rows whose verification_status equals this.","type":"string","enum":["not_required","unverified","pending","verified","failed"]},"description":"Only rows whose verification_status equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["active","expired","failed","detached"]},"description":"Only rows whose status equals this."},{"name":"is_default","in":"query","required":false,"schema":{"description":"Only rows whose is_default equals this.","type":"boolean"},"description":"Only rows whose is_default equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_methods/{id}":{"get":{"operationId":"get_payment_methods_row","summary":"Get a payment method","description":"Tokenized payment instruments saved by a payer at a processor account. Only processor tokens and display metadata are stored: never full card numbers (PAN), CVV, or full bank account numbers. A method can only be charged through the processor account that tokenized it.\n\nOne row of payment methods by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment methods"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_plan_installments":{"get":{"operationId":"list_payment_plan_installments","summary":"List payment plan installments","description":"Scheduled installments of a payment plan. How much of each is paid is derived (payments fill installments in due-date order) in view payment_plan_installment_balances;\n\nPages through the payment plan installments table of the organization, oldest first. Filters: id, payment_plan_id, due_on, status, paid_on.\n\nNeeds one of: receivables.read.","tags":["Payment plan installments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"payment_plan_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_plan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_plan_id equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["scheduled","partially_paid","paid","missed","waived"]},"description":"Only rows whose status equals this."},{"name":"paid_on","in":"query","required":false,"schema":{"description":"Only rows whose paid_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paid_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_plan_installments/{id}":{"get":{"operationId":"get_payment_plan_installments_row","summary":"Get a payment plan installment","description":"Scheduled installments of a payment plan. How much of each is paid is derived (payments fill installments in due-date order) in view payment_plan_installment_balances;\n\nOne row of payment plan installments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment plan installments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_plans":{"get":{"operationId":"list_payment_plans","summary":"List payment plans","description":"Agreement letting a tenant pay a past-due balance in installments. Covers specific charges (payment_plan_charges); progress (paid, remaining) is derived from those charges in view payment_plan_balances, and status is refreshed after every receipt and nightly. On a renewal or unit transfer the plan moves to the new lease with the carried charges.\n\nPages through the payment plans table of the organization, oldest first. Filters: id, lease_id, property_id, contact_id, status, agreed_on, suppress_late_fees, completed_on, defaulted_on, canceled_on, created_by.\n\nNeeds one of: receivables.read.","tags":["Payment plans"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","active","completed","defaulted","canceled"]},"description":"Only rows whose status equals this."},{"name":"agreed_on","in":"query","required":false,"schema":{"description":"Only rows whose agreed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose agreed_on equals this."},{"name":"suppress_late_fees","in":"query","required":false,"schema":{"description":"Only rows whose suppress_late_fees equals this.","type":"boolean"},"description":"Only rows whose suppress_late_fees equals this."},{"name":"completed_on","in":"query","required":false,"schema":{"description":"Only rows whose completed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose completed_on equals this."},{"name":"defaulted_on","in":"query","required":false,"schema":{"description":"Only rows whose defaulted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose defaulted_on equals this."},{"name":"canceled_on","in":"query","required":false,"schema":{"description":"Only rows whose canceled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose canceled_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_plans/{id}":{"get":{"operationId":"get_payment_plans_row","summary":"Get a payment plan","description":"Agreement letting a tenant pay a past-due balance in installments. Covers specific charges (payment_plan_charges); progress (paid, remaining) is derived from those charges in view payment_plan_balances, and status is refreshed after every receipt and nightly. On a renewal or unit transfer the plan moves to the new lease with the carried charges.\n\nOne row of payment plans by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment plans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_restriction_exceptions":{"get":{"operationId":"list_payment_restriction_exceptions","summary":"List payment restriction exceptions","description":"Money that met a payment acceptance restriction (restriction_id is null once the restriction was removed; the exception stays for handling): payments already in transit when it started and payments recorded while it was in effect. Nothing here returns, deposits or applies funds: an authorized person records how the money was handled, and the money itself is accounted for as usual.\n\nPages through the payment restriction exceptions table of the organization, oldest first. Filters: id, restriction_id, lease_id, property_id, kind, receipt_id, payment_transaction_id, is_resolved, resolved_by.\n\nNeeds one of: receivables.read.","tags":["Payment restriction exceptions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"restriction_id","in":"query","required":false,"schema":{"description":"Only rows whose restriction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose restriction_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["in_transit","received_while_restricted"]},"description":"Only rows whose kind equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"is_resolved","in":"query","required":false,"schema":{"description":"Only rows whose is_resolved equals this.","type":"boolean"},"description":"Only rows whose is_resolved equals this."},{"name":"resolved_by","in":"query","required":false,"schema":{"description":"Only rows whose resolved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resolved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_restriction_exceptions/{id}":{"get":{"operationId":"get_payment_restriction_exceptions_row","summary":"Get a payment restriction exception","description":"Money that met a payment acceptance restriction (restriction_id is null once the restriction was removed; the exception stays for handling): payments already in transit when it started and payments recorded while it was in effect. Nothing here returns, deposits or applies funds: an authorized person records how the money was handled, and the money itself is accounted for as usual.\n\nOne row of payment restriction exceptions by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment restriction exceptions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_routing_rules":{"get":{"operationId":"list_payment_routing_rules","summary":"List payment routing rules","description":"Which processor account handles a payment, by property (null = org default), method (null = any) and purpose (null = any). if none match it uses the org's default processor account.\n\nPages through the payment routing rules table of the organization, oldest first. Filters: id, property_id, method, purpose, processor_account_id, is_fallback, is_active, created_by.\n\nNeeds one of: integrations.write, receivables.read.","tags":["Payment routing rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["card","ach","rtp","wire","check","cash","cash_barcode","wallet","money_order"]},"description":"Only rows whose method equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["rent","deposit","application_fee","owner_contribution","vendor_payment","owner_distribution","deposit_refund","tenant_refund","platform_fee","other","resale_fee"]},"description":"Only rows whose purpose equals this."},{"name":"processor_account_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_account_id equals this."},{"name":"is_fallback","in":"query","required":false,"schema":{"description":"Only rows whose is_fallback equals this.","type":"boolean"},"description":"Only rows whose is_fallback equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write","receivables.read"]}},"/v1/payment_routing_rules/{id}":{"get":{"operationId":"get_payment_routing_rules_row","summary":"Get a payment routing rule","description":"Which processor account handles a payment, by property (null = org default), method (null = any) and purpose (null = any). if none match it uses the org's default processor account.\n\nOne row of payment routing rules by id, with every column the API shows.\n\nNeeds one of: integrations.write, receivables.read.","tags":["Payment routing rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write","receivables.read"]}},"/v1/payment_transaction_events":{"get":{"operationId":"list_payment_transaction_events","summary":"List payment transaction events","description":"Status history of payment transactions, one row per status change (and the initial status), written by trigger. Never written directly.\n\nPages through the payment transaction events table of the organization, oldest first. Filters: id, payment_transaction_id, from_status, to_status, source, processor_webhook_event_id, actor_user_id.\n\nNeeds one of: receivables.read.","tags":["Payment transaction events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"from_status","in":"query","required":false,"schema":{"description":"Only rows whose from_status equals this.","type":"string","enum":["requires_action","processing","succeeded","failed","canceled","refunded","partially_refunded","returned","disputed"]},"description":"Only rows whose from_status equals this."},{"name":"to_status","in":"query","required":false,"schema":{"description":"Only rows whose to_status equals this.","type":"string","enum":["requires_action","processing","succeeded","failed","canceled","refunded","partially_refunded","returned","disputed"]},"description":"Only rows whose to_status equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["api","webhook","scheduler","staff","payer","system"]},"description":"Only rows whose source equals this."},{"name":"processor_webhook_event_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_webhook_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_webhook_event_id equals this."},{"name":"actor_user_id","in":"query","required":false,"schema":{"description":"Only rows whose actor_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose actor_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_transaction_events/{id}":{"get":{"operationId":"get_payment_transaction_events_row","summary":"Get a payment transaction event","description":"Status history of payment transactions, one row per status change (and the initial status), written by trigger. Never written directly.\n\nOne row of payment transaction events by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment transaction events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_transactions":{"get":{"operationId":"list_payment_transactions","summary":"List payment transactions","description":"One row per attempt to move money through a processor, inbound (tenant/owner/applicant pays) or outbound (vendor payment, owner distribution, refund by ACH/check). Created by RPCs (create_payment_intent, autopay, scheduled payments, payables/owner runs); the Edge Function then calls the processor and reports status back through apply_payment_transaction_update. Amounts never change after insert; Succeeded inbound payments are handed to the ledger (receiv\n\nPages through the payment transactions table of the organization, oldest first. Filters: id, processor_account_id, direction, purpose, method, payment_method_id, payer_customer_id, contact_id, lease_id, property_id, unit_id, owner_id, vendor_id, rental_application_id, autopay_enrollment_id, scheduled_payment_id, fee_absorbed_by, fee_income_recipient, payment_fee_policy_id, status, expected_available_on, initiated_via, initiated_by, journal_entry_id, convenience_fee_journal_entry_id, security_deposit_disposition_id, observed_method, homeowner_account_id.\n\nNeeds one of: receivables.read.","tags":["Payment transactions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"processor_account_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_account_id equals this."},{"name":"direction","in":"query","required":false,"schema":{"description":"Only rows whose direction equals this.","type":"string","enum":["inbound","outbound"]},"description":"Only rows whose direction equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["rent","deposit","application_fee","owner_contribution","vendor_payment","owner_distribution","deposit_refund","tenant_refund","platform_fee","other","resale_fee"]},"description":"Only rows whose purpose equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["card","ach","rtp","wire","check","cash","cash_barcode","wallet","money_order"]},"description":"Only rows whose method equals this."},{"name":"payment_method_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_method_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_method_id equals this."},{"name":"payer_customer_id","in":"query","required":false,"schema":{"description":"Only rows whose payer_customer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payer_customer_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"autopay_enrollment_id","in":"query","required":false,"schema":{"description":"Only rows whose autopay_enrollment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose autopay_enrollment_id equals this."},{"name":"scheduled_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose scheduled_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose scheduled_payment_id equals this."},{"name":"fee_absorbed_by","in":"query","required":false,"schema":{"description":"Only rows whose fee_absorbed_by equals this.","type":"string","enum":["payer","manager","owner","split"]},"description":"Only rows whose fee_absorbed_by equals this."},{"name":"fee_income_recipient","in":"query","required":false,"schema":{"description":"Only rows whose fee_income_recipient equals this.","type":"string","enum":["manager","owner"]},"description":"Only rows whose fee_income_recipient equals this."},{"name":"payment_fee_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_fee_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_fee_policy_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["requires_action","processing","succeeded","failed","canceled","refunded","partially_refunded","returned","disputed"]},"description":"Only rows whose status equals this."},{"name":"expected_available_on","in":"query","required":false,"schema":{"description":"Only rows whose expected_available_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expected_available_on equals this."},{"name":"initiated_via","in":"query","required":false,"schema":{"description":"Only rows whose initiated_via equals this.","type":"string","enum":["tenant_portal","owner_portal","staff","autopay","scheduled","api","system"]},"description":"Only rows whose initiated_via equals this."},{"name":"initiated_by","in":"query","required":false,"schema":{"description":"Only rows whose initiated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose initiated_by equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"convenience_fee_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose convenience_fee_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose convenience_fee_journal_entry_id equals this."},{"name":"security_deposit_disposition_id","in":"query","required":false,"schema":{"description":"Only rows whose security_deposit_disposition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose security_deposit_disposition_id equals this."},{"name":"observed_method","in":"query","required":false,"schema":{"description":"Only rows whose observed_method equals this.","type":"string","enum":["card","ach","rtp","wire","check","cash","cash_barcode","wallet","money_order"]},"description":"Only rows whose observed_method equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/payment_transactions/{id}":{"get":{"operationId":"get_payment_transactions_row","summary":"Get a payment transaction","description":"One row per attempt to move money through a processor, inbound (tenant/owner/applicant pays) or outbound (vendor payment, owner distribution, refund by ACH/check). Created by RPCs (create_payment_intent, autopay, scheduled payments, payables/owner runs); the Edge Function then calls the processor and reports status back through apply_payment_transaction_update. Amounts never change after insert; Succeeded inbound payments are handed to the ledger (receiv\n\nOne row of payment transactions by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Payment transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/percentage_rent_terms":{"get":{"operationId":"list_percentage_rent_terms","summary":"List percentage rent terms","description":"Percentage rent clause of a retail lease: tenant pays rate_pct of net sales above a breakpoint per lease year. Natural breakpoint = annual base rent / (rate_pct/100); artificial = negotiated amount. Optional second tier above second_breakpoint_cents. Billed from tenant_sales_reports by bill_percentage_rent.\n\nPages through the percentage rent terms table of the organization, oldest first. Filters: id, property_id, lease_id, charge_type_id, effective_on, ends_on, breakpoint_type, reporting_frequency, is_breakpoint_prorated, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Percentage rent terms"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"breakpoint_type","in":"query","required":false,"schema":{"description":"Only rows whose breakpoint_type equals this.","type":"string","enum":["natural","artificial"]},"description":"Only rows whose breakpoint_type equals this."},{"name":"reporting_frequency","in":"query","required":false,"schema":{"description":"Only rows whose reporting_frequency equals this.","type":"string","enum":["monthly","quarterly","semiannual","annual"]},"description":"Only rows whose reporting_frequency equals this."},{"name":"is_breakpoint_prorated","in":"query","required":false,"schema":{"description":"Only rows whose is_breakpoint_prorated equals this.","type":"boolean"},"description":"Only rows whose is_breakpoint_prorated equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/percentage_rent_terms/{id}":{"get":{"operationId":"get_percentage_rent_terms_row","summary":"Get a percentage rent term","description":"Percentage rent clause of a retail lease: tenant pays rate_pct of net sales above a breakpoint per lease year. Natural breakpoint = annual base rent / (rate_pct/100); artificial = negotiated amount. Optional second tier above second_breakpoint_cents. Billed from tenant_sales_reports by bill_percentage_rent.\n\nOne row of percentage rent terms by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Percentage rent terms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/pets":{"get":{"operationId":"list_pets","summary":"List pets","description":"Animals belonging to a contact (tenant/applicant). Service and emotional support animals are assistance animals, not pets, under fair housing rules: no pet rent, pet fee or breed/weight restriction may be charged for them.\n\nPages through the pets table of the organization, oldest first. Filters: id, contact_id, pet_type, is_service_animal, is_emotional_support_animal, is_spayed_neutered, vaccinations_expire_on.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Pets"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"pet_type","in":"query","required":false,"schema":{"description":"Only rows whose pet_type equals this.","type":"string","enum":["dog","cat","bird","fish","reptile","rabbit","small_mammal","horse","other"]},"description":"Only rows whose pet_type equals this."},{"name":"is_service_animal","in":"query","required":false,"schema":{"description":"Only rows whose is_service_animal equals this.","type":"boolean"},"description":"Only rows whose is_service_animal equals this."},{"name":"is_emotional_support_animal","in":"query","required":false,"schema":{"description":"Only rows whose is_emotional_support_animal equals this.","type":"boolean"},"description":"Only rows whose is_emotional_support_animal equals this."},{"name":"is_spayed_neutered","in":"query","required":false,"schema":{"description":"Only rows whose is_spayed_neutered equals this.","type":"boolean"},"description":"Only rows whose is_spayed_neutered equals this."},{"name":"vaccinations_expire_on","in":"query","required":false,"schema":{"description":"Only rows whose vaccinations_expire_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose vaccinations_expire_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_pets_row","summary":"Create a pet","description":"Animals belonging to a contact (tenant/applicant). Service and emotional support animals are assistance animals, not pets, under fair housing rules: no pet rent, pet fee or breed/weight restriction may be charged for them.\n\nInserts one row of pets in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Pets"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"name":{"anyOf":[{"type":"string","maxLength":100000,"description":"name"},{"type":"null"}]},"pet_type":{"type":"string","enum":["dog","cat","bird","fish","reptile","rabbit","small_mammal","horse","other"],"description":"pet type"},"breed":{"anyOf":[{"type":"string","maxLength":100000,"description":"breed"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":100000,"description":"color"},{"type":"null"}]},"weight_lbs":{"anyOf":[{"type":"number","description":"weight lbs"},{"type":"null"}]},"age_years":{"anyOf":[{"type":"number","description":"age years"},{"type":"null"}]},"is_service_animal":{"type":"boolean","description":"ADA service animal. Exempt from pet fees and restrictions."},"is_emotional_support_animal":{"type":"boolean","description":"Assistance animal under FHA (ESA) with documentation on file. Exempt from pet fees and restrictions."},"is_spayed_neutered":{"anyOf":[{"type":"boolean","description":"is spayed neutered"},{"type":"null"}]},"license_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"license number"},{"type":"null"}]},"vaccinations_expire_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Earliest expiry among required vaccinations (rabies); drives compliance reminders."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["contact_id","pet_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/pets/{id}":{"get":{"operationId":"get_pets_row","summary":"Get a pet","description":"Animals belonging to a contact (tenant/applicant). Service and emotional support animals are assistance animals, not pets, under fair housing rules: no pet rent, pet fee or breed/weight restriction may be charged for them.\n\nOne row of pets by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Pets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_pets_row","summary":"Update a pet","description":"Animals belonging to a contact (tenant/applicant). Service and emotional support animals are assistance animals, not pets, under fair housing rules: no pet rent, pet fee or breed/weight restriction may be charged for them.\n\nChanges the given fields of one row of pets and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Pets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"name":{"anyOf":[{"type":"string","maxLength":100000,"description":"name"},{"type":"null"}]},"pet_type":{"type":"string","enum":["dog","cat","bird","fish","reptile","rabbit","small_mammal","horse","other"],"description":"pet type"},"breed":{"anyOf":[{"type":"string","maxLength":100000,"description":"breed"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":100000,"description":"color"},{"type":"null"}]},"weight_lbs":{"anyOf":[{"type":"number","description":"weight lbs"},{"type":"null"}]},"age_years":{"anyOf":[{"type":"number","description":"age years"},{"type":"null"}]},"is_service_animal":{"type":"boolean","description":"ADA service animal. Exempt from pet fees and restrictions."},"is_emotional_support_animal":{"type":"boolean","description":"Assistance animal under FHA (ESA) with documentation on file. Exempt from pet fees and restrictions."},"is_spayed_neutered":{"anyOf":[{"type":"boolean","description":"is spayed neutered"},{"type":"null"}]},"license_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"license number"},{"type":"null"}]},"vaccinations_expire_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Earliest expiry among required vaccinations (rabies); drives compliance reminders."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/portfolio_group_members":{"get":{"operationId":"list_portfolio_group_members","summary":"List portfolio group members","description":"One member of a portfolio group: a whole property (building_id null) or one building of that property. A group's scope is the union of its members.\n\nPages through the portfolio group members table of the organization, oldest first. Filters: id, group_id, property_id, building_id, created_by.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio group members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"group_id","in":"query","required":false,"schema":{"description":"Only rows whose group_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose group_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]},"post":{"operationId":"create_portfolio_group_members_row","summary":"Create a portfolio group member","description":"One member of a portfolio group: a whole property (building_id null) or one building of that property. A group's scope is the union of its members.\n\nInserts one row of portfolio group members in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio group members"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"group_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"group id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Null = the whole property; otherwise only this building (which must belong to property_id)."},{"type":"null"}]}},"required":["group_id","property_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]}},"/v1/portfolio_group_members/{id}":{"get":{"operationId":"get_portfolio_group_members_row","summary":"Get a portfolio group member","description":"One member of a portfolio group: a whole property (building_id null) or one building of that property. A group's scope is the union of its members.\n\nOne row of portfolio group members by id, with every column the API shows.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio group members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]},"delete":{"operationId":"delete_portfolio_group_members_row","summary":"Delete a portfolio group member","description":"One member of a portfolio group: a whole property (building_id null) or one building of that property. A group's scope is the union of its members.\n\nDeletes one row of portfolio group members. The database refuses it where other records still need the row.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio group members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]}},"/v1/portfolio_groups":{"get":{"operationId":"list_portfolio_groups","summary":"List portfolio groups","description":"A staff-defined set of properties and buildings (by area, by manager or superintendent, anything) used as the top-bar portfolio scope: choosing the group scopes every staff page to its members. Members are in portfolio_group_members. Archived groups are hidden from the picker.\n\nPages through the portfolio groups table of the organization, oldest first. Filters: id, created_by.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio groups"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]},"post":{"operationId":"create_portfolio_groups_row","summary":"Create a portfolio group","description":"A staff-defined set of properties and buildings (by area, by manager or superintendent, anything) used as the top-bar portfolio scope: choosing the group scopes every staff page to its members. Members are in portfolio_group_members. Archived groups are hidden from the picker.\n\nInserts one row of portfolio groups in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio groups"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":100000,"description":"Optional design-token color name for the group chip (e.g. primary, positive, warning); never a hex value."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Set when the group is archived; archived groups are not offered in the scope picker."},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]}},"/v1/portfolio_groups/{id}":{"get":{"operationId":"get_portfolio_groups_row","summary":"Get a portfolio group","description":"A staff-defined set of properties and buildings (by area, by manager or superintendent, anything) used as the top-bar portfolio scope: choosing the group scopes every staff page to its members. Members are in portfolio_group_members. Archived groups are hidden from the picker.\n\nOne row of portfolio groups by id, with every column the API shows.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio groups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]},"patch":{"operationId":"update_portfolio_groups_row","summary":"Update a portfolio group","description":"A staff-defined set of properties and buildings (by area, by manager or superintendent, anything) used as the top-bar portfolio scope: choosing the group scopes every staff page to its members. Members are in portfolio_group_members. Archived groups are hidden from the picker.\n\nChanges the given fields of one row of portfolio groups and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio groups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":100000,"description":"Optional design-token color name for the group chip (e.g. primary, positive, warning); never a hex value."},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Set when the group is archived; archived groups are not offered in the scope picker."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]},"delete":{"operationId":"delete_portfolio_groups_row","summary":"Delete a portfolio group","description":"A staff-defined set of properties and buildings (by area, by manager or superintendent, anything) used as the top-bar portfolio scope: choosing the group scopes every staff page to its members. Members are in portfolio_group_members. Archived groups are hidden from the picker.\n\nDeletes one row of portfolio groups. The database refuses it where other records still need the row.\n\nNeeds one of: properties.write, settings.write.","tags":["Portfolio groups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write","settings.write"]}},"/v1/portfolios":{"get":{"operationId":"list_portfolios","summary":"List portfolios","description":"Named group of properties used for filtering, reporting and access (membership in portfolio_properties, 00004).\n\nPages through the portfolios table of the organization, oldest first. Filters: id.\n\nNeeds one of: properties.write.","tags":["Portfolios"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/portfolios/{id}":{"get":{"operationId":"get_portfolios_row","summary":"Get a portfolio","description":"Named group of properties used for filtering, reporting and access (membership in portfolio_properties, 00004).\n\nOne row of portfolios by id, with every column the API shows.\n\nNeeds one of: properties.write.","tags":["Portfolios"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/positive_pay_export_batches":{"get":{"operationId":"list_positive_pay_export_batches","summary":"List positive pay export batches","description":"One positive-pay issue file for a bank account: every check issued (and every previously reported check voided) up to issued_through_on that was not in an earlier file. Totals are the file's control totals.\n\nPages through the positive pay export batches table of the organization, oldest first. Filters: id, bank_account_id, status, format, issued_through_on, generated_by.\n\nNeeds one of: banking.read.","tags":["Positive pay export batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["generated","transmitted","acknowledged","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"format","in":"query","required":false,"schema":{"description":"Only rows whose format equals this.","type":"string","enum":["csv","bai2","fixed_width","bank_api"]},"description":"Only rows whose format equals this."},{"name":"issued_through_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_through_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_through_on equals this."},{"name":"generated_by","in":"query","required":false,"schema":{"description":"Only rows whose generated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose generated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/positive_pay_export_batches/{id}":{"get":{"operationId":"get_positive_pay_export_batches_row","summary":"Get a positive pay export batch","description":"One positive-pay issue file for a bank account: every check issued (and every previously reported check voided) up to issued_through_on that was not in an earlier file. Totals are the file's control totals.\n\nOne row of positive pay export batches by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Positive pay export batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/positive_pay_export_items":{"get":{"operationId":"list_positive_pay_export_items","summary":"List positive pay export items","description":"A check record in a positive-pay file (issue or void), copied from the check at export. Each check is reported once per action while its batch is not canceled.\n\nPages through the positive pay export items table of the organization, oldest first. Filters: id, positive_pay_export_batch_id, check_id, action, issued_on, is_active.\n\nNeeds one of: banking.read.","tags":["Positive pay export items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"positive_pay_export_batch_id","in":"query","required":false,"schema":{"description":"Only rows whose positive_pay_export_batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose positive_pay_export_batch_id equals this."},{"name":"check_id","in":"query","required":false,"schema":{"description":"Only rows whose check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_id equals this."},{"name":"action","in":"query","required":false,"schema":{"description":"Only rows whose action equals this.","type":"string","enum":["issue","void"]},"description":"Only rows whose action equals this."},{"name":"issued_on","in":"query","required":false,"schema":{"description":"Only rows whose issued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose issued_on equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/positive_pay_export_items/{id}":{"get":{"operationId":"get_positive_pay_export_items_row","summary":"Get a positive pay export item","description":"A check record in a positive-pay file (issue or void), copied from the check at export. Each check is reported once per action while its batch is not canceled.\n\nOne row of positive pay export items by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Positive pay export items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/positive_pay_settings":{"get":{"operationId":"list_positive_pay_settings","summary":"List positive pay settings","description":"Positive-pay setup of a bank account: file format, how files reach the bank, and the bank's customer id. The bank pays only checks listed in an issue file.\n\nPages through the positive pay settings table of the organization, oldest first. Filters: id, bank_account_id, is_enabled, format, transmission, includes_payee_name, created_by, csv_include_header.\n\nNeeds one of: banking.read, banking.write.","tags":["Positive pay settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"format","in":"query","required":false,"schema":{"description":"Only rows whose format equals this.","type":"string","enum":["csv","bai2","fixed_width","bank_api"]},"description":"Only rows whose format equals this."},{"name":"transmission","in":"query","required":false,"schema":{"description":"Only rows whose transmission equals this.","type":"string","enum":["download","sftp","api"]},"description":"Only rows whose transmission equals this."},{"name":"includes_payee_name","in":"query","required":false,"schema":{"description":"Only rows whose includes_payee_name equals this.","type":"boolean"},"description":"Only rows whose includes_payee_name equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"csv_include_header","in":"query","required":false,"schema":{"description":"Only rows whose csv_include_header equals this.","type":"boolean"},"description":"Only rows whose csv_include_header equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write"]}},"/v1/positive_pay_settings/{id}":{"get":{"operationId":"get_positive_pay_settings_row","summary":"Get a positive pay setting","description":"Positive-pay setup of a bank account: file format, how files reach the bank, and the bank's customer id. The bank pays only checks listed in an issue file.\n\nOne row of positive pay settings by id, with every column the API shows.\n\nNeeds one of: banking.read, banking.write.","tags":["Positive pay settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","banking.write"]}},"/v1/prepaid_schedule_months":{"get":{"operationId":"list_prepaid_schedule_months","summary":"List prepaid schedule months","description":"One month of a prepaid spread (A18). The months of a schedule sum exactly to its total. A posted month is reversed (never changed) when its bill is voided or corrected.\n\nPages through the prepaid schedule months table of the organization, oldest first. Filters: id, prepaid_schedule_id, period_on, journal_entry_id, reversal_entry_id.\n\nNeeds one of: gl.read.","tags":["Prepaid schedule months"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"prepaid_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose prepaid_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose prepaid_schedule_id equals this."},{"name":"period_on","in":"query","required":false,"schema":{"description":"Only rows whose period_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/prepaid_schedule_months/{id}":{"get":{"operationId":"get_prepaid_schedule_months_row","summary":"Get a prepaid schedule month","description":"One month of a prepaid spread (A18). The months of a schedule sum exactly to its total. A posted month is reversed (never changed) when its bill is voided or corrected.\n\nOne row of prepaid schedule months by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Prepaid schedule months"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/prepaid_schedules":{"get":{"operationId":"list_prepaid_schedules","summary":"List prepaid schedules","description":"A prepaid bill line spread over its service period (A18): each month moves an equal share from the prepaid asset to an expense account (prepaid_schedule_months). Created by create_prepaid_schedule; Clients only read.\n\nPages through the prepaid schedules table of the organization, oldest first. Filters: id, bill_id, bill_line_id, property_id, prepaid_gl_account_id, expense_gl_account_id, starts_on, stopped_by, created_by.\n\nNeeds one of: gl.read, payables.read.","tags":["Prepaid schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"bill_line_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_line_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"prepaid_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose prepaid_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose prepaid_gl_account_id equals this."},{"name":"expense_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose expense_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose expense_gl_account_id equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"stopped_by","in":"query","required":false,"schema":{"description":"Only rows whose stopped_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose stopped_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","payables.read"]}},"/v1/prepaid_schedules/{id}":{"get":{"operationId":"get_prepaid_schedules_row","summary":"Get a prepaid schedule","description":"A prepaid bill line spread over its service period (A18): each month moves an equal share from the prepaid asset to an expense account (prepaid_schedule_months). Created by create_prepaid_schedule; Clients only read.\n\nOne row of prepaid schedules by id, with every column the API shows.\n\nNeeds one of: gl.read, payables.read.","tags":["Prepaid schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","payables.read"]}},"/v1/preventive_maintenance_schedules/{id}":{"get":{"operationId":"get_preventive_maintenance_schedules_row","summary":"Get a preventive maintenance schedule","description":"Recurring maintenance (HVAC service, filter changes, gutter cleaning, fire extinguisher checks).\n\nOne row of preventive maintenance schedules by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Preventive maintenance schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]},"patch":{"operationId":"update_preventive_maintenance_schedules_row","summary":"Update a preventive maintenance schedule","description":"Recurring maintenance (HVAC service, filter changes, gutter cleaning, fire extinguisher checks).\n\nChanges the given fields of one row of preventive maintenance schedules and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.dispatch.","tags":["Preventive maintenance schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"template_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description copied onto each generated work order (checklist / scope)."},{"type":"null"}]},"priority":{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},"frequency":{"type":"string","enum":["daily","weekly","monthly","yearly"],"description":"Recurrence unit (RRULE FREQ): daily, weekly, monthly, yearly. Quarterly = monthly with interval_count 3."},"interval_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Recurrence interval (RRULE INTERVAL): every N frequency units."},"by_month_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"For monthly/yearly: day of month the occurrence falls on (RRULE BYMONTHDAY), clamped to the last day of short months. Null = keep the day of next_due_on."},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"next_due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Due date of the next occurrence not yet generated."},"lead_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Generate the work order this many days before the due date."},"applies_to_each_unit":{"type":"boolean","description":"If true, each occurrence creates one work order per unit of the property (e.g. smoke detector tests); unit_id must be null."},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"not_to_exceed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"not to exceed cents"},{"type":"null"}]},"estimated_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated cost cents"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"last_generated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"last generated on"},{"type":"null"}]},"last_generated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"last generated at"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/pricing_approval_limits":{"get":{"operationId":"list_pricing_approval_limits","summary":"List pricing approval limits","description":"How far below a listing's current asking rent a role may cut it in one change (max_reduction_pct, 100 = any amount), optionally at one property. A person's limit is the highest matching row of their role. With no rows in the organization, marketing.write sets any rent. Raising rent is never limited.\n\nPages through the pricing approval limits table of the organization, oldest first. Filters: id, role_id, property_id, created_by.\n\nNeeds one of: leasing.read, marketing.read, settings.write.","tags":["Pricing approval limits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"role_id","in":"query","required":false,"schema":{"description":"Only rows whose role_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose role_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","marketing.read","settings.write"]},"post":{"operationId":"create_pricing_approval_limits_row","summary":"Create a pricing approval limit","description":"How far below a listing's current asking rent a role may cut it in one change (max_reduction_pct, 100 = any amount), optionally at one property. A person's limit is the highest matching row of their role. With no rows in the organization, marketing.write sets any rent. Raising rent is never limited.\n\nInserts one row of pricing approval limits in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Pricing approval limits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"role id"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"max_reduction_pct":{"type":"number","description":"max reduction pct"}},"required":["role_id","max_reduction_pct"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/pricing_approval_limits/{id}":{"get":{"operationId":"get_pricing_approval_limits_row","summary":"Get a pricing approval limit","description":"How far below a listing's current asking rent a role may cut it in one change (max_reduction_pct, 100 = any amount), optionally at one property. A person's limit is the highest matching row of their role. With no rows in the organization, marketing.write sets any rent. Raising rent is never limited.\n\nOne row of pricing approval limits by id, with every column the API shows.\n\nNeeds one of: leasing.read, marketing.read, settings.write.","tags":["Pricing approval limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","marketing.read","settings.write"]},"delete":{"operationId":"delete_pricing_approval_limits_row","summary":"Delete a pricing approval limit","description":"How far below a listing's current asking rent a role may cut it in one change (max_reduction_pct, 100 = any amount), optionally at one property. A person's limit is the highest matching row of their role. With no rows in the organization, marketing.write sets any rent. Raising rent is never limited.\n\nDeletes one row of pricing approval limits. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Pricing approval limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/pricing_recommendations":{"get":{"operationId":"list_pricing_recommendations","summary":"List pricing recommendations","description":"AI/model rent recommendations for a unit (new listing price or renewal pricing input), with the staff decision. Accepting one sets the listing's asking rent to applied_rent_cents.\n\nPages through the pricing recommendations table of the organization, oldest first. Filters: id, property_id, unit_id, listing_id, status, valid_until, decided_by.\n\nNeeds one of: marketing.write.","tags":["Pricing recommendations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"listing_id","in":"query","required":false,"schema":{"description":"Only rows whose listing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose listing_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","accepted","declined","superseded","expired"]},"description":"Only rows whose status equals this."},{"name":"valid_until","in":"query","required":false,"schema":{"description":"Only rows whose valid_until equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose valid_until equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/pricing_recommendations/{id}":{"get":{"operationId":"get_pricing_recommendations_row","summary":"Get a pricing recommendation","description":"AI/model rent recommendations for a unit (new listing price or renewal pricing input), with the staff decision. Accepting one sets the listing's asking rent to applied_rent_cents.\n\nOne row of pricing recommendations by id, with every column the API shows.\n\nNeeds one of: marketing.write.","tags":["Pricing recommendations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/prior_period_adjustments":{"get":{"operationId":"list_prior_period_adjustments","summary":"List prior period adjustments","description":"A correction of a closed month posted into an open month (entry type prior_period_adjustment): the closed month it corrects, the entry it corrects when there is one, and why. Written only by post_prior_period_adjustment; insert-only like the journal.\n\nPages through the prior period adjustments table of the organization, oldest first. Filters: id, journal_entry_id, adjusted_period_id, adjusted_entry_id, created_by.\n\nNeeds one of: gl.read.","tags":["Prior period adjustments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"adjusted_period_id","in":"query","required":false,"schema":{"description":"Only rows whose adjusted_period_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose adjusted_period_id equals this."},{"name":"adjusted_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose adjusted_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose adjusted_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/prior_period_adjustments/{id}":{"get":{"operationId":"get_prior_period_adjustments_row","summary":"Get a prior period adjustment","description":"A correction of a closed month posted into an open month (entry type prior_period_adjustment): the closed month it corrects, the entry it corrects when there is one, and why. Written only by post_prior_period_adjustment; insert-only like the journal.\n\nOne row of prior period adjustments by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Prior period adjustments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/processor_accounts":{"get":{"operationId":"list_processor_accounts","summary":"List processor accounts","description":"An organization's merchant / connected account at a payment processor. An org can have several (per processor, per environment, or one per property/bank account); payment_routing_rules choose which one handles a payment. Secrets (API keys, webhook signing secrets) are never stored here: only the name of the Supabase Vault secret that holds them.\n\nPages through the processor accounts table of the organization, oldest first. Filters: id, environment, status, charges_enabled, payouts_enabled, settlement_bank_account_id, is_default, created_by.\n\nNeeds one of: integrations.write.","tags":["Processor accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"environment","in":"query","required":false,"schema":{"description":"Only rows whose environment equals this.","type":"string","enum":["test","live"]},"description":"Only rows whose environment equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","onboarding","action_required","under_review","active","restricted","disabled","rejected"]},"description":"Only rows whose status equals this."},{"name":"charges_enabled","in":"query","required":false,"schema":{"description":"Only rows whose charges_enabled equals this.","type":"boolean"},"description":"Only rows whose charges_enabled equals this."},{"name":"payouts_enabled","in":"query","required":false,"schema":{"description":"Only rows whose payouts_enabled equals this.","type":"boolean"},"description":"Only rows whose payouts_enabled equals this."},{"name":"settlement_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose settlement_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose settlement_bank_account_id equals this."},{"name":"is_default","in":"query","required":false,"schema":{"description":"Only rows whose is_default equals this.","type":"boolean"},"description":"Only rows whose is_default equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/processor_accounts/{id}":{"get":{"operationId":"get_processor_accounts_row","summary":"Get a processor account","description":"An organization's merchant / connected account at a payment processor. An org can have several (per processor, per environment, or one per property/bank account); payment_routing_rules choose which one handles a payment. Secrets (API keys, webhook signing secrets) are never stored here: only the name of the Supabase Vault secret that holds them.\n\nOne row of processor accounts by id, with every column the API shows.\n\nNeeds one of: integrations.write.","tags":["Processor accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write"]}},"/v1/processor_payout_items":{"get":{"operationId":"list_processor_payout_items","summary":"List processor payout items","description":"Balance transactions included in a payout: payments, refunds, returns, dispute withdrawals and reversals, fees and adjustments. Used to relieve PROCESSOR_CLEARING per property fund and to explain bank deposits.\n\nPages through the processor payout items table of the organization, oldest first. Filters: id, processor_payout_id, item_type, payment_transaction_id, refund_id, dispute_id, property_id.\n\nNeeds one of: banking.read, receivables.read.","tags":["Processor payout items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"processor_payout_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_payout_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_payout_id equals this."},{"name":"item_type","in":"query","required":false,"schema":{"description":"Only rows whose item_type equals this.","type":"string","enum":["payment","refund","return","dispute","dispute_reversal","dispute_fee","fee","adjustment","reserve"]},"description":"Only rows whose item_type equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"refund_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_id equals this."},{"name":"dispute_id","in":"query","required":false,"schema":{"description":"Only rows whose dispute_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose dispute_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","receivables.read"]}},"/v1/processor_payout_items/{id}":{"get":{"operationId":"get_processor_payout_items_row","summary":"Get a processor payout item","description":"Balance transactions included in a payout: payments, refunds, returns, dispute withdrawals and reversals, fees and adjustments. Used to relieve PROCESSOR_CLEARING per property fund and to explain bank deposits.\n\nOne row of processor payout items by id, with every column the API shows.\n\nNeeds one of: banking.read, receivables.read.","tags":["Processor payout items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","receivables.read"]}},"/v1/processor_payouts":{"get":{"operationId":"list_processor_payouts","summary":"List processor payouts","description":"A settlement from a processor account to a bank account, itemized in processor_payout_items. Matched to bank feed lines in bank reconciliation.\n\nPages through the processor payouts table of the organization, oldest first. Filters: id, processor_account_id, bank_account_id, status, arrival_on, journal_entry_id, reversal_journal_entry_id.\n\nNeeds one of: banking.read, receivables.read.","tags":["Processor payouts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"processor_account_id","in":"query","required":false,"schema":{"description":"Only rows whose processor_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose processor_account_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","in_transit","paid","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"arrival_on","in":"query","required":false,"schema":{"description":"Only rows whose arrival_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose arrival_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","receivables.read"]}},"/v1/processor_payouts/{id}":{"get":{"operationId":"get_processor_payouts_row","summary":"Get a processor payout","description":"A settlement from a processor account to a bank account, itemized in processor_payout_items. Matched to bank feed lines in bank reconciliation.\n\nOne row of processor payouts by id, with every column the API shows.\n\nNeeds one of: banking.read, receivables.read.","tags":["Processor payouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","receivables.read"]}},"/v1/program_submissions":{"get":{"operationId":"list_program_submissions","summary":"List program submissions","description":"Compliance submissions to agencies: TRACS MAT10 certification batches, MAT30 monthly HAP vouchers, 50059 packages, state HFA annual reports, LIHTC owner certifications. Generated file in document_id.\n\nPages through the program submissions table of the organization, oldest first. Filters: id, housing_program_id, submission_type, period_starts_on, period_ends_on, status, document_id, hap_contract_id, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Program submissions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"submission_type","in":"query","required":false,"schema":{"description":"Only rows whose submission_type equals this.","type":"string","enum":["tracs_mat10_certification","tracs_mat30_voucher","hud_50059","state_agency_report","annual_owner_certification","lihtc_8609_8823","other"]},"description":"Only rows whose submission_type equals this."},{"name":"period_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose period_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_starts_on equals this."},{"name":"period_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose period_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_ends_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","transmitted","accepted","rejected","corrected"]},"description":"Only rows whose status equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/program_submissions/{id}":{"get":{"operationId":"get_program_submissions_row","summary":"Get a program submission","description":"Compliance submissions to agencies: TRACS MAT10 certification batches, MAT30 monthly HAP vouchers, 50059 packages, state HFA annual reports, LIHTC owner certifications. Generated file in document_id.\n\nOne row of program submissions by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Program submissions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/program_unit_designations":{"get":{"operationId":"list_program_unit_designations","summary":"List program unit designations","description":"Which units a program restricts and at what level (e.g. unit 101 is a 50% AMI LIHTC unit), effective dated. rent_limit_cents / utility_allowance_cents override the published rent_limits and utility_allowances when set.\n\nPages through the program unit designations table of the organization, oldest first. Filters: id, housing_program_id, unit_id, designation_type, is_floating, is_accessible, effective_on, ends_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Program unit designations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"designation_type","in":"query","required":false,"schema":{"description":"Only rows whose designation_type equals this.","type":"string","enum":["set_aside","market","manager","employee","model","non_revenue"]},"description":"Only rows whose designation_type equals this."},{"name":"is_floating","in":"query","required":false,"schema":{"description":"Only rows whose is_floating equals this.","type":"boolean"},"description":"Only rows whose is_floating equals this."},{"name":"is_accessible","in":"query","required":false,"schema":{"description":"Only rows whose is_accessible equals this.","type":"boolean"},"description":"Only rows whose is_accessible equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_program_unit_designations_row","summary":"Create a program unit designation","description":"Which units a program restricts and at what level (e.g. unit 101 is a 50% AMI LIHTC unit), effective dated. rent_limit_cents / utility_allowance_cents override the published rent_limits and utility_allowances when set.\n\nInserts one row of program unit designations in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Program unit designations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"designation_type":{"type":"string","enum":["set_aside","market","manager","employee","model","non_revenue"],"description":"designation type"},"ami_pct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Income and rent restriction level (30, 50, 60, 80 ...)."},{"type":"null"}]},"rent_limit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly gross rent limit override; null = look up rent_limits by area, ami_pct and the unit's bedrooms."},{"type":"null"}]},"utility_allowance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly utility allowance override; null = look up utility_allowances."},{"type":"null"}]},"is_floating":{"type":"boolean","description":"Floating set-aside: the restriction may move to a comparable unit (vacant unit rule / next available unit)."},"is_accessible":{"type":"boolean","description":"is accessible"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":["housing_program_id","unit_id","effective_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/program_unit_designations/{id}":{"get":{"operationId":"get_program_unit_designations_row","summary":"Get a program unit designation","description":"Which units a program restricts and at what level (e.g. unit 101 is a 50% AMI LIHTC unit), effective dated. rent_limit_cents / utility_allowance_cents override the published rent_limits and utility_allowances when set.\n\nOne row of program unit designations by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Program unit designations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_program_unit_designations_row","summary":"Update a program unit designation","description":"Which units a program restricts and at what level (e.g. unit 101 is a 50% AMI LIHTC unit), effective dated. rent_limit_cents / utility_allowance_cents override the published rent_limits and utility_allowances when set.\n\nChanges the given fields of one row of program unit designations and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Program unit designations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"designation_type":{"type":"string","enum":["set_aside","market","manager","employee","model","non_revenue"],"description":"designation type"},"ami_pct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Income and rent restriction level (30, 50, 60, 80 ...)."},{"type":"null"}]},"rent_limit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly gross rent limit override; null = look up rent_limits by area, ami_pct and the unit's bedrooms."},{"type":"null"}]},"utility_allowance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly utility allowance override; null = look up utility_allowances."},{"type":"null"}]},"is_floating":{"type":"boolean","description":"Floating set-aside: the restriction may move to a comparable unit (vacant unit rule / next available unit)."},"is_accessible":{"type":"boolean","description":"is accessible"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_program_unit_designations_row","summary":"Delete a program unit designation","description":"Which units a program restricts and at what level (e.g. unit 101 is a 50% AMI LIHTC unit), effective dated. rent_limit_cents / utility_allowance_cents override the published rent_limits and utility_allowances when set.\n\nDeletes one row of program unit designations. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["Program unit designations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/property_assignments":{"get":{"operationId":"list_property_assignments","summary":"List property assignments","description":"Which staff members work on which property, in what role, over time. This is where the owner -> property manager -> unit hierarchy gets its manager: the primary property manager of a property is the row with role = property_manager and is_primary that covers today. One owner's properties can each have a different manager. Staff whose role lacks org-wide access only see properties they are currently assigned to.\n\nPages through the property assignments table of the organization, oldest first. Filters: id, property_id, user_id, role, is_primary, effective_on, ends_on, created_by.\n\nNeeds one of: users.manage.","tags":["Property assignments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"role","in":"query","required":false,"schema":{"description":"Only rows whose role equals this.","type":"string","enum":["property_manager","assistant_manager","leasing_agent","maintenance_tech","maintenance_coordinator","accountant"]},"description":"Only rows whose role equals this."},{"name":"is_primary","in":"query","required":false,"schema":{"description":"Only rows whose is_primary equals this.","type":"boolean"},"description":"Only rows whose is_primary equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["users.manage"]}},"/v1/property_assignments/{id}":{"get":{"operationId":"get_property_assignments_row","summary":"Get a property assignment","description":"Which staff members work on which property, in what role, over time. This is where the owner -> property manager -> unit hierarchy gets its manager: the primary property manager of a property is the row with role = property_manager and is_primary that covers today. One owner's properties can each have a different manager. Staff whose role lacks org-wide access only see properties they are currently assigned to.\n\nOne row of property assignments by id, with every column the API shows.\n\nNeeds one of: users.manage.","tags":["Property assignments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["users.manage"]}},"/v1/property_bank_accounts":{"get":{"operationId":"list_property_bank_accounts","summary":"List property bank accounts","description":"Effective-dated assignment of the bank account a property uses for each money flow (operating cash, security deposits, reserves). No overlapping assignments per property and usage.\n\nPages through the property bank accounts table of the organization, oldest first. Filters: id, property_id, bank_account_id, usage, effective_on, ends_on, created_by.\n\nNeeds one of: banking.read.","tags":["Property bank accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"usage","in":"query","required":false,"schema":{"description":"Only rows whose usage equals this.","type":"string","enum":["operating","security_deposit","reserve"]},"description":"Only rows whose usage equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/property_bank_accounts/{id}":{"get":{"operationId":"get_property_bank_accounts_row","summary":"Get a property bank account","description":"Effective-dated assignment of the bank account a property uses for each money flow (operating cash, security deposits, reserves). No overlapping assignments per property and usage.\n\nOne row of property bank accounts by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Property bank accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/property_entity_assignments":{"get":{"operationId":"list_property_entity_assignments","summary":"List property entity assignments","description":"Effective-dated history of which accounting entity a property's fund belongs to. A property's first row starts at -infinity (it covers every date before any move); a move closes the open row the day before and opens a new one (assign_property_accounting_entity). Moves are prospective only: they are refused when the property already has journal lines dated on or after the move date, because journal_lines.accounting_entity_id is stamped at posting time. No overlaps per property.\n\nPages through the property entity assignments table of the organization, oldest first. Filters: id, property_id, accounting_entity_id, effective_on, ends_on, created_by.\n\nNeeds one of: gl.read.","tags":["Property entity assignments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"accounting_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose accounting_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accounting_entity_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/property_entity_assignments/{id}":{"get":{"operationId":"get_property_entity_assignments_row","summary":"Get a property entity assignment","description":"Effective-dated history of which accounting entity a property's fund belongs to. A property's first row starts at -infinity (it covers every date before any move); a move closes the open row the day before and opens a new one (assign_property_accounting_entity). Moves are prospective only: they are refused when the property already has journal lines dated on or after the move date, because journal_lines.accounting_entity_id is stamped at posting time. No overlaps per property.\n\nOne row of property entity assignments by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Property entity assignments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/property_insurance_premiums":{"get":{"operationId":"list_property_insurance_premiums","summary":"List property insurance premiums","description":"The owner's property insurance policies (property, liability, umbrella) with their coverage period and premium, linked to the premium bill and the policy document. insurance_premium_schedule spreads the premium over the coverage months (accrual) and flags a premium posted straight to expense. Tenant renters insurance is insurance_policies.\n\nPages through the property insurance premiums table of the organization, oldest first. Filters: id, property_id, coverage_start_on, coverage_end_on, bill_id, document_id, created_by.\n\nNeeds one of: gl.read, gl.write, properties.read, properties.write.","tags":["Property insurance premiums"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"coverage_start_on","in":"query","required":false,"schema":{"description":"Only rows whose coverage_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose coverage_start_on equals this."},{"name":"coverage_end_on","in":"query","required":false,"schema":{"description":"Only rows whose coverage_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose coverage_end_on equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write","properties.read","properties.write"]},"post":{"operationId":"create_property_insurance_premiums_row","summary":"Create a property insurance premium","description":"The owner's property insurance policies (property, liability, umbrella) with their coverage period and premium, linked to the premium bill and the policy document. insurance_premium_schedule spreads the premium over the coverage months (accrual) and flags a premium posted straight to expense. Tenant renters insurance is insurance_policies.\n\nInserts one row of property insurance premiums in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write, properties.write.","tags":["Property insurance premiums"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"carrier_name":{"type":"string","maxLength":100000,"description":"carrier name"},"policy_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"policy number"},{"type":"null"}]},"coverage_kind":{"type":"string","maxLength":100000,"description":"coverage kind"},"coverage_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"coverage start on"},"coverage_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"coverage end on"},"premium_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"premium cents"},"bill_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bill id"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","carrier_name","coverage_start_on","coverage_end_on","premium_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","properties.write"]}},"/v1/property_insurance_premiums/{id}":{"get":{"operationId":"get_property_insurance_premiums_row","summary":"Get a property insurance premium","description":"The owner's property insurance policies (property, liability, umbrella) with their coverage period and premium, linked to the premium bill and the policy document. insurance_premium_schedule spreads the premium over the coverage months (accrual) and flags a premium posted straight to expense. Tenant renters insurance is insurance_policies.\n\nOne row of property insurance premiums by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write, properties.read, properties.write.","tags":["Property insurance premiums"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write","properties.read","properties.write"]},"patch":{"operationId":"update_property_insurance_premiums_row","summary":"Update a property insurance premium","description":"The owner's property insurance policies (property, liability, umbrella) with their coverage period and premium, linked to the premium bill and the policy document. insurance_premium_schedule spreads the premium over the coverage months (accrual) and flags a premium posted straight to expense. Tenant renters insurance is insurance_policies.\n\nChanges the given fields of one row of property insurance premiums and returns it. Fields left out stay as they are.\n\nNeeds one of: gl.write, properties.write.","tags":["Property insurance premiums"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"carrier_name":{"type":"string","maxLength":100000,"description":"carrier name"},"policy_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"policy number"},{"type":"null"}]},"coverage_kind":{"type":"string","maxLength":100000,"description":"coverage kind"},"coverage_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"coverage start on"},"coverage_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"coverage end on"},"premium_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"premium cents"},"bill_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bill id"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","properties.write"]},"delete":{"operationId":"delete_property_insurance_premiums_row","summary":"Delete a property insurance premium","description":"The owner's property insurance policies (property, liability, umbrella) with their coverage period and premium, linked to the premium bill and the policy document. insurance_premium_schedule spreads the premium over the coverage months (accrual) and flags a premium posted straight to expense. Tenant renters insurance is insurance_policies.\n\nDeletes one row of property insurance premiums. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write, properties.write.","tags":["Property insurance premiums"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","properties.write"]}},"/v1/property_jurisdictions":{"get":{"operationId":"list_property_jurisdictions","summary":"List property jurisdictions","description":"Which jurisdictions a property is subject to. Auto-assigned from the property address (country, state, county, city) by trigger; staff can add or correct links (is_auto_assigned false).\n\nPages through the property jurisdictions table of the organization, oldest first. Filters: id, property_id, jurisdiction_id, is_auto_assigned, created_by.\n\nNeeds one of: compliance.write.","tags":["Property jurisdictions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"jurisdiction_id","in":"query","required":false,"schema":{"description":"Only rows whose jurisdiction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose jurisdiction_id equals this."},{"name":"is_auto_assigned","in":"query","required":false,"schema":{"description":"Only rows whose is_auto_assigned equals this.","type":"boolean"},"description":"Only rows whose is_auto_assigned equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/property_jurisdictions/{id}":{"get":{"operationId":"get_property_jurisdictions_row","summary":"Get a property jurisdiction","description":"Which jurisdictions a property is subject to. Auto-assigned from the property address (country, state, county, city) by trigger; staff can add or correct links (is_auto_assigned false).\n\nOne row of property jurisdictions by id, with every column the API shows.\n\nNeeds one of: compliance.write.","tags":["Property jurisdictions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/property_loan_escrows":{"get":{"operationId":"list_property_loan_escrows","summary":"List property loan escrows","description":"An escrow or reserve the lender collects with a property loan: one row per type with the monthly deposit and any required balance. For reference: nothing posts to the journal.\n\nPages through the property loan escrows table of the organization, oldest first. Filters: id, loan_id.\n\nNeeds one of: properties.read.","tags":["Property loan escrows"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"loan_id","in":"query","required":false,"schema":{"description":"Only rows whose loan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose loan_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/property_loan_escrows/{id}":{"get":{"operationId":"get_property_loan_escrows_row","summary":"Get a property loan escrow","description":"An escrow or reserve the lender collects with a property loan: one row per type with the monthly deposit and any required balance. For reference: nothing posts to the journal.\n\nOne row of property loan escrows by id, with every column the API shows.\n\nNeeds one of: properties.read.","tags":["Property loan escrows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/property_loans":{"get":{"operationId":"list_property_loans","summary":"List property loans","description":"A mortgage or other loan secured by a property: lender, terms and the monthly payment. The loan itself posts nothing to the journal; the scheduled balance comes from the terms (loan_schedule) and liability_gl_account_id links the mortgage payable account whose book balance the debt schedule compares. Written only by save_property_loan, archive_property_loan and create_property_from_setup.\n\nPages through the property loans table of the organization, oldest first. Filters: id, property_id, originated_on, matures_on, created_by, has_cash_sweep, liability_gl_account_id.\n\nNeeds one of: properties.read.","tags":["Property loans"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"originated_on","in":"query","required":false,"schema":{"description":"Only rows whose originated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose originated_on equals this."},{"name":"matures_on","in":"query","required":false,"schema":{"description":"Only rows whose matures_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose matures_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"has_cash_sweep","in":"query","required":false,"schema":{"description":"Only rows whose has_cash_sweep equals this.","type":"boolean"},"description":"Only rows whose has_cash_sweep equals this."},{"name":"liability_gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose liability_gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose liability_gl_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/property_loans/{id}":{"get":{"operationId":"get_property_loans_row","summary":"Get a property loan","description":"A mortgage or other loan secured by a property: lender, terms and the monthly payment. The loan itself posts nothing to the journal; the scheduled balance comes from the terms (loan_schedule) and liability_gl_account_id links the mortgage payable account whose book balance the debt schedule compares. Written only by save_property_loan, archive_property_loan and create_property_from_setup.\n\nOne row of property loans by id, with every column the API shows.\n\nNeeds one of: properties.read.","tags":["Property loans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/property_ownerships":{"get":{"operationId":"list_property_ownerships","summary":"List property ownerships","description":"Who owns each property and in what share, over time. On any date where a property has ownership rows, their ownership_pct must sum to exactly 100 (checked at commit). Change splits with set_property_ownership(). Distributions, owner statements and 1099s use the split in effect on the transaction date.\n\nPages through the property ownerships table of the organization, oldest first. Filters: id, owner_id, property_id, effective_on, ends_on, created_by.\n\nNeeds one of: owners.read, owners.write, properties.read, properties.write.","tags":["Property ownerships"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write","properties.read","properties.write"]}},"/v1/property_ownerships/{id}":{"get":{"operationId":"get_property_ownerships_row","summary":"Get a property ownership","description":"Who owns each property and in what share, over time. On any date where a property has ownership rows, their ownership_pct must sum to exactly 100 (checked at commit). Change splits with set_property_ownership(). Distributions, owner statements and 1099s use the split in effect on the transaction date.\n\nOne row of property ownerships by id, with every column the API shows.\n\nNeeds one of: owners.read, owners.write, properties.read, properties.write.","tags":["Property ownerships"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write","properties.read","properties.write"]}},"/v1/property_photos":{"get":{"operationId":"list_property_photos","summary":"List property photos","description":"Photos of a property (exterior, common areas, amenities), ordered for listings. Files live in Supabase Storage; unit-specific photos are in unit_photos.\n\nPages through the property photos table of the organization, oldest first. Filters: id, property_id, is_cover, is_marketing, taken_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Property photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"is_cover","in":"query","required":false,"schema":{"description":"Only rows whose is_cover equals this.","type":"boolean"},"description":"Only rows whose is_cover equals this."},{"name":"is_marketing","in":"query","required":false,"schema":{"description":"Only rows whose is_marketing equals this.","type":"boolean"},"description":"Only rows whose is_marketing equals this."},{"name":"taken_on","in":"query","required":false,"schema":{"description":"Only rows whose taken_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose taken_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/property_photos/{id}":{"get":{"operationId":"get_property_photos_row","summary":"Get a property photo","description":"Photos of a property (exterior, common areas, amenities), ordered for listings. Files live in Supabase Storage; unit-specific photos are in unit_photos.\n\nOne row of property photos by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/property_reserve_transactions":{"get":{"operationId":"list_property_reserve_transactions","summary":"List property reserve transactions","description":"A deposit into or draw from a property fund's reserve, with its supporting bill or capital project and its approval. Requested by staff with owners.write (request_property_reserve_transaction); approving it (owners.distribute, approve_property_reserve_transaction) posts the journal entry (entry_type owner_reserve) in the property fund: deposit Dr OWNER_EQUITY / Cr OWNER_RESERVES_HELD, draw the opposite. The reserve balance is never stored: it is the OWNER_RESERVES_HELD balance of the fund. Amounts never ch\n\nPages through the property reserve transactions table of the organization, oldest first. Filters: id, property_id, kind, effective_on, bill_id, capital_project_id, status, requested_by, decided_by, journal_entry_id, reversal_journal_entry_id, reversed_by.\n\nNeeds one of: gl.read.","tags":["Property reserve transactions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["deposit","draw"]},"description":"Only rows whose kind equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending_approval","posted","rejected","reversed"]},"description":"Only rows whose status equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."},{"name":"reversed_by","in":"query","required":false,"schema":{"description":"Only rows whose reversed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/property_reserve_transactions/{id}":{"get":{"operationId":"get_property_reserve_transactions_row","summary":"Get a property reserve transaction","description":"A deposit into or draw from a property fund's reserve, with its supporting bill or capital project and its approval. Requested by staff with owners.write (request_property_reserve_transaction); approving it (owners.distribute, approve_property_reserve_transaction) posts the journal entry (entry_type owner_reserve) in the property fund: deposit Dr OWNER_EQUITY / Cr OWNER_RESERVES_HELD, draw the opposite. The reserve balance is never stored: it is the OWNER_RESERVES_HELD balance of the fund. Amounts never ch\n\nOne row of property reserve transactions by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Property reserve transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/property_reserves":{"get":{"operationId":"list_property_reserves","summary":"List property reserves","description":"Effective-dated operating reserve: cash kept in the property's trust fund and never distributed to owners. ends_on inclusive, null = open.\n\nPages through the property reserves table of the organization, oldest first. Filters: id, property_id, effective_on, ends_on, created_by.\n\nNeeds one of: owners.write.","tags":["Property reserves"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/property_reserves/{id}":{"get":{"operationId":"get_property_reserves_row","summary":"Get a property reserve","description":"Effective-dated operating reserve: cash kept in the property's trust fund and never distributed to owners. ends_on inclusive, null = open.\n\nOne row of property reserves by id, with every column the API shows.\n\nNeeds one of: owners.write.","tags":["Property reserves"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/property_resident_utilities":{"get":{"operationId":"list_property_resident_utilities","summary":"List property resident utilities","description":"Utilities a resident puts in their own name at a property (electric with Eversource, internet with Comcast), with how to start service. Each resident confirms theirs on the move-in plan (lease_utility_setups).\n\nPages through the property resident utilities table of the organization, oldest first. Filters: id, property_id, utility_type, utility_provider_id, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Property resident utilities"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"utility_type","in":"query","required":false,"schema":{"description":"Only rows whose utility_type equals this.","type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"]},"description":"Only rows whose utility_type equals this."},{"name":"utility_provider_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_provider_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_provider_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_property_resident_utilities_row","summary":"Create a property resident utility","description":"Utilities a resident puts in their own name at a property (electric with Eversource, internet with Comcast), with how to start service. Each resident confirms theirs on the move-in plan (lease_utility_setups).\n\nInserts one row of property resident utilities in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Property resident utilities"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"utility_type":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"],"description":"utility type"},"utility_provider_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The provider from the utilities module (its phone and start-service link); else provider_name, phone and start_service_url here."},{"type":"null"}]},"provider_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Provider name when no utility_providers row is linked."},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"start_service_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"start service url"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","utility_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_resident_utilities/{id}":{"get":{"operationId":"get_property_resident_utilities_row","summary":"Get a property resident utility","description":"Utilities a resident puts in their own name at a property (electric with Eversource, internet with Comcast), with how to start service. Each resident confirms theirs on the move-in plan (lease_utility_setups).\n\nOne row of property resident utilities by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property resident utilities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_property_resident_utilities_row","summary":"Update a property resident utility","description":"Utilities a resident puts in their own name at a property (electric with Eversource, internet with Comcast), with how to start service. Each resident confirms theirs on the move-in plan (lease_utility_setups).\n\nChanges the given fields of one row of property resident utilities and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Property resident utilities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"utility_type":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"],"description":"utility type"},"utility_provider_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The provider from the utilities module (its phone and start-service link); else provider_name, phone and start_service_url here."},{"type":"null"}]},"provider_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"Provider name when no utility_providers row is linked."},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"start_service_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"start service url"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_settings":{"get":{"operationId":"list_property_settings","summary":"List property settings","description":"One row per property with operational defaults and policies (payments, maintenance, leasing, pets, insurance). Fee rules, late fees and bank accounts live in their own effective-dated tables.\n\nPages through the property settings table of the organization, oldest first. Filters: id, property_id, allows_online_payments, accepts_partial_payments, requires_certified_funds_when_delinquent, allows_service_requests, default_permission_to_enter, pets_allowed, smoking_allowed, renters_insurance_required, in_flood_hazard_area, has_sprinkler_system, sprinkler_last_maintained_on.\n\nNeeds one of: properties.read, properties.write.","tags":["Property settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"allows_online_payments","in":"query","required":false,"schema":{"description":"Only rows whose allows_online_payments equals this.","type":"boolean"},"description":"Only rows whose allows_online_payments equals this."},{"name":"accepts_partial_payments","in":"query","required":false,"schema":{"description":"Only rows whose accepts_partial_payments equals this.","type":"boolean"},"description":"Only rows whose accepts_partial_payments equals this."},{"name":"requires_certified_funds_when_delinquent","in":"query","required":false,"schema":{"description":"Only rows whose requires_certified_funds_when_delinquent equals this.","type":"boolean"},"description":"Only rows whose requires_certified_funds_when_delinquent equals this."},{"name":"allows_service_requests","in":"query","required":false,"schema":{"description":"Only rows whose allows_service_requests equals this.","type":"boolean"},"description":"Only rows whose allows_service_requests equals this."},{"name":"default_permission_to_enter","in":"query","required":false,"schema":{"description":"Only rows whose default_permission_to_enter equals this.","type":"boolean"},"description":"Only rows whose default_permission_to_enter equals this."},{"name":"pets_allowed","in":"query","required":false,"schema":{"description":"Only rows whose pets_allowed equals this.","type":"boolean"},"description":"Only rows whose pets_allowed equals this."},{"name":"smoking_allowed","in":"query","required":false,"schema":{"description":"Only rows whose smoking_allowed equals this.","type":"boolean"},"description":"Only rows whose smoking_allowed equals this."},{"name":"renters_insurance_required","in":"query","required":false,"schema":{"description":"Only rows whose renters_insurance_required equals this.","type":"boolean"},"description":"Only rows whose renters_insurance_required equals this."},{"name":"in_flood_hazard_area","in":"query","required":false,"schema":{"description":"Only rows whose in_flood_hazard_area equals this.","type":"boolean"},"description":"Only rows whose in_flood_hazard_area equals this."},{"name":"has_sprinkler_system","in":"query","required":false,"schema":{"description":"Only rows whose has_sprinkler_system equals this.","type":"boolean"},"description":"Only rows whose has_sprinkler_system equals this."},{"name":"sprinkler_last_maintained_on","in":"query","required":false,"schema":{"description":"Only rows whose sprinkler_last_maintained_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sprinkler_last_maintained_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_property_settings_row","summary":"Create a property setting","description":"One row per property with operational defaults and policies (payments, maintenance, leasing, pets, insurance). Fee rules, late fees and bank accounts live in their own effective-dated tables.\n\nInserts one row of property settings in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Property settings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"allows_online_payments":{"type":"boolean","description":"allows online payments"},"accepts_partial_payments":{"type":"boolean","description":"accepts partial payments"},"requires_certified_funds_when_delinquent":{"type":"boolean","description":"Tenants who are delinquent or had an NSF may pay only by certified funds (no check/ACH)."},"allows_service_requests":{"type":"boolean","description":"allows service requests"},"default_permission_to_enter":{"type":"boolean","description":"Default answer for \"may maintenance enter when you are not home\" on service requests."},"maintenance_approval_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Work orders above this need owner approval; overrides owners.maintenance_approval_threshold_cents. Null = inherit."},{"type":"null"}]},"default_lease_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default lease term months"},{"type":"null"}]},"default_security_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default security deposit cents"},{"type":"null"}]},"application_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"application fee cents"},{"type":"null"}]},"pets_allowed":{"type":"boolean","description":"pets allowed"},"max_pets":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max pets"},{"type":"null"}]},"pet_weight_limit_lbs":{"anyOf":[{"type":"number","description":"pet weight limit lbs"},{"type":"null"}]},"smoking_allowed":{"type":"boolean","description":"smoking allowed"},"renters_insurance_required":{"type":"boolean","description":"renters insurance required"},"min_renters_liability_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minimum liability coverage required on tenants' renters insurance."},{"type":"null"}]},"office_hours":{"anyOf":[{"type":"string","maxLength":100000,"description":"office hours"},{"type":"null"}]},"emergency_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"emergency phone"},{"type":"null"}]},"showing_instructions":{"anyOf":[{"type":"string","maxLength":100000,"description":"showing instructions"},{"type":"null"}]},"in_flood_hazard_area":{"anyOf":[{"type":"boolean","description":"Whether the property is in a FEMA special flood hazard area (100-year floodplain); null = not recorded. California, New Jersey, Oregon and Texas leases disclose it (00143)."},{"type":"null"}]},"floods_last_5_years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Times any living space or attachment flooded in the last five years; null = not recorded. Georgia leases disclose three or more, Texas leases disclose at least one (00143)."},{"type":"null"}]},"has_sprinkler_system":{"anyOf":[{"type":"boolean","description":"Whether the units have a maintained and operative sprinkler system; null = not recorded. New York leases disclose it with sprinkler_last_maintained_on (00143)."},{"type":"null"}]},"sprinkler_last_maintained_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"sprinkler last maintained on"},{"type":"null"}]},"deposit_held_at":{"anyOf":[{"type":"string","maxLength":100000,"description":"Name and address of the bank (or surety) that holds the property's security deposits. Massachusetts, Michigan and Washington leases name it (00143)."},{"type":"null"}]}},"required":["property_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_settings/{id}":{"get":{"operationId":"get_property_settings_row","summary":"Get a property setting","description":"One row per property with operational defaults and policies (payments, maintenance, leasing, pets, insurance). Fee rules, late fees and bank accounts live in their own effective-dated tables.\n\nOne row of property settings by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_property_settings_row","summary":"Update a property setting","description":"One row per property with operational defaults and policies (payments, maintenance, leasing, pets, insurance). Fee rules, late fees and bank accounts live in their own effective-dated tables.\n\nChanges the given fields of one row of property settings and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Property settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"allows_online_payments":{"type":"boolean","description":"allows online payments"},"accepts_partial_payments":{"type":"boolean","description":"accepts partial payments"},"requires_certified_funds_when_delinquent":{"type":"boolean","description":"Tenants who are delinquent or had an NSF may pay only by certified funds (no check/ACH)."},"allows_service_requests":{"type":"boolean","description":"allows service requests"},"default_permission_to_enter":{"type":"boolean","description":"Default answer for \"may maintenance enter when you are not home\" on service requests."},"maintenance_approval_threshold_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Work orders above this need owner approval; overrides owners.maintenance_approval_threshold_cents. Null = inherit."},{"type":"null"}]},"default_lease_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default lease term months"},{"type":"null"}]},"default_security_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default security deposit cents"},{"type":"null"}]},"application_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"application fee cents"},{"type":"null"}]},"pets_allowed":{"type":"boolean","description":"pets allowed"},"max_pets":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max pets"},{"type":"null"}]},"pet_weight_limit_lbs":{"anyOf":[{"type":"number","description":"pet weight limit lbs"},{"type":"null"}]},"smoking_allowed":{"type":"boolean","description":"smoking allowed"},"renters_insurance_required":{"type":"boolean","description":"renters insurance required"},"min_renters_liability_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minimum liability coverage required on tenants' renters insurance."},{"type":"null"}]},"office_hours":{"anyOf":[{"type":"string","maxLength":100000,"description":"office hours"},{"type":"null"}]},"emergency_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"emergency phone"},{"type":"null"}]},"showing_instructions":{"anyOf":[{"type":"string","maxLength":100000,"description":"showing instructions"},{"type":"null"}]},"in_flood_hazard_area":{"anyOf":[{"type":"boolean","description":"Whether the property is in a FEMA special flood hazard area (100-year floodplain); null = not recorded. California, New Jersey, Oregon and Texas leases disclose it (00143)."},{"type":"null"}]},"floods_last_5_years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Times any living space or attachment flooded in the last five years; null = not recorded. Georgia leases disclose three or more, Texas leases disclose at least one (00143)."},{"type":"null"}]},"has_sprinkler_system":{"anyOf":[{"type":"boolean","description":"Whether the units have a maintained and operative sprinkler system; null = not recorded. New York leases disclose it with sprinkler_last_maintained_on (00143)."},{"type":"null"}]},"sprinkler_last_maintained_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"sprinkler last maintained on"},{"type":"null"}]},"deposit_held_at":{"anyOf":[{"type":"string","maxLength":100000,"description":"Name and address of the bank (or surety) that holds the property's security deposits. Massachusetts, Michigan and Washington leases name it (00143)."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_system_events":{"get":{"operationId":"list_property_system_events","summary":"List property system events","description":"The history of one building system: a repair, a replacement, an inspection or a note, with the date, what was done, the cost, the vendor and the work order. A record only: the cost does not post to the books (the bill does).\n\nPages through the property system events table of the organization, oldest first. Filters: id, property_id, system_id, event_kind, event_on, vendor_id, work_order_id, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Property system events"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"system_id","in":"query","required":false,"schema":{"description":"Only rows whose system_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose system_id equals this."},{"name":"event_kind","in":"query","required":false,"schema":{"description":"Only rows whose event_kind equals this.","type":"string","enum":["repair","replacement","inspection","note"]},"description":"Only rows whose event_kind equals this."},{"name":"event_on","in":"query","required":false,"schema":{"description":"Only rows whose event_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose event_on equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_property_system_events_row","summary":"Create a property system event","description":"The history of one building system: a repair, a replacement, an inspection or a note, with the date, what was done, the cost, the vendor and the work order. A record only: the cost does not post to the books (the bill does).\n\nInserts one row of property system events in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Property system events"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The system's property, kept here so RLS checks the property without a join."},"system_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"system id"},"event_kind":{"type":"string","enum":["repair","replacement","inspection","note"],"description":"event kind"},"event_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"event on"},"description":{"type":"string","maxLength":100000,"description":"description"},"cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What the work cost, for the record; null = not known."},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","system_id","event_kind","event_on","description"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_system_events/{id}":{"get":{"operationId":"get_property_system_events_row","summary":"Get a property system event","description":"The history of one building system: a repair, a replacement, an inspection or a note, with the date, what was done, the cost, the vendor and the work order. A record only: the cost does not post to the books (the bill does).\n\nOne row of property system events by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property system events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_property_system_events_row","summary":"Update a property system event","description":"The history of one building system: a repair, a replacement, an inspection or a note, with the date, what was done, the cost, the vendor and the work order. A record only: the cost does not post to the books (the bill does).\n\nChanges the given fields of one row of property system events and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Property system events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The system's property, kept here so RLS checks the property without a join."},"system_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"system id"},"event_kind":{"type":"string","enum":["repair","replacement","inspection","note"],"description":"event kind"},"event_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"event on"},"description":{"type":"string","maxLength":100000,"description":"description"},"cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What the work cost, for the record; null = not known."},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_systems":{"get":{"operationId":"list_property_systems","summary":"List property systems","description":"A building system of a property (roof, supply pipes, drains, wiring, HVAC, foundation): what it is made of, when it went in, its condition and its last replacement and inspection. The property record an insurer asks for. Equipment with model and serial numbers is in assets.\n\nPages through the property systems table of the organization, oldest first. Filters: id, property_id, building_id, system_kind, last_replaced_on, last_inspected_on, condition, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Property systems"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"system_kind","in":"query","required":false,"schema":{"description":"Only rows whose system_kind equals this.","type":"string","enum":["roof","plumbing_supply","drain_sewer","electrical","hvac","water_heater","foundation","windows","siding","fire_protection","gas","other"]},"description":"Only rows whose system_kind equals this."},{"name":"last_replaced_on","in":"query","required":false,"schema":{"description":"Only rows whose last_replaced_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_replaced_on equals this."},{"name":"last_inspected_on","in":"query","required":false,"schema":{"description":"Only rows whose last_inspected_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_inspected_on equals this."},{"name":"condition","in":"query","required":false,"schema":{"description":"Only rows whose condition equals this.","type":"string","enum":["new","good","fair","poor","failed"]},"description":"Only rows whose condition equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_property_systems_row","summary":"Create a property system","description":"A building system of a property (roof, supply pipes, drains, wiring, HVAC, foundation): what it is made of, when it went in, its condition and its last replacement and inspection. The property record an insurer asks for. Equipment with model and serial numbers is in assets.\n\nInserts one row of property systems in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Property systems"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The building it belongs to at a property with several buildings; null for the whole property."},{"type":"null"}]},"system_kind":{"type":"string","enum":["roof","plumbing_supply","drain_sewer","electrical","hvac","water_heater","foundation","windows","siding","fire_protection","gas","other"],"description":"system kind"},"label":{"anyOf":[{"type":"string","maxLength":100000,"description":"Which one, when the kind alone is not enough, e.g. \"Main roof\", \"Garage roof\"."},{"type":"null"}]},"material":{"anyOf":[{"type":"string","maxLength":100000,"description":"What it is made of, as entered: \"copper\", \"PEX\", \"galvanized\", \"cast iron\", \"asphalt shingle\", \"knob and tube\"."},{"type":"null"}]},"installed_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Year the current system went in (the original install or the last full replacement)."},{"type":"null"}]},"last_replaced_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last full replacement. A replacement event with a later date moves it forward."},{"type":"null"}]},"last_inspected_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last inspection. An inspection event with a later date moves it forward."},{"type":"null"}]},"condition":{"anyOf":[{"type":"string","enum":["new","good","fair","poor","failed"],"description":"condition"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","system_kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_systems/{id}":{"get":{"operationId":"get_property_systems_row","summary":"Get a property system","description":"A building system of a property (roof, supply pipes, drains, wiring, HVAC, foundation): what it is made of, when it went in, its condition and its last replacement and inspection. The property record an insurer asks for. Equipment with model and serial numbers is in assets.\n\nOne row of property systems by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property systems"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_property_systems_row","summary":"Update a property system","description":"A building system of a property (roof, supply pipes, drains, wiring, HVAC, foundation): what it is made of, when it went in, its condition and its last replacement and inspection. The property record an insurer asks for. Equipment with model and serial numbers is in assets.\n\nChanges the given fields of one row of property systems and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Property systems"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The building it belongs to at a property with several buildings; null for the whole property."},{"type":"null"}]},"system_kind":{"type":"string","enum":["roof","plumbing_supply","drain_sewer","electrical","hvac","water_heater","foundation","windows","siding","fire_protection","gas","other"],"description":"system kind"},"label":{"anyOf":[{"type":"string","maxLength":100000,"description":"Which one, when the kind alone is not enough, e.g. \"Main roof\", \"Garage roof\"."},{"type":"null"}]},"material":{"anyOf":[{"type":"string","maxLength":100000,"description":"What it is made of, as entered: \"copper\", \"PEX\", \"galvanized\", \"cast iron\", \"asphalt shingle\", \"knob and tube\"."},{"type":"null"}]},"installed_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Year the current system went in (the original install or the last full replacement)."},{"type":"null"}]},"last_replaced_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last full replacement. A replacement event with a later date moves it forward."},{"type":"null"}]},"last_inspected_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last inspection. An inspection event with a later date moves it forward."},{"type":"null"}]},"condition":{"anyOf":[{"type":"string","enum":["new","good","fair","poor","failed"],"description":"condition"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_tax_appeals":{"get":{"operationId":"list_property_tax_appeals","summary":"List property tax appeals","description":"An appeal of one tax year's assessed value to the county board, from considering it to the decision.\n\nPages through the property tax appeals table of the organization, oldest first. Filters: id, property_id, tax_year_id, status, filing_deadline_on, filed_on, hearing_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Property tax appeals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"tax_year_id","in":"query","required":false,"schema":{"description":"Only rows whose tax_year_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tax_year_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["considering","filed","hearing_scheduled","decided","withdrawn"]},"description":"Only rows whose status equals this."},{"name":"filing_deadline_on","in":"query","required":false,"schema":{"description":"Only rows whose filing_deadline_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose filing_deadline_on equals this."},{"name":"filed_on","in":"query","required":false,"schema":{"description":"Only rows whose filed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose filed_on equals this."},{"name":"hearing_on","in":"query","required":false,"schema":{"description":"Only rows whose hearing_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose hearing_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_property_tax_appeals_row","summary":"Create a property tax appeal","description":"An appeal of one tax year's assessed value to the county board, from considering it to the decision.\n\nInserts one row of property tax appeals in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Property tax appeals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The tax year's property, kept here so RLS checks the property without a join."},"tax_year_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tax year id"},"filing_deadline_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day to file, from the assessor's notice."},{"type":"null"}]},"filed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"filed on"},{"type":"null"}]},"hearing_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"hearing on"},{"type":"null"}]},"requested_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The assessed value the appeal asks for."},{"type":"null"}]},"decided_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The assessed value the board decided; set when status is decided."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","tax_year_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_tax_appeals/{id}":{"get":{"operationId":"get_property_tax_appeals_row","summary":"Get a property tax appeal","description":"An appeal of one tax year's assessed value to the county board, from considering it to the decision.\n\nOne row of property tax appeals by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property tax appeals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_property_tax_appeals_row","summary":"Update a property tax appeal","description":"An appeal of one tax year's assessed value to the county board, from considering it to the decision.\n\nChanges the given fields of one row of property tax appeals and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Property tax appeals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The tax year's property, kept here so RLS checks the property without a join."},"tax_year_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tax year id"},"filing_deadline_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day to file, from the assessor's notice."},{"type":"null"}]},"filed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"filed on"},{"type":"null"}]},"hearing_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"hearing on"},{"type":"null"}]},"requested_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The assessed value the appeal asks for."},{"type":"null"}]},"decided_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The assessed value the board decided; set when status is decided."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_tax_benefits":{"get":{"operationId":"list_property_tax_benefits","summary":"List property tax benefits","description":"A New York City property tax exemption or abatement on a property (J-51, 421-a, Article XI, 420-c, ICAP): when it starts, how many years at the full benefit, how many phase-out years (the benefit steps down evenly, e.g. 4 years at 80/60/40/20%), the full annual benefit and the affordability conditions that keep it. ends_on is derived from the years. property_tax_benefit_status shows the current year and the expiry.\n\nPages through the property tax benefits table of the organization, oldest first. Filters: id, property_id, benefit_type, starts_on, ends_on, regulatory_agreement_ends_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Property tax benefits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"benefit_type","in":"query","required":false,"schema":{"description":"Only rows whose benefit_type equals this.","type":"string","enum":["j51","421a","article_xi","420c","icap","other"]},"description":"Only rows whose benefit_type equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"regulatory_agreement_ends_on","in":"query","required":false,"schema":{"description":"Only rows whose regulatory_agreement_ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose regulatory_agreement_ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_property_tax_benefits_row","summary":"Create a property tax benefit","description":"A New York City property tax exemption or abatement on a property (J-51, 421-a, Article XI, 420-c, ICAP): when it starts, how many years at the full benefit, how many phase-out years (the benefit steps down evenly, e.g. 4 years at 80/60/40/20%), the full annual benefit and the affordability conditions that keep it. ends_on is derived from the years. property_tax_benefit_status shows the current year and the expiry.\n\nInserts one row of property tax benefits in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Property tax benefits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"benefit_type":{"type":"string","enum":["j51","421a","article_xi","420c","icap","other"],"description":"benefit type"},"program_option":{"anyOf":[{"type":"string","maxLength":100000,"description":"The benefit's program or option as the agency names it, e.g. \"Affordable New York Option C\" or \"J-51 34-year\"."},{"type":"null"}]},"borough_block_lot":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC Department of Finance borough-block-lot (10 digits: borough 1-5, block 5, lot 4)."},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"full_benefit_years":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"full benefit years"},"phase_out_years":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"phase out years"},"ends_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day of the benefit: starts_on plus full and phase-out years, less a day. Set by a trigger."},"annual_benefit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tax saved in a year at the full (100%) benefit."},"affordable_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"affordable units"},{"type":"null"}]},"affordable_ami_pct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"affordable ami pct"},{"type":"null"}]},"affordability_requirement":{"anyOf":[{"type":"string","maxLength":100000,"description":"The conditions the benefit requires, e.g. \"30% of units at 130% AMI, rent stabilized for 35 years\"."},{"type":"null"}]},"regulatory_agreement_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"End of the regulatory agreement or restriction period, when it outlasts the benefit."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","benefit_type","starts_on","full_benefit_years","annual_benefit_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/property_tax_benefits/{id}":{"get":{"operationId":"get_property_tax_benefits_row","summary":"Get a property tax benefit","description":"A New York City property tax exemption or abatement on a property (J-51, 421-a, Article XI, 420-c, ICAP): when it starts, how many years at the full benefit, how many phase-out years (the benefit steps down evenly, e.g. 4 years at 80/60/40/20%), the full annual benefit and the affordability conditions that keep it. ends_on is derived from the years. property_tax_benefit_status shows the current year and the expiry.\n\nOne row of property tax benefits by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Property tax benefits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_property_tax_benefits_row","summary":"Update a property tax benefit","description":"A New York City property tax exemption or abatement on a property (J-51, 421-a, Article XI, 420-c, ICAP): when it starts, how many years at the full benefit, how many phase-out years (the benefit steps down evenly, e.g. 4 years at 80/60/40/20%), the full annual benefit and the affordability conditions that keep it. ends_on is derived from the years. property_tax_benefit_status shows the current year and the expiry.\n\nChanges the given fields of one row of property tax benefits and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Property tax benefits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"benefit_type":{"type":"string","enum":["j51","421a","article_xi","420c","icap","other"],"description":"benefit type"},"program_option":{"anyOf":[{"type":"string","maxLength":100000,"description":"The benefit's program or option as the agency names it, e.g. \"Affordable New York Option C\" or \"J-51 34-year\"."},{"type":"null"}]},"borough_block_lot":{"anyOf":[{"type":"string","maxLength":100000,"description":"NYC Department of Finance borough-block-lot (10 digits: borough 1-5, block 5, lot 4)."},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"full_benefit_years":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"full benefit years"},"phase_out_years":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"phase out years"},"ends_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"Last day of the benefit: starts_on plus full and phase-out years, less a day. Set by a trigger."},"annual_benefit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tax saved in a year at the full (100%) benefit."},"affordable_units":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"affordable units"},{"type":"null"}]},"affordable_ami_pct":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"affordable ami pct"},{"type":"null"}]},"affordability_requirement":{"anyOf":[{"type":"string","maxLength":100000,"description":"The conditions the benefit requires, e.g. \"30% of units at 130% AMI, rent stabilized for 35 years\"."},{"type":"null"}]},"regulatory_agreement_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"End of the regulatory agreement or restriction period, when it outlasts the benefit."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/property_tax_years":{"get":{"operationId":"list_property_tax_years","summary":"List property tax years","description":"A property's tax bill for one tax year, as the assessor and the tax collector state it: assessed and market value, the tax, the installment due dates and when it was paid. One active row per property and year. A record only: paying the tax is a bill in payables.\n\nPages through the property tax years table of the organization, oldest first. Filters: id, property_id, first_installment_due_on, second_installment_due_on, paid_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Property tax years"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"first_installment_due_on","in":"query","required":false,"schema":{"description":"Only rows whose first_installment_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose first_installment_due_on equals this."},{"name":"second_installment_due_on","in":"query","required":false,"schema":{"description":"Only rows whose second_installment_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose second_installment_due_on equals this."},{"name":"paid_on","in":"query","required":false,"schema":{"description":"Only rows whose paid_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paid_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_property_tax_years_row","summary":"Create a property tax year","description":"A property's tax bill for one tax year, as the assessor and the tax collector state it: assessed and market value, the tax, the installment due dates and when it was paid. One active row per property and year. A record only: paying the tax is a bill in payables.\n\nInserts one row of property tax years in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Property tax years"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"assessed_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The value the tax is computed on, from the assessor's notice."},{"type":"null"}]},"market_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The assessor's full market value, when the notice states it apart from the assessed value."},{"type":"null"}]},"tax_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The total tax for the year, all installments."},{"type":"null"}]},"first_installment_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"first installment due on"},{"type":"null"}]},"second_installment_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"second installment due on"},{"type":"null"}]},"paid_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the last installment was paid; null = not paid in full."},{"type":"null"}]},"parcel_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"The parcel number for this year when it differs from properties.parcel_number (a split or a renumbering)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","tax_year"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_tax_years/{id}":{"get":{"operationId":"get_property_tax_years_row","summary":"Get a property tax year","description":"A property's tax bill for one tax year, as the assessor and the tax collector state it: assessed and market value, the tax, the installment due dates and when it was paid. One active row per property and year. A record only: paying the tax is a bill in payables.\n\nOne row of property tax years by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Property tax years"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_property_tax_years_row","summary":"Update a property tax year","description":"A property's tax bill for one tax year, as the assessor and the tax collector state it: assessed and market value, the tax, the installment due dates and when it was paid. One active row per property and year. A record only: paying the tax is a bill in payables.\n\nChanges the given fields of one row of property tax years and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Property tax years"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"assessed_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The value the tax is computed on, from the assessor's notice."},{"type":"null"}]},"market_value_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The assessor's full market value, when the notice states it apart from the assessed value."},{"type":"null"}]},"tax_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The total tax for the year, all installments."},{"type":"null"}]},"first_installment_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"first installment due on"},{"type":"null"}]},"second_installment_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"second installment due on"},{"type":"null"}]},"paid_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When the last installment was paid; null = not paid in full."},{"type":"null"}]},"parcel_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"The parcel number for this year when it differs from properties.parcel_number (a split or a renumbering)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/property_valuations":{"get":{"operationId":"list_property_valuations","summary":"List property valuations","description":"Estimated value of a whole property on a date, entered by an owner of the property (entered_by_owner_id) or by staff (null), with the source and, optionally, the mortgage balance on that date. The newest row by valued_on then created_at is the current value; the newest row with a mortgage balance is the current mortgage. Equity = value - mortgage. Staff read the table; owners read owner_property_valuations (no note, no author) for the properties they own today and apply their ownership percent. Not money in the books: nothing posts to the journal.\n\nPages through the property valuations table of the organization, oldest first. Filters: id, property_id, valued_on, source, entered_by_owner_id, created_by, document_id.\n\nNeeds one of: properties.read.","tags":["Property valuations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"valued_on","in":"query","required":false,"schema":{"description":"Only rows whose valued_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose valued_on equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["estimate","appraisal","purchase_price"]},"description":"Only rows whose source equals this."},{"name":"entered_by_owner_id","in":"query","required":false,"schema":{"description":"Only rows whose entered_by_owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose entered_by_owner_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/property_valuations/{id}":{"get":{"operationId":"get_property_valuations_row","summary":"Get a property valuation","description":"Estimated value of a whole property on a date, entered by an owner of the property (entered_by_owner_id) or by staff (null), with the source and, optionally, the mortgage balance on that date. The newest row by valued_on then created_at is the current value; the newest row with a mortgage balance is the current mortgage. Equity = value - mortgage. Staff read the table; owners read owner_property_valuations (no note, no author) for the properties they own today and apply their ownership percent. Not money in the books: nothing posts to the journal.\n\nOne row of property valuations by id, with every column the API shows.\n\nNeeds one of: properties.read.","tags":["Property valuations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/purchase_order_lines":{"get":{"operationId":"list_purchase_order_lines","summary":"List purchase order lines","description":"Ordered items of a purchase order with GL coding.\n\nPages through the purchase order lines table of the organization, oldest first. Filters: id, purchase_order_id, gl_account_id, property_id, unit_id, material_catalog_item_id.\n\nNeeds one of: payables.write.","tags":["Purchase order lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"purchase_order_id","in":"query","required":false,"schema":{"description":"Only rows whose purchase_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose purchase_order_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"material_catalog_item_id","in":"query","required":false,"schema":{"description":"Only rows whose material_catalog_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose material_catalog_item_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/purchase_order_lines/{id}":{"get":{"operationId":"get_purchase_order_lines_row","summary":"Get a purchase order line","description":"Ordered items of a purchase order with GL coding.\n\nOne row of purchase order lines by id, with every column the API shows.\n\nNeeds one of: payables.write.","tags":["Purchase order lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/purchase_order_rejections":{"get":{"operationId":"list_purchase_order_rejections","summary":"List purchase order rejections","description":"One row per rejection of a purchase order: who rejected it, why, and the submission it ended. Written only by reject_purchase_order.\n\nPages through the purchase order rejections table of the organization, oldest first. Filters: id, purchase_order_id, rejected_by, submitted_by.\n\nNeeds one of: payables.read.","tags":["Purchase order rejections"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"purchase_order_id","in":"query","required":false,"schema":{"description":"Only rows whose purchase_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose purchase_order_id equals this."},{"name":"rejected_by","in":"query","required":false,"schema":{"description":"Only rows whose rejected_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rejected_by equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/purchase_order_rejections/{id}":{"get":{"operationId":"get_purchase_order_rejections_row","summary":"Get a purchase order rejection","description":"One row per rejection of a purchase order: who rejected it, why, and the submission it ended. Written only by reject_purchase_order.\n\nOne row of purchase order rejections by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Purchase order rejections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/receipt_allocations":{"get":{"operationId":"list_receipt_allocations","summary":"List receipt allocations","description":"Application of receipt money to a specific charge. Active rows (reversed_at is null) pay the charge; per receipt they never exceed the receipt, per charge never the charge (enforced by trigger). Each row carries its cash-basis entry: income is recognized on the cash basis when money is applied. Collected income by charge type (management fees, owner statements) is read from here.\n\nPages through the receipt allocations table of the organization, oldest first. Filters: id, receipt_id, charge_id, property_id, lease_id, allocated_on, is_from_receipt_entry, accrual_journal_entry_id, journal_entry_id, reversed_on, reversed_by, unallocation_accrual_journal_entry_id, unallocation_journal_entry_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Receipt allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"allocated_on","in":"query","required":false,"schema":{"description":"Only rows whose allocated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose allocated_on equals this."},{"name":"is_from_receipt_entry","in":"query","required":false,"schema":{"description":"Only rows whose is_from_receipt_entry equals this.","type":"boolean"},"description":"Only rows whose is_from_receipt_entry equals this."},{"name":"accrual_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose accrual_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accrual_journal_entry_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"reversed_by","in":"query","required":false,"schema":{"description":"Only rows whose reversed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversed_by equals this."},{"name":"unallocation_accrual_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose unallocation_accrual_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unallocation_accrual_journal_entry_id equals this."},{"name":"unallocation_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose unallocation_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unallocation_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_allocations/{id}":{"get":{"operationId":"get_receipt_allocations_row","summary":"Get a receipt allocation","description":"Application of receipt money to a specific charge. Active rows (reversed_at is null) pay the charge; per receipt they never exceed the receipt, per charge never the charge (enforced by trigger). Each row carries its cash-basis entry: income is recognized on the cash basis when money is applied. Collected income by charge type (management fees, owner statements) is read from here.\n\nOne row of receipt allocations by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Receipt allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_instrument_receipts":{"get":{"operationId":"list_receipt_instrument_receipts","summary":"List receipt instrument receipts","description":"Which receipts an instrument paid: one row per receipt (one per lease the check was split across). A receipt belongs to at most one instrument. When a recorded payment is corrected (moved to another lease) the voided receipt keeps its row and the replacement receipt gets a new one. Written only by RPCs.\n\nPages through the receipt instrument receipts table of the organization, oldest first. Filters: id, instrument_id, receipt_id, lease_id, property_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Receipt instrument receipts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"instrument_id","in":"query","required":false,"schema":{"description":"Only rows whose instrument_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose instrument_id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_instrument_receipts/{id}":{"get":{"operationId":"get_receipt_instrument_receipts_row","summary":"Get a receipt instrument receipt","description":"Which receipts an instrument paid: one row per receipt (one per lease the check was split across). A receipt belongs to at most one instrument. When a recorded payment is corrected (moved to another lease) the voided receipt keeps its row and the replacement receipt gets a new one. Written only by RPCs.\n\nOne row of receipt instrument receipts by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Receipt instrument receipts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_instruments":{"get":{"operationId":"list_receipt_instruments","summary":"List receipt instruments","description":"The paper behind offline tenant receipts (check, money order, cashier's check or cash): one row per piece of paper (or cash handover). One instrument can pay several leases (a parent paying two units, a housing authority check): its receipts are listed in receipt_instrument_receipts. Holds what QuickBooks keeps for a received check (number, date, drawer bank, routing, account last 4, masked MICR line, memo line, front/back photos) plus the AI check-scan suggestions (ocr_* columns) the user confirms. Starts as a draft (check scan, payment batch line) and becomes recorded when record_offl\n\nPages through the receipt instruments table of the organization, oldest first. Filters: id, status, method, lease_id, contact_id, property_id, check_dated_on, front_document_id, back_document_id, capture_method, cash_receipt_document_id, duplicate_of_instrument_id, duplicate_overridden_by, ocr_status, ocr_check_dated_on, ocr_is_endorsed, ocr_is_signed, reviewed_by, created_by.\n\nNeeds one of: receivables.read.","tags":["Receipt instruments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","recorded","discarded"]},"description":"Only rows whose status equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"]},"description":"Only rows whose method equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"check_dated_on","in":"query","required":false,"schema":{"description":"Only rows whose check_dated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose check_dated_on equals this."},{"name":"front_document_id","in":"query","required":false,"schema":{"description":"Only rows whose front_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose front_document_id equals this."},{"name":"back_document_id","in":"query","required":false,"schema":{"description":"Only rows whose back_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose back_document_id equals this."},{"name":"capture_method","in":"query","required":false,"schema":{"description":"Only rows whose capture_method equals this.","type":"string","enum":["manual","photo","scanner"]},"description":"Only rows whose capture_method equals this."},{"name":"cash_receipt_document_id","in":"query","required":false,"schema":{"description":"Only rows whose cash_receipt_document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cash_receipt_document_id equals this."},{"name":"duplicate_of_instrument_id","in":"query","required":false,"schema":{"description":"Only rows whose duplicate_of_instrument_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose duplicate_of_instrument_id equals this."},{"name":"duplicate_overridden_by","in":"query","required":false,"schema":{"description":"Only rows whose duplicate_overridden_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose duplicate_overridden_by equals this."},{"name":"ocr_status","in":"query","required":false,"schema":{"description":"Only rows whose ocr_status equals this.","type":"string","enum":["not_requested","processing","completed","failed"]},"description":"Only rows whose ocr_status equals this."},{"name":"ocr_check_dated_on","in":"query","required":false,"schema":{"description":"Only rows whose ocr_check_dated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ocr_check_dated_on equals this."},{"name":"ocr_is_endorsed","in":"query","required":false,"schema":{"description":"Only rows whose ocr_is_endorsed equals this.","type":"boolean"},"description":"Only rows whose ocr_is_endorsed equals this."},{"name":"ocr_is_signed","in":"query","required":false,"schema":{"description":"Only rows whose ocr_is_signed equals this.","type":"boolean"},"description":"Only rows whose ocr_is_signed equals this."},{"name":"reviewed_by","in":"query","required":false,"schema":{"description":"Only rows whose reviewed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reviewed_by equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_instruments/{id}":{"get":{"operationId":"get_receipt_instruments_row","summary":"Get a receipt instrument","description":"The paper behind offline tenant receipts (check, money order, cashier's check or cash): one row per piece of paper (or cash handover). One instrument can pay several leases (a parent paying two units, a housing authority check): its receipts are listed in receipt_instrument_receipts. Holds what QuickBooks keeps for a received check (number, date, drawer bank, routing, account last 4, masked MICR line, memo line, front/back photos) plus the AI check-scan suggestions (ocr_* columns) the user confirms. Starts as a draft (check scan, payment batch line) and becomes recorded when record_offl\n\nOne row of receipt instruments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Receipt instruments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_refunds":{"get":{"operationId":"list_receipt_refunds","summary":"List receipt refunds","description":"Partial refunds of a receipt back to the payer (processor refund, or a refund check for an overpayment). the refunded money is first taken from the unapplied part, then by unapplying allocations (newest first).\n\nPages through the receipt refunds table of the organization, oldest first. Filters: id, receipt_id, lease_id, property_id, refunded_on, journal_entry_id, bank_account_id, transfer_receipt_id, reversed_on, reversal_journal_entry_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Receipt refunds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose receipt_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"refunded_on","in":"query","required":false,"schema":{"description":"Only rows whose refunded_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose refunded_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"transfer_receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose transfer_receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose transfer_receipt_id equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipt_refunds/{id}":{"get":{"operationId":"get_receipt_refunds_row","summary":"Get a receipt refund","description":"Partial refunds of a receipt back to the payer (processor refund, or a refund check for an overpayment). the refunded money is first taken from the unapplied part, then by unapplying allocations (newest first).\n\nOne row of receipt refunds by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Receipt refunds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/receipts/{id}":{"get":{"operationId":"get_receipts_row","summary":"Get a receipt","description":"Money received from a tenant (or a contact without a lease): check, cash, money order, ACH, card, retail cash barcode, or a security deposit applied at move-out. Applied to charges through receipt_allocations; any unapplied part sits in PREPAID_RENT (view receipt_balances).\n\nOne row of receipts by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Receipts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/recurring_bill_lines":{"get":{"operationId":"list_recurring_bill_lines","summary":"List recurring bill lines","description":"Template lines copied onto each generated bill.\n\nPages through the recurring bill lines table of the organization, oldest first. Filters: id, recurring_bill_id, gl_account_id, property_id, unit_id.\n\nNeeds one of: payables.write.","tags":["Recurring bill lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"recurring_bill_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_bill_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/recurring_bill_lines/{id}":{"get":{"operationId":"get_recurring_bill_lines_row","summary":"Get a recurring bill line","description":"Template lines copied onto each generated bill.\n\nOne row of recurring bill lines by id, with every column the API shows.\n\nNeeds one of: payables.write.","tags":["Recurring bill lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/recurring_bills":{"get":{"operationId":"list_recurring_bills","summary":"List recurring bills","description":"Bills that repeat on a schedule (service contracts, HOA dues, insurance installments, lawn care).\n\nPages through the recurring bills table of the organization, oldest first. Filters: id, vendor_id, property_id, frequency, effective_on, ends_on, is_auto_submitted, created_by.\n\nNeeds one of: payables.read, payables.write.","tags":["Recurring bills"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["one_time","weekly","biweekly","monthly","quarterly","semiannually","annually"]},"description":"Only rows whose frequency equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"is_auto_submitted","in":"query","required":false,"schema":{"description":"Only rows whose is_auto_submitted equals this.","type":"boolean"},"description":"Only rows whose is_auto_submitted equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","payables.write"]}},"/v1/recurring_bills/{id}":{"get":{"operationId":"get_recurring_bills_row","summary":"Get a recurring bill","description":"Bills that repeat on a schedule (service contracts, HOA dues, insurance installments, lawn care).\n\nOne row of recurring bills by id, with every column the API shows.\n\nNeeds one of: payables.read, payables.write.","tags":["Recurring bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read","payables.write"]},"patch":{"operationId":"update_recurring_bills_row","summary":"Update a recurring bill","description":"Bills that repeat on a schedule (service contracts, HOA dues, insurance installments, lawn care).\n\nChanges the given fields of one row of recurring bills and returns it. Fields left out stay as they are.\n\nNeeds one of: payables.write.","tags":["Recurring bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"frequency":{"type":"string","enum":["one_time","weekly","biweekly","monthly","quarterly","semiannually","annually"],"description":"frequency"},"day_of_month":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bill date day for month-based frequencies (clamped to month end)."},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"due_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Due date = bill date + due_days."},"bill_number_prefix":{"anyOf":[{"type":"string","maxLength":100000,"description":"Generated bill numbers are <prefix>-YYYY-MM-DD (period start); default REC."},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]},"delete":{"operationId":"delete_recurring_bills_row","summary":"Delete a recurring bill","description":"Bills that repeat on a schedule (service contracts, HOA dues, insurance installments, lawn care).\n\nDeletes one row of recurring bills. The database refuses it where other records still need the row.\n\nNeeds one of: payables.write.","tags":["Recurring bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/recurring_charges":{"get":{"operationId":"list_recurring_charges","summary":"List recurring charges","description":"Scheduled charges on a lease (rent, pet rent, parking...). Change rent by ending one row (ends_on) and adding another (effective-dated history).\n\nPages through the recurring charges table of the organization, oldest first. Filters: id, lease_id, property_id, unit_id, contact_id, charge_type_id, frequency, effective_on, ends_on, post_from_on, proration_rule, lease_rent_schedule_id, is_from_rent_schedule, created_by, hap_contract_id, household_certification_id, replaces_schedule_rent.\n\nNeeds one of: receivables.read, receivables.write.","tags":["Recurring charges"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["one_time","weekly","biweekly","monthly","quarterly","semiannually","annually"]},"description":"Only rows whose frequency equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"post_from_on","in":"query","required":false,"schema":{"description":"Only rows whose post_from_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose post_from_on equals this."},{"name":"proration_rule","in":"query","required":false,"schema":{"description":"Only rows whose proration_rule equals this.","type":"string","enum":["none","daily_actual","daily_30"]},"description":"Only rows whose proration_rule equals this."},{"name":"lease_rent_schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_rent_schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_rent_schedule_id equals this."},{"name":"is_from_rent_schedule","in":"query","required":false,"schema":{"description":"Only rows whose is_from_rent_schedule equals this.","type":"boolean"},"description":"Only rows whose is_from_rent_schedule equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"household_certification_id","in":"query","required":false,"schema":{"description":"Only rows whose household_certification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose household_certification_id equals this."},{"name":"replaces_schedule_rent","in":"query","required":false,"schema":{"description":"Only rows whose replaces_schedule_rent equals this.","type":"boolean"},"description":"Only rows whose replaces_schedule_rent equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/recurring_charges/{id}":{"get":{"operationId":"get_recurring_charges_row","summary":"Get a recurring charge","description":"Scheduled charges on a lease (rent, pet rent, parking...). Change rent by ending one row (ends_on) and adding another (effective-dated history).\n\nOne row of recurring charges by id, with every column the API shows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["Recurring charges"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/recurring_journal_lines":{"get":{"operationId":"list_recurring_journal_lines","summary":"List recurring journal lines","description":"Signed: debit positive, credit negative; lines must balance overall and per property fund (checked when the template is saved).\n\nPages through the recurring journal lines table of the organization, oldest first. Filters: id, recurring_journal_id, gl_account_id, property_id, unit_id, owner_id, vendor_id, counterparty_property_id.\n\nNeeds one of: gl.read.","tags":["Recurring journal lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"recurring_journal_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_journal_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_journal_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"counterparty_property_id","in":"query","required":false,"schema":{"description":"Only rows whose counterparty_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose counterparty_property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/recurring_journal_lines/{id}":{"get":{"operationId":"get_recurring_journal_lines_row","summary":"Get a recurring journal line","description":"Signed: debit positive, credit negative; lines must balance overall and per property fund (checked when the template is saved).\n\nOne row of recurring journal lines by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Recurring journal lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/recurring_journal_runs":{"get":{"operationId":"list_recurring_journal_runs","summary":"List recurring journal runs","description":"One posted occurrence of a recurring journal (scheduled_on = its accounting date) and its auto-reversal when the template reverses.\n\nPages through the recurring journal runs table of the organization, oldest first. Filters: id, recurring_journal_id, scheduled_on, journal_entry_id, reversal_journal_entry_id.\n\nNeeds one of: gl.read.","tags":["Recurring journal runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"recurring_journal_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_journal_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_journal_id equals this."},{"name":"scheduled_on","in":"query","required":false,"schema":{"description":"Only rows whose scheduled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose scheduled_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/recurring_journal_runs/{id}":{"get":{"operationId":"get_recurring_journal_runs_row","summary":"Get a recurring journal run","description":"One posted occurrence of a recurring journal (scheduled_on = its accounting date) and its auto-reversal when the template reverses.\n\nOne row of recurring journal runs by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Recurring journal runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/recurring_journals":{"get":{"operationId":"list_recurring_journals","summary":"List recurring journals","description":"Template for a journal entry that repeats (monthly accruals, amortization of prepaid insurance, fixed inter-fund allocations).\n\nPages through the recurring journals table of the organization, oldest first. Filters: id, entry_type, basis, recurrence_unit, starts_on, ends_on, next_run_on, is_auto_reversing, status, created_by.\n\nNeeds one of: gl.read.","tags":["Recurring journals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"entry_type","in":"query","required":false,"schema":{"description":"Only rows whose entry_type equals this.","type":"string","enum":["charge","receipt","receipt_allocation","receipt_reversal","credit","late_fee","nsf_fee","application_fee","convenience_fee","payment_plan","write_off","refund","chargeback","deposit_refund","security_deposit_disposition","bank_deposit","deposit_transfer","bank_transfer","inter_fund_transfer","processor_payout","processor_fee","bill","bill_payment","vendor_credit","owner_contribution","owner_distribution","owner_reserve","management_fee","leasing_fee","accrual","depreciation","opening_balance","period_close","adjustment","other","lease_transfer","prior_period_adjustment"]},"description":"Only rows whose entry_type equals this."},{"name":"basis","in":"query","required":false,"schema":{"description":"Only rows whose basis equals this.","type":"string","enum":["both","accrual","cash"]},"description":"Only rows whose basis equals this."},{"name":"recurrence_unit","in":"query","required":false,"schema":{"description":"Only rows whose recurrence_unit equals this.","type":"string","enum":["day","week","month","year"]},"description":"Only rows whose recurrence_unit equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"next_run_on","in":"query","required":false,"schema":{"description":"Only rows whose next_run_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_run_on equals this."},{"name":"is_auto_reversing","in":"query","required":false,"schema":{"description":"Only rows whose is_auto_reversing equals this.","type":"boolean"},"description":"Only rows whose is_auto_reversing equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["active","paused","ended"]},"description":"Only rows whose status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/recurring_journals/{id}":{"get":{"operationId":"get_recurring_journals_row","summary":"Get a recurring journal","description":"Template for a journal entry that repeats (monthly accruals, amortization of prepaid insurance, fixed inter-fund allocations).\n\nOne row of recurring journals by id, with every column the API shows.\n\nNeeds one of: gl.read.","tags":["Recurring journals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/recurring_repair_alerts":{"get":{"operationId":"list_recurring_repair_alerts","summary":"List recurring repair alerts","description":"Each recurring repair pattern the daily recurring-repairs job found, with the work orders of its latest detection. A new pattern notifies the property's primary manager and the maintenance coordinators once. Work order pages show the patterns that include them.\n\nPages through the recurring repair alerts table of the organization, oldest first. Filters: id, property_id, unit_id, asset_id, category_id, first_detected_on, last_detected_on, dismissed_by.\n\nNeeds one of: maintenance.read.","tags":["Recurring repair alerts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"asset_id","in":"query","required":false,"schema":{"description":"Only rows whose asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose asset_id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"first_detected_on","in":"query","required":false,"schema":{"description":"Only rows whose first_detected_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose first_detected_on equals this."},{"name":"last_detected_on","in":"query","required":false,"schema":{"description":"Only rows whose last_detected_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_detected_on equals this."},{"name":"dismissed_by","in":"query","required":false,"schema":{"description":"Only rows whose dismissed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose dismissed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/recurring_repair_alerts/{id}":{"get":{"operationId":"get_recurring_repair_alerts_row","summary":"Get a recurring repair alert","description":"Each recurring repair pattern the daily recurring-repairs job found, with the work orders of its latest detection. A new pattern notifies the property's primary manager and the maintenance coordinators once. Work order pages show the patterns that include them.\n\nOne row of recurring repair alerts by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Recurring repair alerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/refunds":{"get":{"operationId":"list_refunds","summary":"List refunds","description":"Refund of a succeeded inbound payment back to the payer through the same processor. Requested by staff with payments.refund (request_refund); executed by the Edge Function; on success the ledger is updated (receipt reversed or partially refunded) and the payment becomes refunded / partially_refunded.\n\nPages through the refunds table of the organization, oldest first. Filters: id, payment_transaction_id, reason, status, requested_by, journal_entry_id.\n\nNeeds one of: receivables.read.","tags":["Refunds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_transaction_id equals this."},{"name":"reason","in":"query","required":false,"schema":{"description":"Only rows whose reason equals this.","type":"string","enum":["requested_by_payer","duplicate","overpayment","fraudulent","lease_canceled","other"]},"description":"Only rows whose reason equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","processing","succeeded","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/refunds/{id}":{"get":{"operationId":"get_refunds_row","summary":"Get a refund","description":"Refund of a succeeded inbound payment back to the payer through the same processor. Requested by staff with payments.refund (request_refund); executed by the Edge Function; on success the ledger is updated (receipt reversed or partially refunded) and the payment becomes refunded / partially_refunded.\n\nOne row of refunds by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Refunds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/regulatory_agreement_covenants":{"get":{"operationId":"list_regulatory_agreement_covenants","summary":"List regulatory agreement covenants","description":"An affordability covenant: unit_pct percent of the units (or unit_count units) for households at or below ami_pct percent of area median income.\n\nPages through the regulatory agreement covenants table of the organization, oldest first. Filters: id, property_id, regulatory_agreement_id.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Regulatory agreement covenants"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"regulatory_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose regulatory_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose regulatory_agreement_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_regulatory_agreement_covenants_row","summary":"Create a regulatory agreement covenant","description":"An affordability covenant: unit_pct percent of the units (or unit_count units) for households at or below ami_pct percent of area median income.\n\nInserts one row of regulatory agreement covenants in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Regulatory agreement covenants"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"regulatory_agreement_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"regulatory agreement id"},"unit_pct":{"type":"number","description":"unit pct"},"ami_pct":{"type":"number","description":"ami pct"},"unit_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"unit count"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["property_id","regulatory_agreement_id","unit_pct","ami_pct"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/regulatory_agreement_covenants/{id}":{"get":{"operationId":"get_regulatory_agreement_covenants_row","summary":"Get a regulatory agreement covenant","description":"An affordability covenant: unit_pct percent of the units (or unit_count units) for households at or below ami_pct percent of area median income.\n\nOne row of regulatory agreement covenants by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Regulatory agreement covenants"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/regulatory_agreement_obligations":{"get":{"operationId":"list_regulatory_agreement_obligations","summary":"List regulatory agreement obligations","description":"A recurring report a regulatory agreement requires (annual owner certification, audited financials, reserve report). The current due date is a compliance item, so the compliance deadlines job sends reminders 60, 30 and 7 days ahead; filing it opens the next one cadence_months later.\n\nPages through the regulatory agreement obligations table of the organization, oldest first. Filters: id, property_id, regulatory_agreement_id, kind, next_due_on, last_completed_on, compliance_item_id, is_active.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Regulatory agreement obligations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"regulatory_agreement_id","in":"query","required":false,"schema":{"description":"Only rows whose regulatory_agreement_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose regulatory_agreement_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["annual_owner_certification","audited_financials","reserve_report","rent_roll","other"]},"description":"Only rows whose kind equals this."},{"name":"next_due_on","in":"query","required":false,"schema":{"description":"Only rows whose next_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose next_due_on equals this."},{"name":"last_completed_on","in":"query","required":false,"schema":{"description":"Only rows whose last_completed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_completed_on equals this."},{"name":"compliance_item_id","in":"query","required":false,"schema":{"description":"Only rows whose compliance_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose compliance_item_id equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/regulatory_agreement_obligations/{id}":{"get":{"operationId":"get_regulatory_agreement_obligations_row","summary":"Get a regulatory agreement obligation","description":"A recurring report a regulatory agreement requires (annual owner certification, audited financials, reserve report). The current due date is a compliance item, so the compliance deadlines job sends reminders 60, 30 and 7 days ahead; filing it opens the next one cadence_months later.\n\nOne row of regulatory agreement obligations by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Regulatory agreement obligations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/regulatory_agreements":{"get":{"operationId":"list_regulatory_agreements","summary":"List regulatory agreements","description":"A recorded agreement that restricts a property: HPD or HDC regulatory agreement, HUD use agreement, LIHTC extended use agreement or tax abatement, with its term, affordability covenants, recurring reports and required replacement reserve deposit.\n\nPages through the regulatory agreements table of the organization, oldest first. Filters: id, property_id, agency, agreement_type, starts_on, ends_on, housing_program_id, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Regulatory agreements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"agency","in":"query","required":false,"schema":{"description":"Only rows whose agency equals this.","type":"string","enum":["hpd","hdc","hcr","hud","hfa","other"]},"description":"Only rows whose agency equals this."},{"name":"agreement_type","in":"query","required":false,"schema":{"description":"Only rows whose agreement_type equals this.","type":"string","enum":["regulatory_agreement","use_agreement","lihtc_extended_use","tax_abatement","other"]},"description":"Only rows whose agreement_type equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_regulatory_agreements_row","summary":"Create a regulatory agreement","description":"A recorded agreement that restricts a property: HPD or HDC regulatory agreement, HUD use agreement, LIHTC extended use agreement or tax abatement, with its term, affordability covenants, recurring reports and required replacement reserve deposit.\n\nInserts one row of regulatory agreements in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Regulatory agreements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"agency":{"type":"string","enum":["hpd","hdc","hcr","hud","hfa","other"],"description":"agency"},"agreement_type":{"type":"string","enum":["regulatory_agreement","use_agreement","lihtc_extended_use","tax_abatement","other"],"description":"agreement type"},"name":{"type":"string","maxLength":100000,"description":"name"},"reference_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference number"},{"type":"null"}]},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"housing_program_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},{"type":"null"}]},"required_reserve_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly replacement reserve deposit the agreement requires; compared with posted deposits in property_reserve_transactions."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["property_id","agency","agreement_type","name","starts_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/regulatory_agreements/{id}":{"get":{"operationId":"get_regulatory_agreements_row","summary":"Get a regulatory agreement","description":"A recorded agreement that restricts a property: HPD or HDC regulatory agreement, HUD use agreement, LIHTC extended use agreement or tax abatement, with its term, affordability covenants, recurring reports and required replacement reserve deposit.\n\nOne row of regulatory agreements by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Regulatory agreements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/reminders":{"get":{"operationId":"list_reminders","summary":"List reminders","description":"One-off scheduled nudges (\"remind me to call back tomorrow 9am\", \"remind the tenant 1 hour before the visit\"). Recurring automated reminders are notification_rules.\n\nPages through the reminders table of the organization, oldest first. Filters: id, recipient_user_id, recipient_contact_id, task_id, calendar_event_id, lease_id, work_order_id, conversation_id, status, notification_id, created_by.\n\nNeeds one of: communications.read, communications.write.","tags":["Reminders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"recipient_user_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_user_id equals this."},{"name":"recipient_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_contact_id equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"calendar_event_id","in":"query","required":false,"schema":{"description":"Only rows whose calendar_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose calendar_event_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["scheduled","sent","canceled","failed"]},"description":"Only rows whose status equals this."},{"name":"notification_id","in":"query","required":false,"schema":{"description":"Only rows whose notification_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose notification_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read","communications.write"]}},"/v1/reminders/{id}":{"get":{"operationId":"get_reminders_row","summary":"Get a reminder","description":"One-off scheduled nudges (\"remind me to call back tomorrow 9am\", \"remind the tenant 1 hour before the visit\"). Recurring automated reminders are notification_rules.\n\nOne row of reminders by id, with every column the API shows.\n\nNeeds one of: communications.read, communications.write.","tags":["Reminders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read","communications.write"]}},"/v1/renewal_offer_terms":{"get":{"operationId":"list_renewal_offer_terms","summary":"List renewal offer terms","description":"Options within a renewal offer, e.g. 6 months at $1,850, 12 months at $1,800, month-to-month at $1,950.\n\nPages through the renewal offer terms table of the organization, oldest first. Filters: id, renewal_offer_id, lease_type, is_recommended.\n\nNeeds one of: leasing.write.","tags":["Renewal offer terms"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"renewal_offer_id","in":"query","required":false,"schema":{"description":"Only rows whose renewal_offer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renewal_offer_id equals this."},{"name":"lease_type","in":"query","required":false,"schema":{"description":"Only rows whose lease_type equals this.","type":"string","enum":["fixed_term","month_to_month"]},"description":"Only rows whose lease_type equals this."},{"name":"is_recommended","in":"query","required":false,"schema":{"description":"Only rows whose is_recommended equals this.","type":"boolean"},"description":"Only rows whose is_recommended equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/renewal_offer_terms/{id}":{"get":{"operationId":"get_renewal_offer_terms_row","summary":"Get a renewal offer term","description":"Options within a renewal offer, e.g. 6 months at $1,850, 12 months at $1,800, month-to-month at $1,950.\n\nOne row of renewal offer terms by id, with every column the API shows.\n\nNeeds one of: leasing.write.","tags":["Renewal offer terms"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/renovation_notices":{"get":{"operationId":"list_renovation_notices","summary":"List renovation notices","description":"A notice given to the household of a renovation unit: its kind, the date sent and how (hand, mail, email or posted).\n\nPages through the renovation notices table of the organization, oldest first. Filters: id, renovation_unit_id, notice_type, sent_on, created_by.\n\nNeeds one of: projects.read.","tags":["Renovation notices"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"renovation_unit_id","in":"query","required":false,"schema":{"description":"Only rows whose renovation_unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renovation_unit_id equals this."},{"name":"notice_type","in":"query","required":false,"schema":{"description":"Only rows whose notice_type equals this.","type":"string","enum":["advance","access","relocation","return","other"]},"description":"Only rows whose notice_type equals this."},{"name":"sent_on","in":"query","required":false,"schema":{"description":"Only rows whose sent_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sent_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/renovation_notices/{id}":{"get":{"operationId":"get_renovation_notices_row","summary":"Get a renovation notice","description":"A notice given to the household of a renovation unit: its kind, the date sent and how (hand, mail, email or posted).\n\nOne row of renovation notices by id, with every column the API shows.\n\nNeeds one of: projects.read.","tags":["Renovation notices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/renovation_relocations":{"get":{"operationId":"list_renovation_relocations","summary":"List renovation relocations","description":"A household's temporary move during its unit's renovation: hotel or vacant unit, move-out, planned and actual return, the nightly room cost and the daily per diem owed, and the per diem paid so far. A night is each date from move_out_on up to the day before the return.\n\nPages through the renovation relocations table of the organization, oldest first. Filters: id, renovation_unit_id, kind, temp_unit_id, move_out_on, planned_return_on, returned_on, created_by.\n\nNeeds one of: projects.read.","tags":["Renovation relocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"renovation_unit_id","in":"query","required":false,"schema":{"description":"Only rows whose renovation_unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose renovation_unit_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["hotel","vacant_unit","other"]},"description":"Only rows whose kind equals this."},{"name":"temp_unit_id","in":"query","required":false,"schema":{"description":"Only rows whose temp_unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose temp_unit_id equals this."},{"name":"move_out_on","in":"query","required":false,"schema":{"description":"Only rows whose move_out_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose move_out_on equals this."},{"name":"planned_return_on","in":"query","required":false,"schema":{"description":"Only rows whose planned_return_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose planned_return_on equals this."},{"name":"returned_on","in":"query","required":false,"schema":{"description":"Only rows whose returned_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose returned_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/renovation_relocations/{id}":{"get":{"operationId":"get_renovation_relocations_row","summary":"Get a renovation relocation","description":"A household's temporary move during its unit's renovation: hotel or vacant unit, move-out, planned and actual return, the nightly room cost and the daily per diem owed, and the per diem paid so far. A night is each date from move_out_on up to the day before the return.\n\nOne row of renovation relocations by id, with every column the API shows.\n\nNeeds one of: projects.read.","tags":["Renovation relocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/renovation_units":{"get":{"operationId":"list_renovation_units","summary":"List renovation units","description":"One unit's work in a capital project done with the tenant in place: scope, planned and actual start and finish, status, and the lease of the household living there when it was scheduled.\n\nPages through the renovation units table of the organization, oldest first. Filters: id, capital_project_id, property_id, unit_id, lease_id, planned_start_on, planned_finish_on, actual_start_on, actual_finish_on, status, created_by.\n\nNeeds one of: projects.read.","tags":["Renovation units"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"planned_start_on","in":"query","required":false,"schema":{"description":"Only rows whose planned_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose planned_start_on equals this."},{"name":"planned_finish_on","in":"query","required":false,"schema":{"description":"Only rows whose planned_finish_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose planned_finish_on equals this."},{"name":"actual_start_on","in":"query","required":false,"schema":{"description":"Only rows whose actual_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose actual_start_on equals this."},{"name":"actual_finish_on","in":"query","required":false,"schema":{"description":"Only rows whose actual_finish_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose actual_finish_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["scheduled","in_progress","done","canceled"]},"description":"Only rows whose status equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/renovation_units/{id}":{"get":{"operationId":"get_renovation_units_row","summary":"Get a renovation unit","description":"One unit's work in a capital project done with the tenant in place: scope, planned and actual start and finish, status, and the lease of the household living there when it was scheduled.\n\nOne row of renovation units by id, with every column the API shows.\n\nNeeds one of: projects.read.","tags":["Renovation units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/rent_comparability_studies":{"get":{"operationId":"list_rent_comparability_studies","summary":"List rent comparability studies","description":"A rent comparability study (RCS) by an appraiser: comparable market rents per bedroom size at a property, used to choose between renewal options 1 and 2 and to set marked-up rents.\n\nPages through the rent comparability studies table of the organization, oldest first. Filters: id, property_id, hap_contract_id, effective_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Rent comparability studies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"hap_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose hap_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose hap_contract_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/rent_comparability_studies/{id}":{"get":{"operationId":"get_rent_comparability_studies_row","summary":"Get a rent comparability study","description":"A rent comparability study (RCS) by an appraiser: comparable market rents per bedroom size at a property, used to choose between renewal options 1 and 2 and to set marked-up rents.\n\nOne row of rent comparability studies by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Rent comparability studies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/rent_comparability_study_rents":{"get":{"operationId":"list_rent_comparability_study_rents","summary":"List rent comparability study rents","description":"Comparable monthly market rent for one bedroom size in a rent comparability study (0 = studio).\n\nPages through the rent comparability study rents table of the organization, oldest first. Filters: id, property_id, rent_comparability_study_id.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Rent comparability study rents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"rent_comparability_study_id","in":"query","required":false,"schema":{"description":"Only rows whose rent_comparability_study_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rent_comparability_study_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/rent_comparability_study_rents/{id}":{"get":{"operationId":"get_rent_comparability_study_rents_row","summary":"Get a rent comparability study rent","description":"Comparable monthly market rent for one bedroom size in a rent comparability study (0 = studio).\n\nOne row of rent comparability study rents by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Rent comparability study rents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]}},"/v1/rent_escalation_steps":{"get":{"operationId":"list_rent_escalation_steps","summary":"List rent escalation steps","description":"Each scheduled rent increase of a rent_escalation with the resulting monthly amount. stepped escalations are entered by hand; others are generated by generate_rent_escalation_steps. CPI steps stay pending_index until the index value is published. Applied by apply_rent_escalation_step / apply_due_rent_escalations.\n\nPages through the rent escalation steps table of the organization, oldest first. Filters: id, property_id, rent_escalation_id, lease_id, effective_on, cpi_index_month, status, recurring_charge_id, applied_by.\n\nNeeds one of: leasing.read.","tags":["Rent escalation steps"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"rent_escalation_id","in":"query","required":false,"schema":{"description":"Only rows whose rent_escalation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rent_escalation_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"cpi_index_month","in":"query","required":false,"schema":{"description":"Only rows whose cpi_index_month equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cpi_index_month equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["scheduled","pending_index","applied","skipped"]},"description":"Only rows whose status equals this."},{"name":"recurring_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose recurring_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recurring_charge_id equals this."},{"name":"applied_by","in":"query","required":false,"schema":{"description":"Only rows whose applied_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose applied_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/rent_escalation_steps/{id}":{"get":{"operationId":"get_rent_escalation_steps_row","summary":"Get a rent escalation step","description":"Each scheduled rent increase of a rent_escalation with the resulting monthly amount. stepped escalations are entered by hand; others are generated by generate_rent_escalation_steps. CPI steps stay pending_index until the index value is published. Applied by apply_rent_escalation_step / apply_due_rent_escalations.\n\nOne row of rent escalation steps by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Rent escalation steps"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/rent_escalations":{"get":{"operationId":"list_rent_escalations","summary":"List rent escalations","description":"Rule that increases a recurring charge (usually base rent) over the term: fixed amount, fixed percent, CPI-indexed (with floor / ceiling), a manual stepped schedule, or fair market value resets. Concrete increases are rent_escalation_steps. Applying a base rent (RENT) step schedules the new rent in lease_rent_schedules and re-syncs the lease's RENT recurring charges from it; applying a step of another charge type ends that recurring charge and starts a new one.\n\nPages through the rent escalations table of the organization, oldest first. Filters: id, property_id, lease_id, charge_type_id, escalation_type, first_effective_on, last_effective_on, cpi_base_month, updates_lease_rent, is_active, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Rent escalations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"escalation_type","in":"query","required":false,"schema":{"description":"Only rows whose escalation_type equals this.","type":"string","enum":["fixed_amount","fixed_percent","cpi","stepped","fair_market_value"]},"description":"Only rows whose escalation_type equals this."},{"name":"first_effective_on","in":"query","required":false,"schema":{"description":"Only rows whose first_effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose first_effective_on equals this."},{"name":"last_effective_on","in":"query","required":false,"schema":{"description":"Only rows whose last_effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_effective_on equals this."},{"name":"cpi_base_month","in":"query","required":false,"schema":{"description":"Only rows whose cpi_base_month equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cpi_base_month equals this."},{"name":"updates_lease_rent","in":"query","required":false,"schema":{"description":"Only rows whose updates_lease_rent equals this.","type":"boolean"},"description":"Only rows whose updates_lease_rent equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/rent_escalations/{id}":{"get":{"operationId":"get_rent_escalations_row","summary":"Get a rent escalation","description":"Rule that increases a recurring charge (usually base rent) over the term: fixed amount, fixed percent, CPI-indexed (with floor / ceiling), a manual stepped schedule, or fair market value resets. Concrete increases are rent_escalation_steps. Applying a base rent (RENT) step schedules the new rent in lease_rent_schedules and re-syncs the lease's RENT recurring charges from it; applying a step of another charge type ends that recurring charge and starts a new one.\n\nOne row of rent escalations by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Rent escalations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/rent_freeze_benefits":{"get":{"operationId":"list_rent_freeze_benefits","summary":"List rent freeze benefits","description":"NYC Rent Freeze Program benefits on a tenancy: SCRIE (senior citizen) or DRIE (disability). The tenant pays the frozen rent; the owner receives the difference from the lease rent as a property tax abatement credit from the Department of Finance (TAC).\n\nPages through the rent freeze benefits table of the organization, oldest first. Filters: id, property_id, unit_id, lease_id, contact_id, approved_on, effective_on, expires_on, created_by.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Rent freeze benefits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"approved_on","in":"query","required":false,"schema":{"description":"Only rows whose approved_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose approved_on equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_rent_freeze_benefits_row","summary":"Create a rent freeze benefit","description":"NYC Rent Freeze Program benefits on a tenancy: SCRIE (senior citizen) or DRIE (disability). The tenant pays the frozen rent; the owner receives the difference from the lease rent as a property tax abatement credit from the Department of Finance (TAC).\n\nInserts one row of rent freeze benefits in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Rent freeze benefits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease the benefit was recorded on. Renewals of that lease continue it until expires_on."},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"benefit_type":{"type":"string","maxLength":100000,"description":"benefit type"},"frozen_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly rent the tenant pays while the benefit is in force."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day of the benefit period on the Department of Finance approval."},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"certificate_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Tax Abatement Certificate (TAC) number from the Department of Finance."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","unit_id","lease_id","benefit_type","frozen_rent_cents","effective_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/rent_freeze_benefits/{id}":{"get":{"operationId":"get_rent_freeze_benefits_row","summary":"Get a rent freeze benefit","description":"NYC Rent Freeze Program benefits on a tenancy: SCRIE (senior citizen) or DRIE (disability). The tenant pays the frozen rent; the owner receives the difference from the lease rent as a property tax abatement credit from the Department of Finance (TAC).\n\nOne row of rent freeze benefits by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Rent freeze benefits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_rent_freeze_benefits_row","summary":"Update a rent freeze benefit","description":"NYC Rent Freeze Program benefits on a tenancy: SCRIE (senior citizen) or DRIE (disability). The tenant pays the frozen rent; the owner receives the difference from the lease rent as a property tax abatement credit from the Department of Finance (TAC).\n\nChanges the given fields of one row of rent freeze benefits and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Rent freeze benefits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease the benefit was recorded on. Renewals of that lease continue it until expires_on."},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"benefit_type":{"type":"string","maxLength":100000,"description":"benefit type"},"frozen_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Monthly rent the tenant pays while the benefit is in force."},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"First day of the benefit period on the Department of Finance approval."},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"certificate_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"Tax Abatement Certificate (TAC) number from the Department of Finance."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/rent_guidelines_orders":{"get":{"operationId":"list_rent_guidelines_orders","summary":"List rent guidelines orders","description":"NYC Rent Guidelines Board orders: the most a rent-stabilized lease may rise on renewal, for leases starting between lease_starts_on and lease_starts_through. Seeded per org with Orders 56-58; staff add each new order after the June vote.\n\nPages through the rent guidelines orders table of the organization, oldest first. Filters: id, lease_starts_on, lease_starts_through, created_by.\n\nNeeds one of: affordable.read, affordable.write, leasing.read.","tags":["Rent guidelines orders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_starts_on","in":"query","required":false,"schema":{"description":"Only rows whose lease_starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose lease_starts_on equals this."},{"name":"lease_starts_through","in":"query","required":false,"schema":{"description":"Only rows whose lease_starts_through equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose lease_starts_through equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write","leasing.read"]},"post":{"operationId":"create_rent_guidelines_orders_row","summary":"Create a rent guidelines order","description":"NYC Rent Guidelines Board orders: the most a rent-stabilized lease may rise on renewal, for leases starting between lease_starts_on and lease_starts_through. Seeded per org with Orders 56-58; staff add each new order after the June vote.\n\nInserts one row of rent guidelines orders in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Rent guidelines orders"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"order_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"order number"},"lease_starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"lease starts on"},"lease_starts_through":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"lease starts through"},"one_year_pct":{"type":"number","description":"Allowed increase in percent for a 1-year renewal lease."},"two_year_pct":{"type":"number","description":"Allowed increase in percent for a 2-year renewal lease."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["order_number","lease_starts_on","lease_starts_through","one_year_pct","two_year_pct"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/rent_guidelines_orders/{id}":{"get":{"operationId":"get_rent_guidelines_orders_row","summary":"Get a rent guidelines order","description":"NYC Rent Guidelines Board orders: the most a rent-stabilized lease may rise on renewal, for leases starting between lease_starts_on and lease_starts_through. Seeded per org with Orders 56-58; staff add each new order after the June vote.\n\nOne row of rent guidelines orders by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write, leasing.read.","tags":["Rent guidelines orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write","leasing.read"]},"patch":{"operationId":"update_rent_guidelines_orders_row","summary":"Update a rent guidelines order","description":"NYC Rent Guidelines Board orders: the most a rent-stabilized lease may rise on renewal, for leases starting between lease_starts_on and lease_starts_through. Seeded per org with Orders 56-58; staff add each new order after the June vote.\n\nChanges the given fields of one row of rent guidelines orders and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Rent guidelines orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"order_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"order number"},"lease_starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"lease starts on"},"lease_starts_through":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"lease starts through"},"one_year_pct":{"type":"number","description":"Allowed increase in percent for a 1-year renewal lease."},"two_year_pct":{"type":"number","description":"Allowed increase in percent for a 2-year renewal lease."},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/rent_limits":{"get":{"operationId":"list_rent_limits","summary":"List rent limits","description":"Maximum gross monthly rent (tenant-paid rent + utility allowance) by area, year, AMI percentage and bedroom count. For LIHTC this is 30% of the income limit imputed at 1.5 persons per bedroom / 12.\n\nPages through the rent limits table of the organization, oldest first. Filters: id, income_limit_area_id, source, effective_on.\n\nNeeds one of: affordable.write.","tags":["Rent limits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"income_limit_area_id","in":"query","required":false,"schema":{"description":"Only rows whose income_limit_area_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose income_limit_area_id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["hud","mtsp","hera_special","rd","home","state","local"]},"description":"Only rows whose source equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/rent_limits/{id}":{"get":{"operationId":"get_rent_limits_row","summary":"Get a rent limit","description":"Maximum gross monthly rent (tenant-paid rent + utility allowance) by area, year, AMI percentage and bedroom count. For LIHTC this is 30% of the income limit imputed at 1.5 persons per bedroom / 12.\n\nOne row of rent limits by id, with every column the API shows.\n\nNeeds one of: affordable.write.","tags":["Rent limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/rent_reporting_batch_items":{"get":{"operationId":"list_rent_reporting_batch_items","summary":"List rent reporting batch items","description":"What was furnished for one tenant for the month: snapshot amounts as reported (derived from charges and allocations at generation time; the live figures stay in the ledger).\n\nPages through the rent reporting batch items table of the organization, oldest first. Filters: id, rent_reporting_batch_id, rent_reporting_enrollment_id, lease_id, contact_id, last_payment_on, account_status, status.\n\nNeeds one of: receivables.read.","tags":["Rent reporting batch items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"rent_reporting_batch_id","in":"query","required":false,"schema":{"description":"Only rows whose rent_reporting_batch_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rent_reporting_batch_id equals this."},{"name":"rent_reporting_enrollment_id","in":"query","required":false,"schema":{"description":"Only rows whose rent_reporting_enrollment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rent_reporting_enrollment_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"last_payment_on","in":"query","required":false,"schema":{"description":"Only rows whose last_payment_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_payment_on equals this."},{"name":"account_status","in":"query","required":false,"schema":{"description":"Only rows whose account_status equals this.","type":"string","enum":["current","late_30","late_60","late_90","late_120_plus","closed_paid","collection"]},"description":"Only rows whose account_status equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","accepted","rejected"]},"description":"Only rows whose status equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/rent_reporting_batch_items/{id}":{"get":{"operationId":"get_rent_reporting_batch_items_row","summary":"Get a rent reporting batch item","description":"What was furnished for one tenant for the month: snapshot amounts as reported (derived from charges and allocations at generation time; the live figures stay in the ledger).\n\nOne row of rent reporting batch items by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Rent reporting batch items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/rent_reporting_batches":{"get":{"operationId":"list_rent_reporting_batches","summary":"List rent reporting batches","description":"Monthly furnishing file of rent payment history sent to one reporting provider. Items are frozen snapshots of what was reported.\n\nPages through the rent reporting batches table of the organization, oldest first. Filters: id, provider, reporting_month_on, status, generated_by, downloaded_by.\n\nNeeds one of: receivables.read.","tags":["Rent reporting batches"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["esusu","experian_rentbureau","transunion_resident_credit","equifax","boom","rent_reporters","other"]},"description":"Only rows whose provider equals this."},{"name":"reporting_month_on","in":"query","required":false,"schema":{"description":"Only rows whose reporting_month_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reporting_month_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["generated","submitted","accepted","partially_accepted","rejected","canceled"]},"description":"Only rows whose status equals this."},{"name":"generated_by","in":"query","required":false,"schema":{"description":"Only rows whose generated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose generated_by equals this."},{"name":"downloaded_by","in":"query","required":false,"schema":{"description":"Only rows whose downloaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose downloaded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/rent_reporting_batches/{id}":{"get":{"operationId":"get_rent_reporting_batches_row","summary":"Get a rent reporting batch","description":"Monthly furnishing file of rent payment history sent to one reporting provider. Items are frozen snapshots of what was reported.\n\nOne row of rent reporting batches by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Rent reporting batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/rent_reporting_enrollments":{"get":{"operationId":"list_rent_reporting_enrollments","summary":"List rent reporting enrollments","description":"A tenant's consent to have their rent payments furnished to a credit bureau or reporting service (positive rent reporting). Only active enrollments appear in monthly batches.\n\nPages through the rent reporting enrollments table of the organization, oldest first. Filters: id, lease_id, contact_id, provider, status, is_history_backfilled, enrolled_on, created_by.\n\nNeeds one of: receivables.read.","tags":["Rent reporting enrollments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["esusu","experian_rentbureau","transunion_resident_credit","equifax","boom","rent_reporters","other"]},"description":"Only rows whose provider equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending_consent","active","opted_out","canceled"]},"description":"Only rows whose status equals this."},{"name":"is_history_backfilled","in":"query","required":false,"schema":{"description":"Only rows whose is_history_backfilled equals this.","type":"boolean"},"description":"Only rows whose is_history_backfilled equals this."},{"name":"enrolled_on","in":"query","required":false,"schema":{"description":"Only rows whose enrolled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose enrolled_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/rent_reporting_enrollments/{id}":{"get":{"operationId":"get_rent_reporting_enrollments_row","summary":"Get a rent reporting enrollment","description":"A tenant's consent to have their rent payments furnished to a credit bureau or reporting service (positive rent reporting). Only active enrollments appear in monthly batches.\n\nOne row of rent reporting enrollments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Rent reporting enrollments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/rent_reporting_settings":{"get":{"operationId":"list_rent_reporting_settings","summary":"List rent reporting settings","description":"How an org reports rent payments to a credit bureau or reporting service: one row per org, written only by save_rent_reporting_settings.\n\nPages through the rent reporting settings table of the organization, oldest first. Filters: id, is_enabled, provider, reports_late_payments, updated_by.\n\nNeeds one of: receivables.read, settings.write.","tags":["Rent reporting settings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["esusu","experian_rentbureau","transunion_resident_credit","equifax","boom","rent_reporters","other"]},"description":"Only rows whose provider equals this."},{"name":"reports_late_payments","in":"query","required":false,"schema":{"description":"Only rows whose reports_late_payments equals this.","type":"boolean"},"description":"Only rows whose reports_late_payments equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","settings.write"]}},"/v1/rent_reporting_settings/{id}":{"get":{"operationId":"get_rent_reporting_settings_row","summary":"Get a rent reporting setting","description":"How an org reports rent payments to a credit bureau or reporting service: one row per org, written only by save_rent_reporting_settings.\n\nOne row of rent reporting settings by id, with every column the API shows.\n\nNeeds one of: receivables.read, settings.write.","tags":["Rent reporting settings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","settings.write"]}},"/v1/rentable_item_waitlist_entries":{"get":{"operationId":"list_rentable_item_waitlist_entries","summary":"List rentable item waitlist entries","description":"A person waiting for a parking space, garage, storage unit or other rentable item at a property, in line by position. Written only by the waitlist RPCs: add_rentable_item_waitlist_entry, reorder_rentable_item_waitlist_entry, offer_rentable_item_waitlist_entry, assign_rentable_item_waitlist_entry and remove_rentable_item_waitlist_entry.\n\nPages through the rentable item waitlist entries table of the organization, oldest first. Filters: id, property_id, item_type, rentable_item_id, contact_id, lease_id, requested_on, lease_rentable_item_id, created_by.\n\nNeeds one of: leasing.read.","tags":["Rentable item waitlist entries"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"item_type","in":"query","required":false,"schema":{"description":"Only rows whose item_type equals this.","type":"string","enum":["parking_space","garage","carport","storage_unit","bike_storage","boat_slip","rv_space","mailbox","locker","other"]},"description":"Only rows whose item_type equals this."},{"name":"rentable_item_id","in":"query","required":false,"schema":{"description":"Only rows whose rentable_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rentable_item_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"requested_on","in":"query","required":false,"schema":{"description":"Only rows whose requested_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose requested_on equals this."},{"name":"lease_rentable_item_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_rentable_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_rentable_item_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/rentable_item_waitlist_entries/{id}":{"get":{"operationId":"get_rentable_item_waitlist_entries_row","summary":"Get a rentable item waitlist entry","description":"A person waiting for a parking space, garage, storage unit or other rentable item at a property, in line by position. Written only by the waitlist RPCs: add_rentable_item_waitlist_entry, reorder_rentable_item_waitlist_entry, offer_rentable_item_waitlist_entry, assign_rentable_item_waitlist_entry and remove_rentable_item_waitlist_entry.\n\nOne row of rentable item waitlist entries by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Rentable item waitlist entries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/rentable_items":{"get":{"operationId":"list_rentable_items","summary":"List rentable items","description":"Non-dwelling things rented separately or assigned with a unit: parking spaces, garages, storage lockers, boat slips. Assignment to a lease and the monthly charge live in leasing/receivables.\n\nPages through the rentable items table of the organization, oldest first. Filters: id, property_id, building_id, unit_id, item_type, status, is_covered, has_ev_charger.\n\nNeeds one of: properties.read, properties.write.","tags":["Rentable items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"item_type","in":"query","required":false,"schema":{"description":"Only rows whose item_type equals this.","type":"string","enum":["parking_space","garage","carport","storage_unit","bike_storage","boat_slip","rv_space","mailbox","locker","other"]},"description":"Only rows whose item_type equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["available","assigned","reserved","out_of_service"]},"description":"Only rows whose status equals this."},{"name":"is_covered","in":"query","required":false,"schema":{"description":"Only rows whose is_covered equals this.","type":"boolean"},"description":"Only rows whose is_covered equals this."},{"name":"has_ev_charger","in":"query","required":false,"schema":{"description":"Only rows whose has_ev_charger equals this.","type":"boolean"},"description":"Only rows whose has_ev_charger equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_rentable_items_row","summary":"Create a rentable item","description":"Non-dwelling things rented separately or assigned with a unit: parking spaces, garages, storage lockers, boat slips. Assignment to a lease and the monthly charge live in leasing/receivables.\n\nInserts one row of rentable items in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Rentable items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Unit this item is permanently tied to (deeded parking, attached garage); null = assignable to any lease."},{"type":"null"}]},"item_type":{"type":"string","enum":["parking_space","garage","carport","storage_unit","bike_storage","boat_slip","rv_space","mailbox","locker","other"],"description":"item type"},"label":{"type":"string","maxLength":100000,"description":"label"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"market_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Standard monthly price."},{"type":"null"}]},"is_covered":{"anyOf":[{"type":"boolean","description":"is covered"},{"type":"null"}]},"has_ev_charger":{"type":"boolean","description":"has ev charger"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"size_label":{"anyOf":[{"type":"string","maxLength":100000,"description":"Size as people say it, e.g. 10x10, compact or tandem."},{"type":"null"}]},"length_ft":{"anyOf":[{"type":"number","description":"Length in feet."},{"type":"null"}]},"width_ft":{"anyOf":[{"type":"number","description":"Width in feet."},{"type":"null"}]},"area_sqft":{"anyOf":[{"type":"number","description":"Floor area in square feet."},{"type":"null"}]}},"required":["property_id","item_type","label"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/rentable_items/{id}":{"get":{"operationId":"get_rentable_items_row","summary":"Get a rentable item","description":"Non-dwelling things rented separately or assigned with a unit: parking spaces, garages, storage lockers, boat slips. Assignment to a lease and the monthly charge live in leasing/receivables.\n\nOne row of rentable items by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Rentable items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_rentable_items_row","summary":"Update a rentable item","description":"Non-dwelling things rented separately or assigned with a unit: parking spaces, garages, storage lockers, boat slips. Assignment to a lease and the monthly charge live in leasing/receivables.\n\nChanges the given fields of one row of rentable items and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Rentable items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Unit this item is permanently tied to (deeded parking, attached garage); null = assignable to any lease."},{"type":"null"}]},"item_type":{"type":"string","enum":["parking_space","garage","carport","storage_unit","bike_storage","boat_slip","rv_space","mailbox","locker","other"],"description":"item type"},"label":{"type":"string","maxLength":100000,"description":"label"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"market_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Standard monthly price."},{"type":"null"}]},"is_covered":{"anyOf":[{"type":"boolean","description":"is covered"},{"type":"null"}]},"has_ev_charger":{"type":"boolean","description":"has ev charger"},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]},"size_label":{"anyOf":[{"type":"string","maxLength":100000,"description":"Size as people say it, e.g. 10x10, compact or tandem."},{"type":"null"}]},"length_ft":{"anyOf":[{"type":"number","description":"Length in feet."},{"type":"null"}]},"width_ft":{"anyOf":[{"type":"number","description":"Width in feet."},{"type":"null"}]},"area_sqft":{"anyOf":[{"type":"number","description":"Floor area in square feet."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/report_schedule_recipients":{"get":{"operationId":"list_report_schedule_recipients","summary":"List report schedule recipients","description":"Staff who get a scheduled report email. a recipient who lost access is skipped. The email goes to their profile email and holds the report as they would see it.\n\nPages through the report schedule recipients table of the organization, oldest first. Filters: id, schedule_id, user_id.\n\nNeeds one of: reports.read.","tags":["Report schedule recipients"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"schedule_id","in":"query","required":false,"schema":{"description":"Only rows whose schedule_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose schedule_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/report_schedule_recipients/{id}":{"get":{"operationId":"get_report_schedule_recipients_row","summary":"Get a report schedule recipient","description":"Staff who get a scheduled report email. a recipient who lost access is skipped. The email goes to their profile email and holds the report as they would see it.\n\nOne row of report schedule recipients by id, with every column the API shows.\n\nNeeds one of: reports.read.","tags":["Report schedule recipients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/report_schedules":{"get":{"operationId":"list_report_schedules","summary":"List report schedules","description":"Emails one saved report on a schedule, as CSV and PDF, to the staff in report_schedule_recipients. The report runs once per recipient as that recipient, with their permissions and property access. One schedule per saved report. Written only through set_report_schedule and delete_report_schedule; the report-schedules job claims and finishes runs through the private.*report_schedule* functions.\n\nPages through the report schedules table of the organization, oldest first. Filters: id, saved_report_id, user_id, frequency, is_active.\n\nNeeds one of: reports.read.","tags":["Report schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"saved_report_id","in":"query","required":false,"schema":{"description":"Only rows whose saved_report_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose saved_report_id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"frequency","in":"query","required":false,"schema":{"description":"Only rows whose frequency equals this.","type":"string","enum":["daily","weekly","monthly"]},"description":"Only rows whose frequency equals this."},{"name":"is_active","in":"query","required":false,"schema":{"description":"Only rows whose is_active equals this.","type":"boolean"},"description":"Only rows whose is_active equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/report_schedules/{id}":{"get":{"operationId":"get_report_schedules_row","summary":"Get a report schedule","description":"Emails one saved report on a schedule, as CSV and PDF, to the staff in report_schedule_recipients. The report runs once per recipient as that recipient, with their permissions and property access. One schedule per saved report. Written only through set_report_schedule and delete_report_schedule; the report-schedules job claims and finishes runs through the private.*report_schedule* functions.\n\nOne row of report schedules by id, with every column the API shows.\n\nNeeds one of: reports.read.","tags":["Report schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/resale_fee_caps":{"get":{"operationId":"list_resale_fee_caps","summary":"List resale fee caps","description":"Statutory limits per state for resale documents: the highest fee and the highest rush fee (added to the fee for faster delivery) an association may charge and the longest turnaround the law allows. Null = no limit stored. association_resale_offerings must stay within them.\n\nPages through the resale fee caps table of the organization, oldest first. Filters: id, document_type, created_by.\n\nNeeds one of: associations.read.","tags":["Resale fee caps"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"document_type","in":"query","required":false,"schema":{"description":"Only rows whose document_type equals this.","type":"string","enum":["resale_certificate","estoppel_letter","lender_questionnaire"]},"description":"Only rows whose document_type equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/resale_fee_caps/{id}":{"get":{"operationId":"get_resale_fee_caps_row","summary":"Get a resale fee cap","description":"Statutory limits per state for resale documents: the highest fee and the highest rush fee (added to the fee for faster delivery) an association may charge and the longest turnaround the law allows. Null = no limit stored. association_resale_offerings must stay within them.\n\nOne row of resale fee caps by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Resale fee caps"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/resale_request_documents":{"get":{"operationId":"list_resale_request_documents","summary":"List resale request documents","description":"The association documents (declaration, bylaws, rules, budget, reserve study, shared minutes) staff put in a resale bundle. The requester downloads them with the certificate.\n\nPages through the resale request documents table of the organization, oldest first. Filters: id, resale_request_id, document_id.\n\nNeeds one of: associations.read.","tags":["Resale request documents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"resale_request_id","in":"query","required":false,"schema":{"description":"Only rows whose resale_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resale_request_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/resale_request_documents/{id}":{"get":{"operationId":"get_resale_request_documents_row","summary":"Get a resale request document","description":"The association documents (declaration, bylaws, rules, budget, reserve study, shared minutes) staff put in a resale bundle. The requester downloads them with the certificate.\n\nOne row of resale request documents by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Resale request documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/resale_requests/{id}":{"get":{"operationId":"get_resale_requests_row","summary":"Get a resale request","description":"A resale certificate, estoppel letter or lender questionnaire requested on the public page. The requester has no account: access_token_hash guards the status page and download_token_hash the download link (both sha256 of a bearer token that only went out in an email secret). due_on = the paid date plus the turnaround (rush or standard). A request is unconfirmed (no contact, no payment, not in the staff queue) until the requester continues on the status page (confirmed_at); only confirmed requests count toward the association's hourly limit.\n\nOne row of resale requests by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Resale requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/reservable_amenities/{id}":{"get":{"operationId":"get_reservable_amenities_row","summary":"Get a reservable amenity","description":"Bookable shared spaces at any property (association clubhouse, pool cabana, apartment guest suite, party room) with booking rules, fee and refundable deposit.\n\nOne row of reservable amenities by id, with every column the API shows.\n\nNeeds one of: properties.write.","tags":["Reservable amenities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]},"patch":{"operationId":"update_reservable_amenities_row","summary":"Update a reservable amenity","description":"Bookable shared spaces at any property (association clubhouse, pool cabana, apartment guest suite, party room) with booking rules, fee and refundable deposit.\n\nChanges the given fields of one row of reservable amenities and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Reservable amenities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"capacity":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"capacity"},{"type":"null"}]},"fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Booking fee: flat per reservation, or per hour when fee_is_hourly."},"fee_is_hourly":{"type":"boolean","description":"fee is hourly"},"deposit_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Refundable damage deposit charged with the booking."},"fee_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"fee charge type id"},{"type":"null"}]},"deposit_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"deposit charge type id"},{"type":"null"}]},"min_duration_minutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min duration minutes"},{"type":"null"}]},"max_duration_minutes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max duration minutes"},{"type":"null"}]},"max_advance_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How far ahead residents may book."},{"type":"null"}]},"opens_at":{"anyOf":[{"type":"string","maxLength":100000,"description":"Daily opening time (property local time); null = no restriction."},{"type":"null"}]},"closes_at":{"anyOf":[{"type":"string","maxLength":100000,"description":"closes at"},{"type":"null"}]},"requires_approval":{"type":"boolean","description":"requires approval"},"rules":{"anyOf":[{"type":"string","maxLength":100000,"description":"rules"},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"},"cancel_notice_hours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"A resident may cancel a booking until this many hours before it starts (00133); staff may cancel any future booking."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/reserve_eligibility_rules":{"get":{"operationId":"list_reserve_eligibility_rules","summary":"List reserve eligibility rules","description":"What a loan's replacement reserve pays for (some reserves cover only flooring, roofs or appliances): one GL account, cost code, equipment type or description keyword per row. suggest_reserve_draw_bills lists paid bill lines that match any rule.\n\nPages through the reserve eligibility rules table of the organization, oldest first. Filters: id, loan_id, property_id, gl_account_id, cost_code_id, asset_type.\n\nNeeds one of: gl.read, gl.write, owners.write, properties.read.","tags":["Reserve eligibility rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"loan_id","in":"query","required":false,"schema":{"description":"Only rows whose loan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose loan_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"cost_code_id","in":"query","required":false,"schema":{"description":"Only rows whose cost_code_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cost_code_id equals this."},{"name":"asset_type","in":"query","required":false,"schema":{"description":"Only rows whose asset_type equals this.","type":"string","enum":["appliance","hvac","water_heater","plumbing","electrical","roofing","elevator","fire_safety","security","pool_equipment","flooring","window_door","vehicle","furniture","tool","other"]},"description":"Only rows whose asset_type equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write","owners.write","properties.read"]},"post":{"operationId":"create_reserve_eligibility_rules_row","summary":"Create a reserve eligibility rule","description":"What a loan's replacement reserve pays for (some reserves cover only flooring, roofs or appliances): one GL account, cost code, equipment type or description keyword per row. suggest_reserve_draw_bills lists paid bill lines that match any rule.\n\nInserts one row of reserve eligibility rules in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: gl.write, owners.write.","tags":["Reserve eligibility rules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"loan_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"loan id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"gl account id"},{"type":"null"}]},"cost_code_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cost code id"},{"type":"null"}]},"asset_type":{"anyOf":[{"type":"string","enum":["appliance","hvac","water_heater","plumbing","electrical","roofing","elevator","fire_safety","security","pool_equipment","flooring","window_door","vehicle","furniture","tool","other"],"description":"asset type"},{"type":"null"}]},"keyword":{"anyOf":[{"type":"string","maxLength":100000,"description":"keyword"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["loan_id","property_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/reserve_eligibility_rules/{id}":{"get":{"operationId":"get_reserve_eligibility_rules_row","summary":"Get a reserve eligibility rule","description":"What a loan's replacement reserve pays for (some reserves cover only flooring, roofs or appliances): one GL account, cost code, equipment type or description keyword per row. suggest_reserve_draw_bills lists paid bill lines that match any rule.\n\nOne row of reserve eligibility rules by id, with every column the API shows.\n\nNeeds one of: gl.read, gl.write, owners.write, properties.read.","tags":["Reserve eligibility rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","gl.write","owners.write","properties.read"]},"delete":{"operationId":"delete_reserve_eligibility_rules_row","summary":"Delete a reserve eligibility rule","description":"What a loan's replacement reserve pays for (some reserves cover only flooring, roofs or appliances): one GL account, cost code, equipment type or description keyword per row. suggest_reserve_draw_bills lists paid bill lines that match any rule.\n\nDeletes one row of reserve eligibility rules. The database refuses it where other records still need the row.\n\nNeeds one of: gl.write, owners.write.","tags":["Reserve eligibility rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/resident_event_rsvps":{"get":{"operationId":"list_resident_event_rsvps","summary":"List resident event rsvps","description":"A resident's RSVP to an event (one per person per event; changing the answer updates the row).\n\nPages through the resident event rsvps table of the organization, oldest first. Filters: id, resident_event_id, contact_id, lease_id, response.\n\nNeeds one of: residents.read, residents.write.","tags":["Resident event rsvps"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"resident_event_id","in":"query","required":false,"schema":{"description":"Only rows whose resident_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose resident_event_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"response","in":"query","required":false,"schema":{"description":"Only rows whose response equals this.","type":"string","enum":["going","maybe","not_going"]},"description":"Only rows whose response equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/resident_event_rsvps/{id}":{"get":{"operationId":"get_resident_event_rsvps_row","summary":"Get a resident event rsvp","description":"A resident's RSVP to an event (one per person per event; changing the answer updates the row).\n\nOne row of resident event rsvps by id, with every column the API shows.\n\nNeeds one of: residents.read, residents.write.","tags":["Resident event rsvps"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/resident_events/{id}":{"get":{"operationId":"get_resident_events_row","summary":"Get a resident event","description":"Community event residents can RSVP to (pool party, move-in social, food truck). property_id null = residents of every property.\n\nOne row of resident events by id, with every column the API shows.\n\nNeeds one of: residents.read, residents.write.","tags":["Resident events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]},"patch":{"operationId":"update_resident_events_row","summary":"Update a resident event","description":"Community event residents can RSVP to (pool party, move-in social, food truck). property_id null = residents of every property.\n\nChanges the given fields of one row of resident events and returns it. Fields left out stay as they are.\n\nNeeds one of: residents.write.","tags":["Resident events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"References public.properties (the property this resident event belongs to or points at)."},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"Title of the resident event."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the resident event."},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"Location of the resident event."},{"type":"null"}]},"starts_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the resident event was starts (timestamp); null if not yet."},"ends_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the resident event was ends (timestamp); null if not yet."},{"type":"null"}]},"capacity":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum attendees counting guests (going RSVPs + their guests); null = unlimited."},{"type":"null"}]},"rsvp_deadline_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the resident event was rsvp deadline (timestamp); null if not yet."},{"type":"null"}]},"max_guests_per_rsvp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Max guests per rsvp of the resident event."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]},"delete":{"operationId":"delete_resident_events_row","summary":"Delete a resident event","description":"Community event residents can RSVP to (pool party, move-in social, food truck). property_id null = residents of every property.\n\nDeletes one row of resident events. The database refuses it where other records still need the row.\n\nNeeds one of: residents.write.","tags":["Resident events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/roommate_group_members":{"get":{"operationId":"list_roommate_group_members","summary":"List roommate group members","description":"Membership of a person in a roommate group (invited -> accepted / declined; left or removed later).\n\nPages through the roommate group members table of the organization, oldest first. Filters: id, roommate_group_id, contact_id, rental_application_id, status.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Roommate group members"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"roommate_group_id","in":"query","required":false,"schema":{"description":"Only rows whose roommate_group_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose roommate_group_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["invited","accepted","declined","left","removed"]},"description":"Only rows whose status equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/roommate_group_members/{id}":{"get":{"operationId":"get_roommate_group_members_row","summary":"Get a roommate group member","description":"Membership of a person in a roommate group (invited -> accepted / declined; left or removed later).\n\nOne row of roommate group members by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Roommate group members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/roommate_groups":{"get":{"operationId":"list_roommate_groups","summary":"List roommate groups","description":"Group of applicants or residents who want to live together for a term; placed into one unit when assigned.\n\nPages through the roommate groups table of the organization, oldest first. Filters: id, property_id, academic_term_id, status, leader_contact_id, preferred_floor_plan_id, assigned_unit_id, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Roommate groups"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"academic_term_id","in":"query","required":false,"schema":{"description":"Only rows whose academic_term_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose academic_term_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["forming","complete","assigned","disbanded"]},"description":"Only rows whose status equals this."},{"name":"leader_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose leader_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose leader_contact_id equals this."},{"name":"preferred_floor_plan_id","in":"query","required":false,"schema":{"description":"Only rows whose preferred_floor_plan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose preferred_floor_plan_id equals this."},{"name":"assigned_unit_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_unit_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/roommate_groups/{id}":{"get":{"operationId":"get_roommate_groups_row","summary":"Get a roommate group","description":"Group of applicants or residents who want to live together for a term; placed into one unit when assigned.\n\nOne row of roommate groups by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Roommate groups"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/roommate_move_outs":{"get":{"operationId":"list_roommate_move_outs","summary":"List roommate move outs","description":"One roommate leaving a lease that goes on: the leaving tenant, the date, the amendment they and everyone else sign, an optional replacement, the rent share handling and what happens to the leaving tenant's part of the security deposit.\n\nPages through the roommate move outs table of the organization, oldest first. Filters: id, lease_id, property_id, lease_amendment_id, leaving_contact_id, replacement_contact_id, new_primary_contact_id, move_out_on, status, deposit_option, share_handling, share_proposal_id, replacement_charge_id, top_up_charge_id, disposition_id, return_due_on, compliance_item_id, created_by.\n\nNeeds one of: leasing.read.","tags":["Roommate move outs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_amendment_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_amendment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_amendment_id equals this."},{"name":"leaving_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose leaving_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose leaving_contact_id equals this."},{"name":"replacement_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose replacement_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose replacement_contact_id equals this."},{"name":"new_primary_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose new_primary_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose new_primary_contact_id equals this."},{"name":"move_out_on","in":"query","required":false,"schema":{"description":"Only rows whose move_out_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose move_out_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["signing","scheduled","deposit_due","refund_due","completed","canceled"]},"description":"Only rows whose status equals this."},{"name":"deposit_option","in":"query","required":false,"schema":{"description":"Only rows whose deposit_option equals this.","type":"string","enum":["keep_on_lease","transfer_to_replacement","refund_now"]},"description":"Only rows whose deposit_option equals this."},{"name":"share_handling","in":"query","required":false,"schema":{"description":"Only rows whose share_handling equals this.","type":"string","enum":["recompute","ask_tenants"]},"description":"Only rows whose share_handling equals this."},{"name":"share_proposal_id","in":"query","required":false,"schema":{"description":"Only rows whose share_proposal_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose share_proposal_id equals this."},{"name":"replacement_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose replacement_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose replacement_charge_id equals this."},{"name":"top_up_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose top_up_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose top_up_charge_id equals this."},{"name":"disposition_id","in":"query","required":false,"schema":{"description":"Only rows whose disposition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose disposition_id equals this."},{"name":"return_due_on","in":"query","required":false,"schema":{"description":"Only rows whose return_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose return_due_on equals this."},{"name":"compliance_item_id","in":"query","required":false,"schema":{"description":"Only rows whose compliance_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose compliance_item_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/roommate_move_outs/{id}":{"get":{"operationId":"get_roommate_move_outs_row","summary":"Get a roommate move out","description":"One roommate leaving a lease that goes on: the leaving tenant, the date, the amendment they and everyone else sign, an optional replacement, the rent share handling and what happens to the leaving tenant's part of the security deposit.\n\nOne row of roommate move outs by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Roommate move outs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/roommate_profiles":{"get":{"operationId":"list_roommate_profiles","summary":"List roommate profiles","description":"Roommate-matching questionnaire of an applicant or resident for a term. Residents edit their own profile in the portal; suggest_roommates scores compatibility between opted-in profiles.\n\nPages through the roommate profiles table of the organization, oldest first. Filters: id, contact_id, academic_term_id, is_matching_opt_in, sleep_schedule, guest_frequency, study_preference, is_smoker, has_pet, roommate_gender_preference, gender_designation.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Roommate profiles"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"academic_term_id","in":"query","required":false,"schema":{"description":"Only rows whose academic_term_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose academic_term_id equals this."},{"name":"is_matching_opt_in","in":"query","required":false,"schema":{"description":"Only rows whose is_matching_opt_in equals this.","type":"boolean"},"description":"Only rows whose is_matching_opt_in equals this."},{"name":"sleep_schedule","in":"query","required":false,"schema":{"description":"Only rows whose sleep_schedule equals this.","type":"string","enum":["early_riser","average","night_owl"]},"description":"Only rows whose sleep_schedule equals this."},{"name":"guest_frequency","in":"query","required":false,"schema":{"description":"Only rows whose guest_frequency equals this.","type":"string","enum":["rarely","sometimes","often"]},"description":"Only rows whose guest_frequency equals this."},{"name":"study_preference","in":"query","required":false,"schema":{"description":"Only rows whose study_preference equals this.","type":"string","enum":["quiet","flexible","social"]},"description":"Only rows whose study_preference equals this."},{"name":"is_smoker","in":"query","required":false,"schema":{"description":"Only rows whose is_smoker equals this.","type":"boolean"},"description":"Only rows whose is_smoker equals this."},{"name":"has_pet","in":"query","required":false,"schema":{"description":"Only rows whose has_pet equals this.","type":"boolean"},"description":"Only rows whose has_pet equals this."},{"name":"roommate_gender_preference","in":"query","required":false,"schema":{"description":"Only rows whose roommate_gender_preference equals this.","type":"string","enum":["unrestricted","female","male"]},"description":"Only rows whose roommate_gender_preference equals this."},{"name":"gender_designation","in":"query","required":false,"schema":{"description":"Only rows whose gender_designation equals this.","type":"string","enum":["unrestricted","female","male"]},"description":"Only rows whose gender_designation equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/roommate_profiles/{id}":{"get":{"operationId":"get_roommate_profiles_row","summary":"Get a roommate profile","description":"Roommate-matching questionnaire of an applicant or resident for a term. Residents edit their own profile in the portal; suggest_roommates scores compatibility between opted-in profiles.\n\nOne row of roommate profiles by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Roommate profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]}},"/v1/saved_reports":{"get":{"operationId":"list_saved_reports","summary":"List saved reports","description":"Only the creator changes or deletes it.\n\nPages through the saved reports table of the organization, oldest first. Filters: id, user_id, is_shared, sort_desc.\n\nNeeds one of: reports.read.","tags":["Saved reports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"is_shared","in":"query","required":false,"schema":{"description":"Only rows whose is_shared equals this.","type":"boolean"},"description":"Only rows whose is_shared equals this."},{"name":"sort_desc","in":"query","required":false,"schema":{"description":"Only rows whose sort_desc equals this.","type":"boolean"},"description":"Only rows whose sort_desc equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]},"post":{"operationId":"create_saved_reports_row","summary":"Create a saved report","description":"Only the creator changes or deletes it.\n\nInserts one row of saved reports in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: reports.read.","tags":["Saved reports"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff member who saved it (memberships.user_id in this org); the only one who may edit or delete it."},"report_key":{"type":"string","maxLength":100000,"description":"The report (reports.report_definitions.key, also the function name reports.<key>)."},"name":{"type":"string","maxLength":100000,"description":"Name shown in the reports menu, e.g. \"Month-end trial balance, cash\"."},"parameters":{"description":"Report options as entered in the form: an object of parameter name (p_as_of, p_from, p_basis, p_property_ids, ...) to a string or an array of strings. Unstructured on purpose: parameters differ per report and are validated against reports.catalog each time the report runs. p_org_id is never stored."},"is_shared":{"type":"boolean","description":"True when the whole team sees it in their reports menu; false keeps it private to user_id."},"columns":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":100000},"description":"Columns to show, in order, by name from the report's RETURNS TABLE (reports.catalog result_columns). Null = the report's own columns and order. Names the report no longer returns are skipped when it runs."},{"type":"null"}]},"sort_desc":{"type":"boolean","description":"True sorts sort_by from high to low (newest first for dates)."}},"required":["report_key","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/saved_reports/{id}":{"get":{"operationId":"get_saved_reports_row","summary":"Get a saved report","description":"Only the creator changes or deletes it.\n\nOne row of saved reports by id, with every column the API shows.\n\nNeeds one of: reports.read.","tags":["Saved reports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]},"patch":{"operationId":"update_saved_reports_row","summary":"Update a saved report","description":"Only the creator changes or deletes it.\n\nChanges the given fields of one row of saved reports and returns it. Fields left out stay as they are.\n\nNeeds one of: reports.read.","tags":["Saved reports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Staff member who saved it (memberships.user_id in this org); the only one who may edit or delete it."},"report_key":{"type":"string","maxLength":100000,"description":"The report (reports.report_definitions.key, also the function name reports.<key>)."},"name":{"type":"string","maxLength":100000,"description":"Name shown in the reports menu, e.g. \"Month-end trial balance, cash\"."},"parameters":{"description":"Report options as entered in the form: an object of parameter name (p_as_of, p_from, p_basis, p_property_ids, ...) to a string or an array of strings. Unstructured on purpose: parameters differ per report and are validated against reports.catalog each time the report runs. p_org_id is never stored."},"is_shared":{"type":"boolean","description":"True when the whole team sees it in their reports menu; false keeps it private to user_id."},"columns":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":100000},"description":"Columns to show, in order, by name from the report's RETURNS TABLE (reports.catalog result_columns). Null = the report's own columns and order. Names the report no longer returns are skipped when it runs."},{"type":"null"}]},"sort_desc":{"type":"boolean","description":"True sorts sort_by from high to low (newest first for dates)."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]},"delete":{"operationId":"delete_saved_reports_row","summary":"Delete a saved report","description":"Only the creator changes or deletes it.\n\nDeletes one row of saved reports. The database refuses it where other records still need the row.\n\nNeeds one of: reports.read.","tags":["Saved reports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/scheduled_payments":{"get":{"operationId":"list_scheduled_payments","summary":"List scheduled payments","description":"A future-dated one-time payment a payer (or staff for them) set up, e.g. pay $600 on the 15th.\n\nPages through the scheduled payments table of the organization, oldest first. Filters: id, lease_id, property_id, contact_id, payment_method_id, purpose, scheduled_on, status, payment_plan_installment_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Scheduled payments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"payment_method_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_method_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_method_id equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["rent","deposit","application_fee","owner_contribution","vendor_payment","owner_distribution","deposit_refund","tenant_refund","platform_fee","other","resale_fee"]},"description":"Only rows whose purpose equals this."},{"name":"scheduled_on","in":"query","required":false,"schema":{"description":"Only rows whose scheduled_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose scheduled_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["scheduled","processing","completed","failed","canceled"]},"description":"Only rows whose status equals this."},{"name":"payment_plan_installment_id","in":"query","required":false,"schema":{"description":"Only rows whose payment_plan_installment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payment_plan_installment_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/scheduled_payments/{id}":{"get":{"operationId":"get_scheduled_payments_row","summary":"Get a scheduled payment","description":"A future-dated one-time payment a payer (or staff for them) set up, e.g. pay $600 on the 15th.\n\nOne row of scheduled payments by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Scheduled payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/screening_agency_disclosures":{"get":{"operationId":"list_screening_agency_disclosures","summary":"List screening agency disclosures","description":"Consumer reporting agency details printed on adverse action notices (FCRA section 615(a)): name, address, phone and website of the agency that supplied the report, per screening provider. Seeded for TransUnion SmartMove; added and edited by staff with screening.run and settings.write; never deleted by clients. A notice cannot be built for someone screened through a provider without a row here.\n\nPages through the screening agency disclosures table of the organization, oldest first. Filters: id, provider, created_by.\n\nNeeds one of: leasing.read.","tags":["Screening agency disclosures"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["transunion_smartmove","rentprep","checkr","experian","other"]},"description":"Only rows whose provider equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"post":{"operationId":"create_screening_agency_disclosures_row","summary":"Create a screening agency disclosure","description":"Consumer reporting agency details printed on adverse action notices (FCRA section 615(a)): name, address, phone and website of the agency that supplied the report, per screening provider. Seeded for TransUnion SmartMove; added and edited by staff with screening.run and settings.write; never deleted by clients. A notice cannot be built for someone screened through a provider without a row here.\n\nInserts one row of screening agency disclosures in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: screening.run, settings.write.","tags":["Screening agency disclosures"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["transunion_smartmove","rentprep","checkr","experian","other"],"description":"Screening provider (screening_requests.provider) these details belong to."},"agency_name":{"type":"string","maxLength":100000,"description":"Legal name of the consumer reporting agency as printed on the notice."},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line1"},{"type":"null"}]},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"Consumer phone number (toll-free for nationwide agencies)."},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":100000,"description":"website"},{"type":"null"}]}},"required":["provider","agency_name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run","settings.write"]}},"/v1/screening_agency_disclosures/{id}":{"get":{"operationId":"get_screening_agency_disclosures_row","summary":"Get a screening agency disclosure","description":"Consumer reporting agency details printed on adverse action notices (FCRA section 615(a)): name, address, phone and website of the agency that supplied the report, per screening provider. Seeded for TransUnion SmartMove; added and edited by staff with screening.run and settings.write; never deleted by clients. A notice cannot be built for someone screened through a provider without a row here.\n\nOne row of screening agency disclosures by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Screening agency disclosures"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]},"patch":{"operationId":"update_screening_agency_disclosures_row","summary":"Update a screening agency disclosure","description":"Consumer reporting agency details printed on adverse action notices (FCRA section 615(a)): name, address, phone and website of the agency that supplied the report, per screening provider. Seeded for TransUnion SmartMove; added and edited by staff with screening.run and settings.write; never deleted by clients. A notice cannot be built for someone screened through a provider without a row here.\n\nChanges the given fields of one row of screening agency disclosures and returns it. Fields left out stay as they are.\n\nNeeds one of: screening.run, settings.write.","tags":["Screening agency disclosures"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["transunion_smartmove","rentprep","checkr","experian","other"],"description":"Screening provider (screening_requests.provider) these details belong to."},"agency_name":{"type":"string","maxLength":100000,"description":"Legal name of the consumer reporting agency as printed on the notice."},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line1"},{"type":"null"}]},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"Consumer phone number (toll-free for nationwide agencies)."},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":100000,"description":"website"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run","settings.write"]}},"/v1/screening_criteria":{"get":{"operationId":"list_screening_criteria","summary":"List screening criteria","description":"Resident screening criteria used to assess rental applications. One current row (superseded_at is null) per org with property_id null (the org default) and optionally one per property that overrides it. Saving creates a new version and stamps superseded_at on the old one, so every application_risk_assessments row points at the exact rules it used. Write through save_screening_criteria / reset_screening_criteria.\n\nPages through the screening criteria table of the organization, oldest first. Filters: id, property_id, requires_screening, skip_income_test_for_voucher_holders, min_credit_score_band, conditional_credit_score_band, no_credit_score_policy, eviction_policy, criminal_history_policy, bankruptcy_policy, collections_policy, requires_identity_verification, requires_landlord_reference, requires_photo_id, created_by.\n\nNeeds one of: leasing.read.","tags":["Screening criteria"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"requires_screening","in":"query","required":false,"schema":{"description":"Only rows whose requires_screening equals this.","type":"boolean"},"description":"Only rows whose requires_screening equals this."},{"name":"skip_income_test_for_voucher_holders","in":"query","required":false,"schema":{"description":"Only rows whose skip_income_test_for_voucher_holders equals this.","type":"boolean"},"description":"Only rows whose skip_income_test_for_voucher_holders equals this."},{"name":"min_credit_score_band","in":"query","required":false,"schema":{"description":"Only rows whose min_credit_score_band equals this.","type":"string","enum":["no_score","under_550","550_599","600_649","650_699","700_749","750_plus"]},"description":"Only rows whose min_credit_score_band equals this."},{"name":"conditional_credit_score_band","in":"query","required":false,"schema":{"description":"Only rows whose conditional_credit_score_band equals this.","type":"string","enum":["no_score","under_550","550_599","600_649","650_699","700_749","750_plus"]},"description":"Only rows whose conditional_credit_score_band equals this."},{"name":"no_credit_score_policy","in":"query","required":false,"schema":{"description":"Only rows whose no_credit_score_policy equals this.","type":"string","enum":["ignore","review","conditional","decline"]},"description":"Only rows whose no_credit_score_policy equals this."},{"name":"eviction_policy","in":"query","required":false,"schema":{"description":"Only rows whose eviction_policy equals this.","type":"string","enum":["ignore","review","conditional","decline"]},"description":"Only rows whose eviction_policy equals this."},{"name":"criminal_history_policy","in":"query","required":false,"schema":{"description":"Only rows whose criminal_history_policy equals this.","type":"string","enum":["ignore","review","conditional","decline"]},"description":"Only rows whose criminal_history_policy equals this."},{"name":"bankruptcy_policy","in":"query","required":false,"schema":{"description":"Only rows whose bankruptcy_policy equals this.","type":"string","enum":["ignore","review","conditional","decline"]},"description":"Only rows whose bankruptcy_policy equals this."},{"name":"collections_policy","in":"query","required":false,"schema":{"description":"Only rows whose collections_policy equals this.","type":"string","enum":["ignore","review","conditional","decline"]},"description":"Only rows whose collections_policy equals this."},{"name":"requires_identity_verification","in":"query","required":false,"schema":{"description":"Only rows whose requires_identity_verification equals this.","type":"boolean"},"description":"Only rows whose requires_identity_verification equals this."},{"name":"requires_landlord_reference","in":"query","required":false,"schema":{"description":"Only rows whose requires_landlord_reference equals this.","type":"boolean"},"description":"Only rows whose requires_landlord_reference equals this."},{"name":"requires_photo_id","in":"query","required":false,"schema":{"description":"Only rows whose requires_photo_id equals this.","type":"boolean"},"description":"Only rows whose requires_photo_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/screening_criteria/{id}":{"get":{"operationId":"get_screening_criteria_row","summary":"Get a screening criteria","description":"Resident screening criteria used to assess rental applications. One current row (superseded_at is null) per org with property_id null (the org default) and optionally one per property that overrides it. Saving creates a new version and stamps superseded_at on the old one, so every application_risk_assessments row points at the exact rules it used. Write through save_screening_criteria / reset_screening_criteria.\n\nOne row of screening criteria by id, with every column the API shows.\n\nNeeds one of: leasing.read.","tags":["Screening criteria"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/screening_provider_accounts":{"get":{"operationId":"list_screening_provider_accounts","summary":"List screening provider accounts","description":"An organization's account at a tenant-screening provider (TransUnion SmartMove, Checkr, RentPrep...): the org's landlord record there, the default product bundle and payer staff see when ordering, and the screening criteria sent with each property. At most one enabled account per provider per org; the screening Edge Function places that provider's orders through it. Platform partner credentials live in function env; per-org API keys (providers that issue them) live in Vault (credentials_vault_ref). Connected via connect_screening_account.\n\nPages through the screening provider accounts table of the organization, oldest first. Filters: id, provider, environment, default_includes_credit, default_includes_criminal, default_includes_eviction, default_includes_income_verification, default_includes_identity_verification, default_paid_by, decline_for_open_bankruptcy, include_medical_collections, include_foreclosures, is_enabled, connected_by.\n\nNeeds one of: integrations.write, screening.run.","tags":["Screening provider accounts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["transunion_smartmove","rentprep","checkr","experian","other"]},"description":"Only rows whose provider equals this."},{"name":"environment","in":"query","required":false,"schema":{"description":"Only rows whose environment equals this.","type":"string","enum":["sandbox","production"]},"description":"Only rows whose environment equals this."},{"name":"default_includes_credit","in":"query","required":false,"schema":{"description":"Only rows whose default_includes_credit equals this.","type":"boolean"},"description":"Only rows whose default_includes_credit equals this."},{"name":"default_includes_criminal","in":"query","required":false,"schema":{"description":"Only rows whose default_includes_criminal equals this.","type":"boolean"},"description":"Only rows whose default_includes_criminal equals this."},{"name":"default_includes_eviction","in":"query","required":false,"schema":{"description":"Only rows whose default_includes_eviction equals this.","type":"boolean"},"description":"Only rows whose default_includes_eviction equals this."},{"name":"default_includes_income_verification","in":"query","required":false,"schema":{"description":"Only rows whose default_includes_income_verification equals this.","type":"boolean"},"description":"Only rows whose default_includes_income_verification equals this."},{"name":"default_includes_identity_verification","in":"query","required":false,"schema":{"description":"Only rows whose default_includes_identity_verification equals this.","type":"boolean"},"description":"Only rows whose default_includes_identity_verification equals this."},{"name":"default_paid_by","in":"query","required":false,"schema":{"description":"Only rows whose default_paid_by equals this.","type":"string","enum":["applicant","organization"]},"description":"Only rows whose default_paid_by equals this."},{"name":"decline_for_open_bankruptcy","in":"query","required":false,"schema":{"description":"Only rows whose decline_for_open_bankruptcy equals this.","type":"boolean"},"description":"Only rows whose decline_for_open_bankruptcy equals this."},{"name":"include_medical_collections","in":"query","required":false,"schema":{"description":"Only rows whose include_medical_collections equals this.","type":"boolean"},"description":"Only rows whose include_medical_collections equals this."},{"name":"include_foreclosures","in":"query","required":false,"schema":{"description":"Only rows whose include_foreclosures equals this.","type":"boolean"},"description":"Only rows whose include_foreclosures equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"connected_by","in":"query","required":false,"schema":{"description":"Only rows whose connected_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose connected_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write","screening.run"]}},"/v1/screening_provider_accounts/{id}":{"get":{"operationId":"get_screening_provider_accounts_row","summary":"Get a screening provider account","description":"An organization's account at a tenant-screening provider (TransUnion SmartMove, Checkr, RentPrep...): the org's landlord record there, the default product bundle and payer staff see when ordering, and the screening criteria sent with each property. At most one enabled account per provider per org; the screening Edge Function places that provider's orders through it. Platform partner credentials live in function env; per-org API keys (providers that issue them) live in Vault (credentials_vault_ref). Connected via connect_screening_account.\n\nOne row of screening provider accounts by id, with every column the API shows.\n\nNeeds one of: integrations.write, screening.run.","tags":["Screening provider accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["integrations.write","screening.run"]}},"/v1/screening_provider_properties":{"get":{"operationId":"list_screening_provider_properties","summary":"List screening provider properties","description":"The provider's id for a rentable property or unit of ours (SmartMove Property, which carries address, unit, rent, deposit and the screening criteria). Created by the screening Edge Function on the first order for that property/unit and reused afterwards. Service role writes; staff with screening.run read.\n\nPages through the screening provider properties table of the organization, oldest first. Filters: id, screening_provider_account_id, property_id, unit_id, needs_resync.\n\nNeeds one of: screening.run.","tags":["Screening provider properties"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"screening_provider_account_id","in":"query","required":false,"schema":{"description":"Only rows whose screening_provider_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose screening_provider_account_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"needs_resync","in":"query","required":false,"schema":{"description":"Only rows whose needs_resync equals this.","type":"boolean"},"description":"Only rows whose needs_resync equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/screening_provider_properties/{id}":{"get":{"operationId":"get_screening_provider_properties_row","summary":"Get a screening provider property","description":"The provider's id for a rentable property or unit of ours (SmartMove Property, which carries address, unit, rent, deposit and the screening criteria). Created by the screening Edge Function on the first order for that property/unit and reused afterwards. Service role writes; staff with screening.run read.\n\nOne row of screening provider properties by id, with every column the API shows.\n\nNeeds one of: screening.run.","tags":["Screening provider properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/screening_requests":{"get":{"operationId":"list_screening_requests","summary":"List screening requests","description":"A tenant-screening order (credit, criminal, eviction, identity, income) for one applicant at a provider. Stores ONLY the result summary needed for the decision; raw consumer reports are never stored here (view them at the provider via external_report_url).\n\nPages through the screening requests table of the organization, oldest first. Filters: id, application_id, application_applicant_id, provider, includes_credit, includes_criminal, includes_eviction, includes_income_verification, includes_identity_verification, status, paid_by, credit_score_band, has_eviction_records, has_criminal_records, has_bankruptcy, has_collections, is_identity_verified, recommendation, requested_by, screening_provider_account_id, credit_score_created_on.\n\nNeeds one of: screening.run.","tags":["Screening requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"application_id","in":"query","required":false,"schema":{"description":"Only rows whose application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_id equals this."},{"name":"application_applicant_id","in":"query","required":false,"schema":{"description":"Only rows whose application_applicant_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_applicant_id equals this."},{"name":"provider","in":"query","required":false,"schema":{"description":"Only rows whose provider equals this.","type":"string","enum":["transunion_smartmove","rentprep","checkr","experian","other"]},"description":"Only rows whose provider equals this."},{"name":"includes_credit","in":"query","required":false,"schema":{"description":"Only rows whose includes_credit equals this.","type":"boolean"},"description":"Only rows whose includes_credit equals this."},{"name":"includes_criminal","in":"query","required":false,"schema":{"description":"Only rows whose includes_criminal equals this.","type":"boolean"},"description":"Only rows whose includes_criminal equals this."},{"name":"includes_eviction","in":"query","required":false,"schema":{"description":"Only rows whose includes_eviction equals this.","type":"boolean"},"description":"Only rows whose includes_eviction equals this."},{"name":"includes_income_verification","in":"query","required":false,"schema":{"description":"Only rows whose includes_income_verification equals this.","type":"boolean"},"description":"Only rows whose includes_income_verification equals this."},{"name":"includes_identity_verification","in":"query","required":false,"schema":{"description":"Only rows whose includes_identity_verification equals this.","type":"boolean"},"description":"Only rows whose includes_identity_verification equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending_consent","requested","in_progress","completed","failed","canceled","expired"]},"description":"Only rows whose status equals this."},{"name":"paid_by","in":"query","required":false,"schema":{"description":"Only rows whose paid_by equals this.","type":"string","enum":["applicant","organization"]},"description":"Only rows whose paid_by equals this."},{"name":"credit_score_band","in":"query","required":false,"schema":{"description":"Only rows whose credit_score_band equals this.","type":"string","enum":["no_score","under_550","550_599","600_649","650_699","700_749","750_plus"]},"description":"Only rows whose credit_score_band equals this."},{"name":"has_eviction_records","in":"query","required":false,"schema":{"description":"Only rows whose has_eviction_records equals this.","type":"boolean"},"description":"Only rows whose has_eviction_records equals this."},{"name":"has_criminal_records","in":"query","required":false,"schema":{"description":"Only rows whose has_criminal_records equals this.","type":"boolean"},"description":"Only rows whose has_criminal_records equals this."},{"name":"has_bankruptcy","in":"query","required":false,"schema":{"description":"Only rows whose has_bankruptcy equals this.","type":"boolean"},"description":"Only rows whose has_bankruptcy equals this."},{"name":"has_collections","in":"query","required":false,"schema":{"description":"Only rows whose has_collections equals this.","type":"boolean"},"description":"Only rows whose has_collections equals this."},{"name":"is_identity_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_identity_verified equals this.","type":"boolean"},"description":"Only rows whose is_identity_verified equals this."},{"name":"recommendation","in":"query","required":false,"schema":{"description":"Only rows whose recommendation equals this.","type":"string","enum":["accept","accept_with_conditions","decline","no_recommendation"]},"description":"Only rows whose recommendation equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"screening_provider_account_id","in":"query","required":false,"schema":{"description":"Only rows whose screening_provider_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose screening_provider_account_id equals this."},{"name":"credit_score_created_on","in":"query","required":false,"schema":{"description":"Only rows whose credit_score_created_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose credit_score_created_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/screening_requests/{id}":{"get":{"operationId":"get_screening_requests_row","summary":"Get a screening request","description":"A tenant-screening order (credit, criminal, eviction, identity, income) for one applicant at a provider. Stores ONLY the result summary needed for the decision; raw consumer reports are never stored here (view them at the provider via external_report_url).\n\nOne row of screening requests by id, with every column the API shows.\n\nNeeds one of: screening.run.","tags":["Screening requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/security_deposit_deductions":{"get":{"operationId":"list_security_deposit_deductions","summary":"List security deposit deductions","description":"Itemized deductions of a deposit disposition, each posted as a charge on the lease. Charge-back items of the move-out inspection become deductions automatically (inspection_item_id); an inspection item is deducted at most once.\n\nPages through the security deposit deductions table of the organization, oldest first. Filters: id, disposition_id, charge_id, inspection_item_id.\n\nNeeds one of: receivables.read.","tags":["Security deposit deductions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"disposition_id","in":"query","required":false,"schema":{"description":"Only rows whose disposition_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose disposition_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"inspection_item_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_item_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/security_deposit_deductions/{id}":{"get":{"operationId":"get_security_deposit_deductions_row","summary":"Get a security deposit deduction","description":"Itemized deductions of a deposit disposition, each posted as a charge on the lease. Charge-back items of the move-out inspection become deductions automatically (inspection_item_id); an inspection item is deducted at most once.\n\nOne row of security deposit deductions by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Security deposit deductions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/security_deposit_dispositions":{"get":{"operationId":"list_security_deposit_dispositions","summary":"List security deposit dispositions","description":"Move-out settlement of a lease's security deposit (the itemized statement): deductions charged, deposit applied to the balance (a receipt of method security_deposit: Dr SECURITY_DEPOSITS_HELD / Cr AR) and the remainder refunded (Dr SECURITY_DEPOSITS_HELD / Cr bank).\n\nPages through the security deposit dispositions table of the organization, oldest first. Filters: id, lease_id, property_id, unit_id, disposed_on, refund_method, refund_contact_id, refund_bank_account_id, refund_payment_transaction_id, application_receipt_id, refund_journal_entry_id, inspection_id, interest_journal_entry_id, return_due_on, refund_reversed_on, refund_reversal_journal_entry_id, created_by, roommate_move_out_id.\n\nNeeds one of: receivables.read.","tags":["Security deposit dispositions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"disposed_on","in":"query","required":false,"schema":{"description":"Only rows whose disposed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose disposed_on equals this."},{"name":"refund_method","in":"query","required":false,"schema":{"description":"Only rows whose refund_method equals this.","type":"string","enum":["check","ach","card_refund","none","other"]},"description":"Only rows whose refund_method equals this."},{"name":"refund_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_contact_id equals this."},{"name":"refund_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_bank_account_id equals this."},{"name":"refund_payment_transaction_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_payment_transaction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_payment_transaction_id equals this."},{"name":"application_receipt_id","in":"query","required":false,"schema":{"description":"Only rows whose application_receipt_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose application_receipt_id equals this."},{"name":"refund_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_journal_entry_id equals this."},{"name":"inspection_id","in":"query","required":false,"schema":{"description":"Only rows whose inspection_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose inspection_id equals this."},{"name":"interest_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose interest_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose interest_journal_entry_id equals this."},{"name":"return_due_on","in":"query","required":false,"schema":{"description":"Only rows whose return_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose return_due_on equals this."},{"name":"refund_reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose refund_reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose refund_reversed_on equals this."},{"name":"refund_reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose refund_reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose refund_reversal_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"roommate_move_out_id","in":"query","required":false,"schema":{"description":"Only rows whose roommate_move_out_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose roommate_move_out_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/security_deposit_dispositions/{id}":{"get":{"operationId":"get_security_deposit_dispositions_row","summary":"Get a security deposit disposition","description":"Move-out settlement of a lease's security deposit (the itemized statement): deductions charged, deposit applied to the balance (a receipt of method security_deposit: Dr SECURITY_DEPOSITS_HELD / Cr AR) and the remainder refunded (Dr SECURITY_DEPOSITS_HELD / Cr bank).\n\nOne row of security deposit dispositions by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Security deposit dispositions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/service_request_availability":{"get":{"operationId":"list_service_request_availability","summary":"List service request availability","description":"Time windows when the tenant is available for a visit, given with the request. Used to schedule appointments (incl. AI scheduling).\n\nPages through the service request availability table of the organization, oldest first. Filters: id, service_request_id.\n\nNeeds one of: maintenance.write.","tags":["Service request availability"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/service_request_availability/{id}":{"get":{"operationId":"get_service_request_availability_row","summary":"Get a service request availability","description":"Time windows when the tenant is available for a visit, given with the request. Used to schedule appointments (incl. AI scheduling).\n\nOne row of service request availability by id, with every column the API shows.\n\nNeeds one of: maintenance.write.","tags":["Service request availability"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/service_request_comments":{"get":{"operationId":"list_service_request_comments","summary":"List service request comments","description":"The thread on a maintenance request between the resident and the office. Written only through add_service_request_comment and report_request_not_fixed (kind not_fixed). Rows are never edited.\n\nPages through the service request comments table of the organization, oldest first. Filters: id, service_request_id, is_staff, author_user_id, author_contact_id.\n\nNeeds one of: maintenance.read.","tags":["Service request comments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"is_staff","in":"query","required":false,"schema":{"description":"Only rows whose is_staff equals this.","type":"boolean"},"description":"Only rows whose is_staff equals this."},{"name":"author_user_id","in":"query","required":false,"schema":{"description":"Only rows whose author_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose author_user_id equals this."},{"name":"author_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose author_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose author_contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/service_request_comments/{id}":{"get":{"operationId":"get_service_request_comments_row","summary":"Get a service request comment","description":"The thread on a maintenance request between the resident and the office. Written only through add_service_request_comment and report_request_not_fixed (kind not_fixed). Rows are never edited.\n\nOne row of service request comments by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Service request comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/service_request_photos":{"get":{"operationId":"list_service_request_photos","summary":"List service request photos","description":"Photos/videos the reporter attached to a service request (Supabase Storage bucket + path).\n\nPages through the service request photos table of the organization, oldest first. Filters: id, service_request_id, uploaded_by.\n\nNeeds one of: maintenance.read.","tags":["Service request photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"uploaded_by","in":"query","required":false,"schema":{"description":"Only rows whose uploaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose uploaded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_service_request_photos_row","summary":"Create a service request photo","description":"Photos/videos the reporter attached to a service request (Supabase Storage bucket + path).\n\nInserts one row of service request photos in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write.","tags":["Service request photos"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},"storage_bucket":{"type":"string","maxLength":100000,"description":"storage bucket"},"storage_path":{"type":"string","maxLength":100000,"description":"Storage object path; must start with <org_id>/ (the storage RLS prefix)."},"caption":{"anyOf":[{"type":"string","maxLength":100000,"description":"caption"},{"type":"null"}]}},"required":["service_request_id","storage_path"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/service_request_photos/{id}":{"get":{"operationId":"get_service_request_photos_row","summary":"Get a service request photo","description":"Photos/videos the reporter attached to a service request (Supabase Storage bucket + path).\n\nOne row of service request photos by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Service request photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/showing_reply_menus":{"get":{"operationId":"list_showing_reply_menus","summary":"List showing reply menus","description":"A numbered question sent to a prospect whose \"no\" could mean more than one tour: the tours in the order listed. A reply with one of the numbers cancels that tour. Service role only.\n\nPages through the showing reply menus table of the organization, oldest first. Filters: id, contact_id.\n\nNeeds one of: org.admin.","tags":["Showing reply menus"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/showing_reply_menus/{id}":{"get":{"operationId":"get_showing_reply_menus_row","summary":"Get a showing reply menu","description":"A numbered question sent to a prospect whose \"no\" could mean more than one tour: the tours in the order listed. A reply with one of the numbers cancels that tour. Service role only.\n\nOne row of showing reply menus by id, with every column the API shows.\n\nNeeds one of: org.admin.","tags":["Showing reply menus"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/showing_response_links":{"get":{"operationId":"list_showing_response_links","summary":"List showing response links","description":"Links in showing reminders that let the prospect confirm or cancel the tour without signing in. Only the SHA-256 of the token is stored; the link expires at the end of the tour. Service role only.\n\nPages through the showing response links table of the organization, oldest first. Filters: id, showing_id.\n\nNeeds one of: org.admin.","tags":["Showing response links"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"showing_id","in":"query","required":false,"schema":{"description":"Only rows whose showing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose showing_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/showing_response_links/{id}":{"get":{"operationId":"get_showing_response_links_row","summary":"Get a showing response link","description":"Links in showing reminders that let the prospect confirm or cancel the tour without signing in. Only the SHA-256 of the token is stored; the link expires at the end of the tour. Service role only.\n\nOne row of showing response links by id, with every column the API shows.\n\nNeeds one of: org.admin.","tags":["Showing response links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/staff_labor_rates":{"get":{"operationId":"list_staff_labor_rates","summary":"List staff labor rates","description":"Effective-dated hourly labor rate per staff member (in-house technicians). add_labor_entry uses the rate in effect on the work date for a technician's own time, before the property's maintenance policy labor rate; bill_from_work_order bills in-house labor at the entry's rate. Readable by the staff member, dispatchers and payables/users managers; written by users.manage or payables.write, never by the staff member themselves.\n\nPages through the staff labor rates table of the organization, oldest first. Filters: id, user_id, effective_on, created_by.\n\nNeeds one of: maintenance.dispatch, payables.read, payables.write, users.manage.","tags":["Staff labor rates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"user_id","in":"query","required":false,"schema":{"description":"Only rows whose user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose user_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","payables.read","payables.write","users.manage"]}},"/v1/staff_labor_rates/{id}":{"get":{"operationId":"get_staff_labor_rates_row","summary":"Get a staff labor rate","description":"Effective-dated hourly labor rate per staff member (in-house technicians). add_labor_entry uses the rate in effect on the work date for a technician's own time, before the property's maintenance policy labor rate; bill_from_work_order bills in-house labor at the entry's rate. Readable by the staff member, dispatchers and payables/users managers; written by users.manage or payables.write, never by the staff member themselves.\n\nOne row of staff labor rates by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, payables.read, payables.write, users.manage.","tags":["Staff labor rates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","payables.read","payables.write","users.manage"]}},"/v1/survey_answer_options":{"get":{"operationId":"list_survey_answer_options","summary":"List survey answer options","description":"Chosen options of a multi_choice answer.\n\nPages through the survey answer options table of the organization, oldest first. Filters: id, survey_answer_id, survey_question_option_id.\n\nNeeds one of: associations.read.","tags":["Survey answer options"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"survey_answer_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_answer_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_answer_id equals this."},{"name":"survey_question_option_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_question_option_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_question_option_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/survey_answer_options/{id}":{"get":{"operationId":"get_survey_answer_options_row","summary":"Get a survey answer option","description":"Chosen options of a multi_choice answer.\n\nOne row of survey answer options by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Survey answer options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/survey_answers":{"get":{"operationId":"list_survey_answers","summary":"List survey answers","description":"Answer to one question, in the typed column for its question_type (rating and nps -> numeric_value, yes_no -> boolean_value, text -> text_value, single_choice -> survey_question_option_id, multi_choice -> survey_answer_options). NPS = % of nps answers 9-10 minus % 0-6.\n\nPages through the survey answers table of the organization, oldest first. Filters: id, survey_response_id, survey_question_id, boolean_value, survey_question_option_id.\n\nNeeds one of: associations.read.","tags":["Survey answers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"survey_response_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_response_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_response_id equals this."},{"name":"survey_question_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_question_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_question_id equals this."},{"name":"boolean_value","in":"query","required":false,"schema":{"description":"Only rows whose boolean_value equals this.","type":"boolean"},"description":"Only rows whose boolean_value equals this."},{"name":"survey_question_option_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_question_option_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_question_option_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/survey_answers/{id}":{"get":{"operationId":"get_survey_answers_row","summary":"Get a survey answer","description":"Answer to one question, in the typed column for its question_type (rating and nps -> numeric_value, yes_no -> boolean_value, text -> text_value, single_choice -> survey_question_option_id, multi_choice -> survey_answer_options). NPS = % of nps answers 9-10 minus % 0-6.\n\nOne row of survey answers by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Survey answers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/survey_invitations":{"get":{"operationId":"list_survey_invitations","summary":"List survey invitations","description":"A survey sent to one person, optionally about one lease or work order. responded_at is set when they submit.\n\nPages through the survey invitations table of the organization, oldest first. Filters: id, survey_id, contact_id, lease_id, work_order_id.\n\nNeeds one of: residents.read, residents.write.","tags":["Survey invitations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"survey_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/survey_invitations/{id}":{"get":{"operationId":"get_survey_invitations_row","summary":"Get a survey invitation","description":"A survey sent to one person, optionally about one lease or work order. responded_at is set when they submit.\n\nOne row of survey invitations by id, with every column the API shows.\n\nNeeds one of: residents.read, residents.write.","tags":["Survey invitations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/survey_question_options":{"get":{"operationId":"list_survey_question_options","summary":"List survey question options","description":"Choice of a single_choice or multi_choice survey question.\n\nPages through the survey question options table of the organization, oldest first. Filters: id, survey_question_id.\n\nNeeds one of: residents.write.","tags":["Survey question options"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"survey_question_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_question_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_question_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/survey_question_options/{id}":{"get":{"operationId":"get_survey_question_options_row","summary":"Get a survey question option","description":"Choice of a single_choice or multi_choice survey question.\n\nOne row of survey question options by id, with every column the API shows.\n\nNeeds one of: residents.write.","tags":["Survey question options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/survey_questions":{"get":{"operationId":"list_survey_questions","summary":"List survey questions","description":"Question of a survey, in display order.\n\nPages through the survey questions table of the organization, oldest first. Filters: id, survey_id, question_type, is_required.\n\nNeeds one of: residents.write.","tags":["Survey questions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"survey_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_id equals this."},{"name":"question_type","in":"query","required":false,"schema":{"description":"Only rows whose question_type equals this.","type":"string","enum":["rating","nps","single_choice","multi_choice","yes_no","text"]},"description":"Only rows whose question_type equals this."},{"name":"is_required","in":"query","required":false,"schema":{"description":"Only rows whose is_required equals this.","type":"boolean"},"description":"Only rows whose is_required equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/survey_questions/{id}":{"get":{"operationId":"get_survey_questions_row","summary":"Get a survey question","description":"Question of a survey, in display order.\n\nOne row of survey questions by id, with every column the API shows.\n\nNeeds one of: residents.write.","tags":["Survey questions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/survey_responses":{"get":{"operationId":"list_survey_responses","summary":"List survey responses","description":"One submitted survey. contact_id and lease_id are null for anonymous surveys; property_id is kept for reporting.\n\nPages through the survey responses table of the organization, oldest first. Filters: id, survey_id, survey_invitation_id, contact_id, lease_id, work_order_id, property_id.\n\nNeeds one of: residents.read.","tags":["Survey responses"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"survey_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_id equals this."},{"name":"survey_invitation_id","in":"query","required":false,"schema":{"description":"Only rows whose survey_invitation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose survey_invitation_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/survey_responses/{id}":{"get":{"operationId":"get_survey_responses_row","summary":"Get a survey response","description":"One submitted survey. contact_id and lease_id are null for anonymous surveys; property_id is kept for reporting.\n\nOne row of survey responses by id, with every column the API shows.\n\nNeeds one of: residents.read.","tags":["Survey responses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/surveys/{id}":{"get":{"operationId":"get_surveys_row","summary":"Get a survey","description":"Resident satisfaction survey (NPS, move-in, move-out, renewal, after a work order). property_id null = all properties. Answers are typed rows in survey_answers.\n\nOne row of surveys by id, with every column the API shows.\n\nNeeds one of: residents.read, residents.write.","tags":["Surveys"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/syndication_feeds":{"get":{"operationId":"list_syndication_feeds","summary":"List syndication feeds","description":"One feed per organization and listing channel (Zillow, Apartments.com, Rent.com, Zumper, other ILS). The channel polls <functions>/syndication-feed/<feed_token> and posts leads to <functions>/syndication-leads/<lead_token>. Created and changed only through configure_syndication_feed; never written by polls (fetch state is in syndication_feed_fetches). Craigslist, Facebook and the company website have no feed (manual channels / own site).\n\nPages through the syndication feeds table of the organization, oldest first. Filters: id, channel, feed_format, is_enabled, created_by, is_fees_preview_enabled.\n\nNeeds one of: marketing.write.","tags":["Syndication feeds"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"channel","in":"query","required":false,"schema":{"description":"Only rows whose channel equals this.","type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"]},"description":"Only rows whose channel equals this."},{"name":"feed_format","in":"query","required":false,"schema":{"description":"Only rows whose feed_format equals this.","type":"string","enum":["zillow_hotpads","mits_ils"]},"description":"Only rows whose feed_format equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"is_fees_preview_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_fees_preview_enabled equals this.","type":"boolean"},"description":"Only rows whose is_fees_preview_enabled equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/syndication_feeds/{id}":{"get":{"operationId":"get_syndication_feeds_row","summary":"Get a syndication feed","description":"One feed per organization and listing channel (Zillow, Apartments.com, Rent.com, Zumper, other ILS). The channel polls <functions>/syndication-feed/<feed_token> and posts leads to <functions>/syndication-leads/<lead_token>. Created and changed only through configure_syndication_feed; never written by polls (fetch state is in syndication_feed_fetches). Craigslist, Facebook and the company website have no feed (manual channels / own site).\n\nOne row of syndication feeds by id, with every column the API shows.\n\nNeeds one of: marketing.write.","tags":["Syndication feeds"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/tag_links":{"get":{"operationId":"list_tag_links","summary":"List tag links","description":"Attaches a tag to exactly one record (one nullable FK column per supported parent; no polymorphic ids).\n\nPages through the tag links table of the organization, oldest first. Filters: id, tag_id, property_id, unit_id, lease_id, contact_id, owner_id, vendor_id, work_order_id, rental_application_id, bill_id, lead_id, fixed_asset_id, capital_project_id, scope_property_id, created_by.\n\nAny key may call it.","tags":["Tag links"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"tag_id","in":"query","required":false,"schema":{"description":"Only rows whose tag_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tag_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"rental_application_id","in":"query","required":false,"schema":{"description":"Only rows whose rental_application_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rental_application_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"lead_id","in":"query","required":false,"schema":{"description":"Only rows whose lead_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lead_id equals this."},{"name":"fixed_asset_id","in":"query","required":false,"schema":{"description":"Only rows whose fixed_asset_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose fixed_asset_id equals this."},{"name":"capital_project_id","in":"query","required":false,"schema":{"description":"Only rows whose capital_project_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose capital_project_id equals this."},{"name":"scope_property_id","in":"query","required":false,"schema":{"description":"Only rows whose scope_property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose scope_property_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/tag_links/{id}":{"get":{"operationId":"get_tag_links_row","summary":"Get a tag link","description":"Attaches a tag to exactly one record (one nullable FK column per supported parent; no polymorphic ids).\n\nOne row of tag links by id, with every column the API shows.\n\nAny key may call it.","tags":["Tag links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/tags":{"get":{"operationId":"list_tags","summary":"List tags","description":"Organization-defined labels (\"VIP\", \"Section 8\", \"Needs follow-up\") that can be attached to properties, units, leases, contacts, owners, vendors, work orders, applications, bills, leads, fixed assets and capital projects through tag_links. contact_tags remains the contact-only tag list used by CRM segments.\n\nPages through the tags table of the organization, oldest first. Filters: id, created_by.\n\nAny key may call it.","tags":["Tags"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/tags/{id}":{"get":{"operationId":"get_tags_row","summary":"Get a tag","description":"Organization-defined labels (\"VIP\", \"Section 8\", \"Needs follow-up\") that can be attached to properties, units, leases, contacts, owners, vendors, work orders, applications, bills, leads, fixed assets and capital projects through tag_links. contact_tags remains the contact-only tag list used by CRM segments.\n\nOne row of tags by id, with every column the API shows.\n\nAny key may call it.","tags":["Tags"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]},"patch":{"operationId":"update_tags_row","summary":"Update a tag","description":"Organization-defined labels (\"VIP\", \"Section 8\", \"Needs follow-up\") that can be attached to properties, units, leases, contacts, owners, vendors, work orders, applications, bills, leads, fixed assets and capital projects through tag_links. contact_tags remains the contact-only tag list used by CRM segments.\n\nChanges the given fields of one row of tags and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Tags"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"Name of the tag."},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"Description of the tag."},{"type":"null"}]},"tone":{"type":"string","maxLength":100000,"description":"Keystone design token tone used to draw the tag chip (never a raw color)."},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the row was archived (hidden from pickers, kept for history); null = active."},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/task_checklist_items":{"get":{"operationId":"list_task_checklist_items","summary":"List task checklist items","description":"Sub-steps of a task, in display order (position). Copied to the next occurrence of recurring tasks (unchecked).\n\nPages through the task checklist items table of the organization, oldest first. Filters: id, task_id, is_done, done_by.\n\nAny key may call it.","tags":["Task checklist items"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"is_done","in":"query","required":false,"schema":{"description":"Only rows whose is_done equals this.","type":"boolean"},"description":"Only rows whose is_done equals this."},{"name":"done_by","in":"query","required":false,"schema":{"description":"Only rows whose done_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose done_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/task_checklist_items/{id}":{"get":{"operationId":"get_task_checklist_items_row","summary":"Get a task checklist item","description":"Sub-steps of a task, in display order (position). Copied to the next occurrence of recurring tasks (unchecked).\n\nOne row of task checklist items by id, with every column the API shows.\n\nAny key may call it.","tags":["Task checklist items"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/tasks/{id}":{"get":{"operationId":"get_tasks_row","summary":"Get a task","description":"Staff to-dos (call back a tenant, renew a license, follow up on a lead), optionally about one subject via explicit nullable FKs, optionally recurring. Created manually, by automations, or by the AI from conversations and calls (source = ai, ai_rationale).\n\nOne row of tasks by id, with every column the API shows.\n\nAny key may call it.","tags":["Tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":[]}},"/v1/tax_form_1099_file_downloads":{"get":{"operationId":"list_tax_form_1099_file_downloads","summary":"List tax form 1099 file downloads","description":"One row per download of a 1099 filing file: who downloaded which forms and when. No TIN is stored here.\n\nPages through the tax form 1099 file downloads table of the organization, oldest first. Filters: id, downloaded_by.\n\nNeeds one of: owners.read, payables.read.","tags":["Tax form 1099 file downloads"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"downloaded_by","in":"query","required":false,"schema":{"description":"Only rows whose downloaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose downloaded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/tax_form_1099_file_downloads/{id}":{"get":{"operationId":"get_tax_form_1099_file_downloads_row","summary":"Get a tax form 1099 file download","description":"One row per download of a 1099 filing file: who downloaded which forms and when. No TIN is stored here.\n\nOne row of tax form 1099 file downloads by id, with every column the API shows.\n\nNeeds one of: owners.read, payables.read.","tags":["Tax form 1099 file downloads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/tax_forms_1099":{"get":{"operationId":"list_tax_forms_1099","summary":"List tax forms 1099","description":"One Form 1099 (NEC or MISC) per tax year, payer entity and recipient (a vendor, or an owner for rents collected on their behalf), including e-file status and corrections. Payer = the accounting entity whose books paid (journal_lines.accounting_entity_id: the management company, an owner entity, an association or a fund). Drafts are generated by generate_vendor_1099_forms (vendors, 00010) and generate_owner_1099_forms (owners, 00011); a correction is a new row pointing at the filed original (corrects_tax_form_1099_id), whose status becomes corrected.\n\nPages through the tax forms 1099 table of the organization, oldest first. Filters: id, form_type, payer_accounting_entity_id, vendor_id, owner_id, status, corrects_tax_form_1099_id, document_id, created_by, owner_tax_summary_id, is_interim, interim_through_on, furnished_by.\n\nNeeds one of: owners.read, payables.read.","tags":["Tax forms 1099"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"form_type","in":"query","required":false,"schema":{"description":"Only rows whose form_type equals this.","type":"string","enum":["nec","misc"]},"description":"Only rows whose form_type equals this."},{"name":"payer_accounting_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose payer_accounting_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose payer_accounting_entity_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","final","filed","accepted","rejected","corrected","void"]},"description":"Only rows whose status equals this."},{"name":"corrects_tax_form_1099_id","in":"query","required":false,"schema":{"description":"Only rows whose corrects_tax_form_1099_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose corrects_tax_form_1099_id equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"owner_tax_summary_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_tax_summary_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_tax_summary_id equals this."},{"name":"is_interim","in":"query","required":false,"schema":{"description":"Only rows whose is_interim equals this.","type":"boolean"},"description":"Only rows whose is_interim equals this."},{"name":"interim_through_on","in":"query","required":false,"schema":{"description":"Only rows whose interim_through_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose interim_through_on equals this."},{"name":"furnished_by","in":"query","required":false,"schema":{"description":"Only rows whose furnished_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose furnished_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/tax_forms_1099/{id}":{"get":{"operationId":"get_tax_forms_1099_row","summary":"Get a tax forms 1099","description":"One Form 1099 (NEC or MISC) per tax year, payer entity and recipient (a vendor, or an owner for rents collected on their behalf), including e-file status and corrections. Payer = the accounting entity whose books paid (journal_lines.accounting_entity_id: the management company, an owner entity, an association or a fund). Drafts are generated by generate_vendor_1099_forms (vendors, 00010) and generate_owner_1099_forms (owners, 00011); a correction is a new row pointing at the filed original (corrects_tax_form_1099_id), whose status becomes corrected.\n\nOne row of tax forms 1099 by id, with every column the API shows.\n\nNeeds one of: owners.read, payables.read.","tags":["Tax forms 1099"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/tax_profiles":{"get":{"operationId":"list_tax_profiles","summary":"List tax profiles","description":"W-9 (or W-8) tax identity of a vendor or owner contact, for 1099 reporting. Effective dated: a new form supersedes the previous one (ends_on set). The full TIN is never stored here: only the last 4 digits plus a reference to the encrypted value in Supabase Vault / the tax filing provider.\n\nPages through the tax profiles table of the organization, oldest first. Filters: id, contact_id, tax_classification, tin_type, tin_match_status, tax_address_id, is_subject_to_backup_withholding, is_foreign, signed_on, received_on, status, effective_on, ends_on, created_by.\n\nNeeds one of: owners.read, owners.write, payables.read, payables.write.","tags":["Tax profiles"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"tax_classification","in":"query","required":false,"schema":{"description":"Only rows whose tax_classification equals this.","type":"string","enum":["individual_sole_proprietor","c_corporation","s_corporation","partnership","trust_estate","llc_c_corporation","llc_s_corporation","llc_partnership","llc_single_member","tax_exempt_organization","government","foreign_person","other"]},"description":"Only rows whose tax_classification equals this."},{"name":"tin_type","in":"query","required":false,"schema":{"description":"Only rows whose tin_type equals this.","type":"string","enum":["ssn","ein","itin","foreign"]},"description":"Only rows whose tin_type equals this."},{"name":"tin_match_status","in":"query","required":false,"schema":{"description":"Only rows whose tin_match_status equals this.","type":"string","enum":["not_checked","matched","mismatched","pending"]},"description":"Only rows whose tin_match_status equals this."},{"name":"tax_address_id","in":"query","required":false,"schema":{"description":"Only rows whose tax_address_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tax_address_id equals this."},{"name":"is_subject_to_backup_withholding","in":"query","required":false,"schema":{"description":"Only rows whose is_subject_to_backup_withholding equals this.","type":"boolean"},"description":"Only rows whose is_subject_to_backup_withholding equals this."},{"name":"is_foreign","in":"query","required":false,"schema":{"description":"Only rows whose is_foreign equals this.","type":"boolean"},"description":"Only rows whose is_foreign equals this."},{"name":"signed_on","in":"query","required":false,"schema":{"description":"Only rows whose signed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose signed_on equals this."},{"name":"received_on","in":"query","required":false,"schema":{"description":"Only rows whose received_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose received_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["requested","received","verified","invalid"]},"description":"Only rows whose status equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write","payables.read","payables.write"]}},"/v1/tax_profiles/{id}":{"get":{"operationId":"get_tax_profiles_row","summary":"Get a tax profile","description":"W-9 (or W-8) tax identity of a vendor or owner contact, for 1099 reporting. Effective dated: a new form supersedes the previous one (ends_on set). The full TIN is never stored here: only the last 4 digits plus a reference to the encrypted value in Supabase Vault / the tax filing provider.\n\nOne row of tax profiles by id, with every column the API shows.\n\nNeeds one of: owners.read, owners.write, payables.read, payables.write.","tags":["Tax profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","owners.write","payables.read","payables.write"]}},"/v1/tenant_improvement_allowances":{"get":{"operationId":"list_tenant_improvement_allowances","summary":"List tenant improvement allowances","description":"Landlord-funded tenant improvement (TI) allowance for a lease. Draws are ti_disbursements, each paid through a payables bill coded to gl_account_id (usually a capitalized TI asset). Remaining = allowance_cents - non-rejected disbursements.\n\nPages through the tenant improvement allowances table of the organization, oldest first. Filters: id, property_id, lease_id, unit_id, gl_account_id, status, expires_on, is_amortized_into_rent, requires_lien_waivers, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Tenant improvement allowances"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","active","fully_disbursed","expired","canceled"]},"description":"Only rows whose status equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"is_amortized_into_rent","in":"query","required":false,"schema":{"description":"Only rows whose is_amortized_into_rent equals this.","type":"boolean"},"description":"Only rows whose is_amortized_into_rent equals this."},{"name":"requires_lien_waivers","in":"query","required":false,"schema":{"description":"Only rows whose requires_lien_waivers equals this.","type":"boolean"},"description":"Only rows whose requires_lien_waivers equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_tenant_improvement_allowances_row","summary":"Create a tenant improvement allowance","description":"Landlord-funded tenant improvement (TI) allowance for a lease. Draws are ti_disbursements, each paid through a payables bill coded to gl_account_id (usually a capitalized TI asset). Remaining = allowance_cents - non-rejected disbursements.\n\nInserts one row of tenant improvement allowances in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Tenant improvement allowances"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"allowance_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"allowance cents"},"allowance_per_sqft_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"allowance per sqft cents"},{"type":"null"}]},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"GL account the TI bills are coded to (capitalized tenant improvements asset, or an expense account)."},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"is_amortized_into_rent":{"type":"boolean","description":"Allowance above base is repaid by the tenant as additional rent over amortization_months at amortization_rate."},"amortization_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amortization months"},{"type":"null"}]},"amortization_rate":{"anyOf":[{"type":"number","description":"Annual interest rate for amortized TI, 0.08 = 8%."},{"type":"null"}]},"requires_lien_waivers":{"type":"boolean","description":"requires lien waivers"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["property_id","lease_id","allowance_cents","gl_account_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/tenant_improvement_allowances/{id}":{"get":{"operationId":"get_tenant_improvement_allowances_row","summary":"Get a tenant improvement allowance","description":"Landlord-funded tenant improvement (TI) allowance for a lease. Draws are ti_disbursements, each paid through a payables bill coded to gl_account_id (usually a capitalized TI asset). Remaining = allowance_cents - non-rejected disbursements.\n\nOne row of tenant improvement allowances by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Tenant improvement allowances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_tenant_improvement_allowances_row","summary":"Update a tenant improvement allowance","description":"Landlord-funded tenant improvement (TI) allowance for a lease. Draws are ti_disbursements, each paid through a payables bill coded to gl_account_id (usually a capitalized TI asset). Remaining = allowance_cents - non-rejected disbursements.\n\nChanges the given fields of one row of tenant improvement allowances and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Tenant improvement allowances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"allowance_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"allowance cents"},"allowance_per_sqft_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"allowance per sqft cents"},{"type":"null"}]},"gl_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"GL account the TI bills are coded to (capitalized tenant improvements asset, or an expense account)."},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"is_amortized_into_rent":{"type":"boolean","description":"Allowance above base is repaid by the tenant as additional rent over amortization_months at amortization_rate."},"amortization_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amortization months"},{"type":"null"}]},"amortization_rate":{"anyOf":[{"type":"number","description":"Annual interest rate for amortized TI, 0.08 = 8%."},{"type":"null"}]},"requires_lien_waivers":{"type":"boolean","description":"requires lien waivers"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]},"delete":{"operationId":"delete_tenant_improvement_allowances_row","summary":"Delete a tenant improvement allowance","description":"Landlord-funded tenant improvement (TI) allowance for a lease. Draws are ti_disbursements, each paid through a payables bill coded to gl_account_id (usually a capitalized TI asset). Remaining = allowance_cents - non-rejected disbursements.\n\nDeletes one row of tenant improvement allowances. The database refuses it where other records still need the row.\n\nNeeds one of: leasing.write.","tags":["Tenant improvement allowances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/tenant_sales_reports":{"get":{"operationId":"list_tenant_sales_reports","summary":"List tenant sales reports","description":"Gross sales reported by a retail tenant for a period (tenant portal or staff entry), verified by staff, then used to bill percentage rent. Also the source for sales-per-square-foot and occupancy-cost reporting.\n\nPages through the tenant sales reports table of the organization, oldest first. Filters: id, property_id, lease_id, percentage_rent_term_id, period_start_on, period_end_on, status, is_estimated, submitted_by, verified_by, charge_id, attested_by.\n\nNeeds one of: receivables.read.","tags":["Tenant sales reports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"percentage_rent_term_id","in":"query","required":false,"schema":{"description":"Only rows whose percentage_rent_term_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose percentage_rent_term_id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["submitted","verified","disputed","billed"]},"description":"Only rows whose status equals this."},{"name":"is_estimated","in":"query","required":false,"schema":{"description":"Only rows whose is_estimated equals this.","type":"boolean"},"description":"Only rows whose is_estimated equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"verified_by","in":"query","required":false,"schema":{"description":"Only rows whose verified_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose verified_by equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"attested_by","in":"query","required":false,"schema":{"description":"Only rows whose attested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose attested_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/tenant_sales_reports/{id}":{"get":{"operationId":"get_tenant_sales_reports_row","summary":"Get a tenant sales report","description":"Gross sales reported by a retail tenant for a period (tenant portal or staff entry), verified by staff, then used to bill percentage rent. Also the source for sales-per-square-foot and occupancy-cost reporting.\n\nOne row of tenant sales reports by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Tenant sales reports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/tenant_work_orders":{"get":{"operationId":"list_tenant_work_orders","summary":"List tenant work orders","description":"Tenant portal view of work orders on the caller's leases or requests: only tenant-safe columns (no internal notes, costs, NTE, vendor or approval data). Deliberately runs as the view owner (security_invoker = false) because tenants have no SELECT policy on work_orders;\n\nPages through the tenant work orders view of the organization, oldest first. Filters: id, property_id, unit_id, lease_id, service_request_id, category_id, priority, status, has_permission_to_enter, has_pets, is_vendor_assigned.\n\nNeeds one of: org.admin.","tags":["Tenant work orders"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"priority","in":"query","required":false,"schema":{"description":"Only rows whose priority equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose priority equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["new","assigned","scheduled","in_progress","on_hold","awaiting_parts","awaiting_approval","completed","verified","canceled"]},"description":"Only rows whose status equals this."},{"name":"has_permission_to_enter","in":"query","required":false,"schema":{"description":"Only rows whose has_permission_to_enter equals this.","type":"boolean"},"description":"Only rows whose has_permission_to_enter equals this."},{"name":"has_pets","in":"query","required":false,"schema":{"description":"Only rows whose has_pets equals this.","type":"boolean"},"description":"Only rows whose has_pets equals this."},{"name":"is_vendor_assigned","in":"query","required":false,"schema":{"description":"Only rows whose is_vendor_assigned equals this.","type":"boolean"},"description":"Only rows whose is_vendor_assigned equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/tenant_work_orders/{id}":{"get":{"operationId":"get_tenant_work_orders_row","summary":"Get a tenant work order","description":"Tenant portal view of work orders on the caller's leases or requests: only tenant-safe columns (no internal notes, costs, NTE, vendor or approval data). Deliberately runs as the view owner (security_invoker = false) because tenants have no SELECT policy on work_orders;\n\nOne row of tenant work orders by id, with every column the API shows.\n\nNeeds one of: org.admin.","tags":["Tenant work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/ti_disbursements":{"get":{"operationId":"list_ti_disbursements","summary":"List ti disbursements","description":"A draw against a TI allowance: a contractor invoice or a reimbursement to the tenant. Approval creates a payables bill (bill_id) to the vendor; tenant reimbursements use a vendor record for the tenant's contact. Sum of non-rejected/canceled draws may not exceed the allowance.\n\nPages through the ti disbursements table of the organization, oldest first. Filters: id, property_id, tenant_improvement_allowance_id, payee_type, vendor_id, status, requested_on, lien_waiver_received, approved_by, bill_id, created_by.\n\nNeeds one of: payables.read.","tags":["Ti disbursements"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"tenant_improvement_allowance_id","in":"query","required":false,"schema":{"description":"Only rows whose tenant_improvement_allowance_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tenant_improvement_allowance_id equals this."},{"name":"payee_type","in":"query","required":false,"schema":{"description":"Only rows whose payee_type equals this.","type":"string","enum":["contractor","tenant_reimbursement"]},"description":"Only rows whose payee_type equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["requested","approved","billed","rejected","canceled"]},"description":"Only rows whose status equals this."},{"name":"requested_on","in":"query","required":false,"schema":{"description":"Only rows whose requested_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose requested_on equals this."},{"name":"lien_waiver_received","in":"query","required":false,"schema":{"description":"Only rows whose lien_waiver_received equals this.","type":"boolean"},"description":"Only rows whose lien_waiver_received equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/ti_disbursements/{id}":{"get":{"operationId":"get_ti_disbursements_row","summary":"Get a ti disbursement","description":"A draw against a TI allowance: a contractor invoice or a reimbursement to the tenant. Approval creates a payables bill (bill_id) to the vendor; tenant reimbursements use a vendor record for the tenant's contact. Sum of non-rejected/canceled draws may not exceed the allowance.\n\nOne row of ti disbursements by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Ti disbursements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/trust_audit_packages":{"get":{"operationId":"list_trust_audit_packages","summary":"List trust audit packages","description":"One trust audit package: a ZIP for one trust bank account and period with the three-way reconciliation, the bank reconciliation, the trial balance, the general ledger detail, owner and tenant ledger balances, the security deposit register and a cover page. request_trust_audit_package queues it; the trust-audit-package job builds it as the requester through the private.*trust_audit_package* functions. Same storage and download rules as org_data_exports.\n\nPages through the trust audit packages table of the organization, oldest first. Filters: id, bank_account_id, period_start_on, period_end_on, requested_by, status, run_id, last_downloaded_by.\n\nNeeds one of: banking.read, gl.read.","tags":["Trust audit packages"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"period_start_on","in":"query","required":false,"schema":{"description":"Only rows whose period_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_start_on equals this."},{"name":"period_end_on","in":"query","required":false,"schema":{"description":"Only rows whose period_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_end_on equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["queued","running","ready","failed","expired"]},"description":"Only rows whose status equals this."},{"name":"run_id","in":"query","required":false,"schema":{"description":"Only rows whose run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose run_id equals this."},{"name":"last_downloaded_by","in":"query","required":false,"schema":{"description":"Only rows whose last_downloaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose last_downloaded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read"]}},"/v1/trust_audit_packages/{id}":{"get":{"operationId":"get_trust_audit_packages_row","summary":"Get a trust audit package","description":"One trust audit package: a ZIP for one trust bank account and period with the three-way reconciliation, the bank reconciliation, the trial balance, the general ledger detail, owner and tenant ledger balances, the security deposit register and a cover page. request_trust_audit_package queues it; the trust-audit-package job builds it as the requester through the private.*trust_audit_package* functions. Same storage and download rules as org_data_exports.\n\nOne row of trust audit packages by id, with every column the API shows.\n\nNeeds one of: banking.read, gl.read.","tags":["Trust audit packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read"]}},"/v1/trust_reconciliation_snapshot_lines":{"get":{"operationId":"list_trust_reconciliation_snapshot_lines","summary":"List trust reconciliation snapshot lines","description":"Per property fund breakdown of a saved three-way trust reconciliation.\n\nPages through the trust reconciliation snapshot lines table of the organization, oldest first. Filters: id, trust_reconciliation_snapshot_id, property_id, is_owner_ledger_negative.\n\nNeeds one of: banking.read.","tags":["Trust reconciliation snapshot lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"trust_reconciliation_snapshot_id","in":"query","required":false,"schema":{"description":"Only rows whose trust_reconciliation_snapshot_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose trust_reconciliation_snapshot_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"is_owner_ledger_negative","in":"query","required":false,"schema":{"description":"Only rows whose is_owner_ledger_negative equals this.","type":"boolean"},"description":"Only rows whose is_owner_ledger_negative equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/trust_reconciliation_snapshot_lines/{id}":{"get":{"operationId":"get_trust_reconciliation_snapshot_lines_row","summary":"Get a trust reconciliation snapshot line","description":"Per property fund breakdown of a saved three-way trust reconciliation.\n\nOne row of trust reconciliation snapshot lines by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Trust reconciliation snapshot lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/trust_reconciliation_snapshots":{"get":{"operationId":"list_trust_reconciliation_snapshots","summary":"List trust reconciliation snapshots","description":"Saved three-way trust reconciliation of a trust bank account on a date: (1) adjusted bank balance from the bank reconciliation, (2) book balance of the account's GL, (3) sum of client ledgers (tenant deposits and prepaid rent, owner funds, other money held) of the property funds whose cash sits in the account. Figures are a frozen report (what was signed off); live figures come from three_way_trust_reconciliation.\n\nPages through the trust reconciliation snapshots table of the organization, oldest first. Filters: id, bank_account_id, as_of_on, bank_reconciliation_id, is_balanced, status, prepared_by, approved_by.\n\nNeeds one of: banking.read.","tags":["Trust reconciliation snapshots"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"as_of_on","in":"query","required":false,"schema":{"description":"Only rows whose as_of_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose as_of_on equals this."},{"name":"bank_reconciliation_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_reconciliation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_reconciliation_id equals this."},{"name":"is_balanced","in":"query","required":false,"schema":{"description":"Only rows whose is_balanced equals this.","type":"boolean"},"description":"Only rows whose is_balanced equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["prepared","approved","superseded"]},"description":"Only rows whose status equals this."},{"name":"prepared_by","in":"query","required":false,"schema":{"description":"Only rows whose prepared_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose prepared_by equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/trust_reconciliation_snapshots/{id}":{"get":{"operationId":"get_trust_reconciliation_snapshots_row","summary":"Get a trust reconciliation snapshot","description":"Saved three-way trust reconciliation of a trust bank account on a date: (1) adjusted bank balance from the bank reconciliation, (2) book balance of the account's GL, (3) sum of client ledgers (tenant deposits and prepaid rent, owner funds, other money held) of the property funds whose cash sits in the account. Figures are a frozen report (what was signed off); live figures come from three_way_trust_reconciliation.\n\nOne row of trust reconciliation snapshots by id, with every column the API shows.\n\nNeeds one of: banking.read.","tags":["Trust reconciliation snapshots"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/unclaimed_property":{"get":{"operationId":"list_unclaimed_property","summary":"List unclaimed property","description":"Money owed to someone who cannot be reached (escheatment register): former tenants' credit balances and undelivered deposit refunds, uncashed checks to owners/vendors/tenants. Tracked from last owner activity to its dormancy date, through due-diligence letters, the state report and remittance. Remitting a held balance (credit balance, deposit refund, other) posts Dr the liability (PREPAID_RENT, SECURITY_DEPOSITS_HELD, or the given account) / Cr bank in property_id's fund; uncashed checks are re-pointed to the state without a new entry. Status: monitoring -> due_diligence_sent -> reportable ->\n\nPages through the unclaimed property table of the organization, oldest first. Filters: id, source, contact_id, property_id, lease_id, owner_id, vendor_id, check_id, last_activity_on, dormant_on, status, due_diligence_sent_on, report_id, reported_on, remitted_on, remittance_bank_account_id, journal_entry_id, claimed_on, created_by.\n\nNeeds one of: legal.read, receivables.read, receivables.write.","tags":["Unclaimed property"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["tenant_credit_balance","security_deposit_refund","uncashed_check","owner_distribution","vendor_credit","other"]},"description":"Only rows whose source equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"owner_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"check_id","in":"query","required":false,"schema":{"description":"Only rows whose check_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose check_id equals this."},{"name":"last_activity_on","in":"query","required":false,"schema":{"description":"Only rows whose last_activity_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose last_activity_on equals this."},{"name":"dormant_on","in":"query","required":false,"schema":{"description":"Only rows whose dormant_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose dormant_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["monitoring","due_diligence_sent","reportable","reported","remitted","claimed_by_owner","resolved"]},"description":"Only rows whose status equals this."},{"name":"due_diligence_sent_on","in":"query","required":false,"schema":{"description":"Only rows whose due_diligence_sent_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_diligence_sent_on equals this."},{"name":"report_id","in":"query","required":false,"schema":{"description":"Only rows whose report_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose report_id equals this."},{"name":"reported_on","in":"query","required":false,"schema":{"description":"Only rows whose reported_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reported_on equals this."},{"name":"remitted_on","in":"query","required":false,"schema":{"description":"Only rows whose remitted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose remitted_on equals this."},{"name":"remittance_bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose remittance_bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose remittance_bank_account_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"claimed_on","in":"query","required":false,"schema":{"description":"Only rows whose claimed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose claimed_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","receivables.read","receivables.write"]}},"/v1/unclaimed_property/{id}":{"get":{"operationId":"get_unclaimed_property_row","summary":"Get an unclaimed property","description":"Money owed to someone who cannot be reached (escheatment register): former tenants' credit balances and undelivered deposit refunds, uncashed checks to owners/vendors/tenants. Tracked from last owner activity to its dormancy date, through due-diligence letters, the state report and remittance. Remitting a held balance (credit balance, deposit refund, other) posts Dr the liability (PREPAID_RENT, SECURITY_DEPOSITS_HELD, or the given account) / Cr bank in property_id's fund; uncashed checks are re-pointed to the state without a new entry. Status: monitoring -> due_diligence_sent -> reportable ->\n\nOne row of unclaimed property by id, with every column the API shows.\n\nNeeds one of: legal.read, receivables.read, receivables.write.","tags":["Unclaimed property"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","receivables.read","receivables.write"]}},"/v1/unclaimed_property_reports":{"get":{"operationId":"list_unclaimed_property_reports","summary":"List unclaimed property reports","description":"Annual holder report to a state unclaimed-property program: items dormant as of cutoff_on, filed by due_on, then remitted. item_count and total_cents are snapshotted when filed. A negative report (nothing to report) is filed where the state requires it.\n\nPages through the unclaimed property reports table of the organization, oldest first. Filters: id, cutoff_on, due_on, status, is_negative_report, filed_on, remitted_on, document_id, created_by.\n\nNeeds one of: legal.read, receivables.read, receivables.write.","tags":["Unclaimed property reports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"cutoff_on","in":"query","required":false,"schema":{"description":"Only rows whose cutoff_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cutoff_on equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","filed","remitted","amended"]},"description":"Only rows whose status equals this."},{"name":"is_negative_report","in":"query","required":false,"schema":{"description":"Only rows whose is_negative_report equals this.","type":"boolean"},"description":"Only rows whose is_negative_report equals this."},{"name":"filed_on","in":"query","required":false,"schema":{"description":"Only rows whose filed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose filed_on equals this."},{"name":"remitted_on","in":"query","required":false,"schema":{"description":"Only rows whose remitted_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose remitted_on equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","receivables.read","receivables.write"]}},"/v1/unclaimed_property_reports/{id}":{"get":{"operationId":"get_unclaimed_property_reports_row","summary":"Get an unclaimed property report","description":"Annual holder report to a state unclaimed-property program: items dormant as of cutoff_on, filed by due_on, then remitted. item_count and total_cents are snapshotted when filed. A negative report (nothing to report) is filed where the state requires it.\n\nOne row of unclaimed property reports by id, with every column the API shows.\n\nNeeds one of: legal.read, receivables.read, receivables.write.","tags":["Unclaimed property reports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.read","receivables.read","receivables.write"]}},"/v1/unclaimed_property_rules":{"get":{"operationId":"list_unclaimed_property_rules","summary":"List unclaimed property rules","description":"Escheatment rules per state the organization reports to, by property type: dormancy period, due-diligence letter window and threshold, annual report due date and the dormancy cutoff date. Organization-maintained (verify against each state's current statute).\n\nPages through the unclaimed property rules table of the organization, oldest first. Filters: id, source.\n\nNeeds one of: settings.write.","tags":["Unclaimed property rules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"source","in":"query","required":false,"schema":{"description":"Only rows whose source equals this.","type":"string","enum":["tenant_credit_balance","security_deposit_refund","uncashed_check","owner_distribution","vendor_credit","other"]},"description":"Only rows whose source equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/unclaimed_property_rules/{id}":{"get":{"operationId":"get_unclaimed_property_rules_row","summary":"Get an unclaimed property rule","description":"Escheatment rules per state the organization reports to, by property type: dormancy period, due-diligence letter window and threshold, annual report due date and the dormancy cutoff date. Organization-maintained (verify against each state's current statute).\n\nOne row of unclaimed property rules by id, with every column the API shows.\n\nNeeds one of: settings.write.","tags":["Unclaimed property rules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/unit_legal_rents":{"get":{"operationId":"list_unit_legal_rents","summary":"List unit legal rents","description":"Dated history of a regulated unit's legal regulated rent and why it changed. The newest row (by effective date) is the unit's legal_rent_cents. Rows are added, never changed: a correction is a new row.\n\nPages through the unit legal rents table of the organization, oldest first. Filters: id, property_id, unit_id, effective_on, lease_id, rent_guidelines_order_id, created_by.\n\nNeeds one of: affordable.read, properties.read.","tags":["Unit legal rents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"rent_guidelines_order_id","in":"query","required":false,"schema":{"description":"Only rows whose rent_guidelines_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rent_guidelines_order_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","properties.read"]}},"/v1/unit_legal_rents/{id}":{"get":{"operationId":"get_unit_legal_rents_row","summary":"Get a unit legal rent","description":"Dated history of a regulated unit's legal regulated rent and why it changed. The newest row (by effective date) is the unit's legal_rent_cents. Rows are added, never changed: a correction is a new row.\n\nOne row of unit legal rents by id, with every column the API shows.\n\nNeeds one of: affordable.read, properties.read.","tags":["Unit legal rents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","properties.read"]}},"/v1/unit_photos":{"get":{"operationId":"list_unit_photos","summary":"List unit photos","description":"Photos of a unit, ordered for listings. Inspection photos belong to inspection_items, not here.\n\nPages through the unit photos table of the organization, oldest first. Filters: id, unit_id, is_cover, is_marketing, taken_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Unit photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"is_cover","in":"query","required":false,"schema":{"description":"Only rows whose is_cover equals this.","type":"boolean"},"description":"Only rows whose is_cover equals this."},{"name":"is_marketing","in":"query","required":false,"schema":{"description":"Only rows whose is_marketing equals this.","type":"boolean"},"description":"Only rows whose is_marketing equals this."},{"name":"taken_on","in":"query","required":false,"schema":{"description":"Only rows whose taken_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose taken_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_unit_photos_row","summary":"Create a unit photo","description":"Photos of a unit, ordered for listings. Inspection photos belong to inspection_items, not here.\n\nInserts one row of unit photos in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Unit photos"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"storage_bucket":{"type":"string","maxLength":100000,"description":"storage bucket"},"storage_path":{"type":"string","maxLength":100000,"description":"storage path"},"caption":{"anyOf":[{"type":"string","maxLength":100000,"description":"caption"},{"type":"null"}]},"alt_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"alt text"},{"type":"null"}]},"room":{"anyOf":[{"type":"string","maxLength":100000,"description":"Room shown, e.g. Kitchen, Bedroom 1."},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"is_cover":{"type":"boolean","description":"Main photo of the unit. At most one per unit."},"is_marketing":{"type":"boolean","description":"is marketing"},"width_px":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"width px"},{"type":"null"}]},"height_px":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"height px"},{"type":"null"}]},"taken_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"taken on"},{"type":"null"}]}},"required":["unit_id","storage_path"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/unit_photos/{id}":{"get":{"operationId":"get_unit_photos_row","summary":"Get a unit photo","description":"Photos of a unit, ordered for listings. Inspection photos belong to inspection_items, not here.\n\nOne row of unit photos by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Unit photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/unit_turn_tasks":{"get":{"operationId":"list_unit_turn_tasks","summary":"List unit turn tasks","description":"Checklist steps of a unit turn (trash out, paint, carpet, clean, re-key, final walk) with assignee, linked work order and estimated vs actual cost. Marked done automatically when the linked work order completes.\n\nPages through the unit turn tasks table of the organization, oldest first. Filters: id, unit_turn_id, category_id, status, assigned_user_id, vendor_id, work_order_id, due_on.\n\nNeeds one of: maintenance.write.","tags":["Unit turn tasks"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"unit_turn_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_turn_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_turn_id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["pending","in_progress","done","skipped"]},"description":"Only rows whose status equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]},"post":{"operationId":"create_unit_turn_tasks_row","summary":"Create a unit turn task","description":"Checklist steps of a unit turn (trash out, paint, carpet, clean, re-key, final walk) with assignee, linked work order and estimated vs actual cost. Marked done automatically when the linked work order completes.\n\nInserts one row of unit turn tasks in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write.","tags":["Unit turn tasks"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_turn_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit turn id"},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"estimated_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated cost cents"},{"type":"null"}]},"actual_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"actual cost cents"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["unit_turn_id","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/unit_turn_tasks/{id}":{"get":{"operationId":"get_unit_turn_tasks_row","summary":"Get a unit turn task","description":"Checklist steps of a unit turn (trash out, paint, carpet, clean, re-key, final walk) with assignee, linked work order and estimated vs actual cost. Marked done automatically when the linked work order completes.\n\nOne row of unit turn tasks by id, with every column the API shows.\n\nNeeds one of: maintenance.write.","tags":["Unit turn tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]},"patch":{"operationId":"update_unit_turn_tasks_row","summary":"Update a unit turn task","description":"Checklist steps of a unit turn (trash out, paint, carpet, clean, re-key, final walk) with assignee, linked work order and estimated vs actual cost. Marked done automatically when the linked work order completes.\n\nChanges the given fields of one row of unit turn tasks and returns it. Fields left out stay as they are.\n\nNeeds one of: maintenance.write.","tags":["Unit turn tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_turn_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit turn id"},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"title":{"type":"string","maxLength":100000,"description":"title"},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"estimated_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated cost cents"},{"type":"null"}]},"actual_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"actual cost cents"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]},"delete":{"operationId":"delete_unit_turn_tasks_row","summary":"Delete a unit turn task","description":"Checklist steps of a unit turn (trash out, paint, carpet, clean, re-key, final walk) with assignee, linked work order and estimated vs actual cost. Marked done automatically when the linked work order completes.\n\nDeletes one row of unit turn tasks. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.write.","tags":["Unit turn tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/unit_vacancy_blockers":{"get":{"operationId":"list_unit_vacancy_blockers","summary":"List unit vacancy blockers","description":"What is holding a vacant unit back, who owns the next step, and when occupancy is expected. A unit awaiting repairs needs a different response from one awaiting an agency approval. Open while resolved_at is null.\n\nPages through the unit vacancy blockers table of the organization, oldest first. Filters: id, property_id, unit_id, blocker_type, agency_status, owner_user_id, expected_resolution_on, expected_move_in_on, created_by.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Unit vacancy blockers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"blocker_type","in":"query","required":false,"schema":{"description":"Only rows whose blocker_type equals this.","type":"string","enum":["repairs","inspection","agency_approval","certification","application","lease_signing","pricing","contract_reinstatement","other"]},"description":"Only rows whose blocker_type equals this."},{"name":"agency_status","in":"query","required":false,"schema":{"description":"Only rows whose agency_status equals this.","type":"string","enum":["not_needed","not_submitted","submitted","approved","rejected"]},"description":"Only rows whose agency_status equals this."},{"name":"owner_user_id","in":"query","required":false,"schema":{"description":"Only rows whose owner_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose owner_user_id equals this."},{"name":"expected_resolution_on","in":"query","required":false,"schema":{"description":"Only rows whose expected_resolution_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expected_resolution_on equals this."},{"name":"expected_move_in_on","in":"query","required":false,"schema":{"description":"Only rows whose expected_move_in_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expected_move_in_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"post":{"operationId":"create_unit_vacancy_blockers_row","summary":"Create a unit vacancy blocker","description":"What is holding a vacant unit back, who owns the next step, and when occupancy is expected. A unit awaiting repairs needs a different response from one awaiting an agency approval. Open while resolved_at is null.\n\nInserts one row of unit vacancy blockers in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: leasing.write.","tags":["Unit vacancy blockers"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"blocker_type":{"type":"string","enum":["repairs","inspection","agency_approval","certification","application","lease_signing","pricing","contract_reinstatement","other"],"description":"blocker type"},"detail":{"anyOf":[{"type":"string","maxLength":100000,"description":"detail"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"expected_resolution_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expected resolution on"},{"type":"null"}]},"expected_move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When occupancy and rent are expected to begin once the blocker clears."},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"resolved at"},{"type":"null"}]}},"required":["property_id","unit_id","blocker_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/unit_vacancy_blockers/{id}":{"get":{"operationId":"get_unit_vacancy_blockers_row","summary":"Get a unit vacancy blocker","description":"What is holding a vacant unit back, who owns the next step, and when occupancy is expected. A unit awaiting repairs needs a different response from one awaiting an agency approval. Open while resolved_at is null.\n\nOne row of unit vacancy blockers by id, with every column the API shows.\n\nNeeds one of: leasing.read, leasing.write.","tags":["Unit vacancy blockers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write"]},"patch":{"operationId":"update_unit_vacancy_blockers_row","summary":"Update a unit vacancy blocker","description":"What is holding a vacant unit back, who owns the next step, and when occupancy is expected. A unit awaiting repairs needs a different response from one awaiting an agency approval. Open while resolved_at is null.\n\nChanges the given fields of one row of unit vacancy blockers and returns it. Fields left out stay as they are.\n\nNeeds one of: leasing.write.","tags":["Unit vacancy blockers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"blocker_type":{"type":"string","enum":["repairs","inspection","agency_approval","certification","application","lease_signing","pricing","contract_reinstatement","other"],"description":"blocker type"},"detail":{"anyOf":[{"type":"string","maxLength":100000,"description":"detail"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"expected_resolution_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expected resolution on"},{"type":"null"}]},"expected_move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"When occupancy and rent are expected to begin once the blocker clears."},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"resolved at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/utility_account_responsibilities":{"get":{"operationId":"list_utility_account_responsibilities","summary":"List utility account responsibilities","description":"Effective-dated record of who must pay a utility account: the tenant (service in tenant's name), the owner (vacant unit, common area) or the management company. Bills received for owner-responsible periods on unit accounts are vacant-unit utility costs; tenant-responsible periods billed to the owner can be rebilled with rebill_utility_bill_to_lease.\n\nPages through the utility account responsibilities table of the organization, oldest first. Filters: id, utility_account_id, responsible_party, lease_id, effective_on, ends_on, created_by, is_automatic.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility account responsibilities"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_account_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_account_id equals this."},{"name":"responsible_party","in":"query","required":false,"schema":{"description":"Only rows whose responsible_party equals this.","type":"string","enum":["tenant","owner","management_company"]},"description":"Only rows whose responsible_party equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"is_automatic","in":"query","required":false,"schema":{"description":"Only rows whose is_automatic equals this.","type":"boolean"},"description":"Only rows whose is_automatic equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_account_responsibilities/{id}":{"get":{"operationId":"get_utility_account_responsibilities_row","summary":"Get an utility account responsibility","description":"Effective-dated record of who must pay a utility account: the tenant (service in tenant's name), the owner (vacant unit, common area) or the management company. Bills received for owner-responsible periods on unit accounts are vacant-unit utility costs; tenant-responsible periods billed to the owner can be rebilled with rebill_utility_bill_to_lease.\n\nOne row of utility account responsibilities by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility account responsibilities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_accounts/{id}":{"get":{"operationId":"get_utility_accounts_row","summary":"Get an utility account","description":"A utility service account at a property (master / common area, unit_id null) or a unit. Who is responsible over time is utility_account_responsibilities; bills received are utility_bills_received.\n\nOne row of utility accounts by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_utility_accounts_row","summary":"Update an utility account","description":"A utility service account at a property (master / common area, unit_id null) or a unit. Who is responsible over time is utility_account_responsibilities; bills received are utility_bills_received.\n\nChanges the given fields of one row of utility accounts and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Utility accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"utility_meter_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility meter id"},{"type":"null"}]},"utility_provider_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility provider id"},"utility_type":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"],"description":"utility type"},"account_number_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"Last 4 characters of the provider account number (masked). The full number lives only in the secrets vault (account_number_vault_ref)."},{"type":"null"}]},"service_address":{"anyOf":[{"type":"string","maxLength":100000,"description":"service address"},{"type":"null"}]},"opened_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opened on"},{"type":"null"}]},"is_master_metered":{"type":"boolean","description":"Serves several units through one meter; the cost is typically recovered by RUBS or submeters."},"is_autopay":{"type":"boolean","description":"is autopay"},"default_gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Expense account bills on this account are coded to (e.g. 6410 Water & Sewer)."},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"auto_switch_on_move":{"type":"boolean","description":"A unit account that goes to the resident at move-in and back to the owner at move-out: public.sync_utility_account_holders keeps its responsibilities in step with the unit's leases."}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]},"delete":{"operationId":"delete_utility_accounts_row","summary":"Delete an utility account","description":"A utility service account at a property (master / common area, unit_id null) or a unit. Who is responsible over time is utility_account_responsibilities; bills received are utility_bills_received.\n\nDeletes one row of utility accounts. The database refuses it where other records still need the row.\n\nNeeds one of: properties.write.","tags":["Utility accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_allowances":{"get":{"operationId":"list_utility_allowances","summary":"List utility allowances","description":"Monthly utility allowance schedule for tenant-paid utilities by program, bedroom count (optionally floor plan), effective dated. Subtracted from TTP / rent limit to get tenant rent.\n\nPages through the utility allowances table of the organization, oldest first. Filters: id, housing_program_id, floor_plan_id, effective_on, ends_on.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Utility allowances"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"housing_program_id","in":"query","required":false,"schema":{"description":"Only rows whose housing_program_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose housing_program_id equals this."},{"name":"floor_plan_id","in":"query","required":false,"schema":{"description":"Only rows whose floor_plan_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose floor_plan_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"post":{"operationId":"create_utility_allowances_row","summary":"Create an utility allowance","description":"Monthly utility allowance schedule for tenant-paid utilities by program, bedroom count (optionally floor plan), effective dated. Subtracted from TTP / rent limit to get tenant rent.\n\nInserts one row of utility allowances in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: affordable.write.","tags":["Utility allowances"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"bedrooms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms"},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where the allowance came from: PHA schedule, HUD utility model, energy consumption model, utility company estimate."},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":["housing_program_id","bedrooms","amount_cents","effective_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/utility_allowances/{id}":{"get":{"operationId":"get_utility_allowances_row","summary":"Get an utility allowance","description":"Monthly utility allowance schedule for tenant-paid utilities by program, bedroom count (optionally floor plan), effective dated. Subtracted from TTP / rent limit to get tenant rent.\n\nOne row of utility allowances by id, with every column the API shows.\n\nNeeds one of: affordable.read, affordable.write.","tags":["Utility allowances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read","affordable.write"]},"patch":{"operationId":"update_utility_allowances_row","summary":"Update an utility allowance","description":"Monthly utility allowance schedule for tenant-paid utilities by program, bedroom count (optionally floor plan), effective dated. Subtracted from TTP / rent limit to get tenant rent.\n\nChanges the given fields of one row of utility allowances and returns it. Fields left out stay as they are.\n\nNeeds one of: affordable.write.","tags":["Utility allowances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"bedrooms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms"},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"Where the allowance came from: PHA schedule, HUD utility model, energy consumption model, utility company estimate."},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]},"delete":{"operationId":"delete_utility_allowances_row","summary":"Delete an utility allowance","description":"Monthly utility allowance schedule for tenant-paid utilities by program, bedroom count (optionally floor plan), effective dated. Subtracted from TTP / rent limit to get tenant rent.\n\nDeletes one row of utility allowances. The database refuses it where other records still need the row.\n\nNeeds one of: affordable.write.","tags":["Utility allowances"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/utility_bill_lease_shares":{"get":{"operationId":"list_utility_bill_lease_shares","summary":"List utility bill lease shares","description":"The part of a unit utility statement that falls in a lease's days, prorated by day (a day two by-the-bed leases share counts half to each). Rewritten when the statement's dates or amount change, until it is billed back.\n\nPages through the utility bill lease shares table of the organization, oldest first. Filters: id, utility_bill_received_id, lease_id, from_on, to_on, charge_id.\n\nNeeds one of: payables.read.","tags":["Utility bill lease shares"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_bill_received_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_bill_received_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_bill_received_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"from_on","in":"query","required":false,"schema":{"description":"Only rows whose from_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose from_on equals this."},{"name":"to_on","in":"query","required":false,"schema":{"description":"Only rows whose to_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose to_on equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/utility_bill_lease_shares/{id}":{"get":{"operationId":"get_utility_bill_lease_shares_row","summary":"Get an utility bill lease share","description":"The part of a unit utility statement that falls in a lease's days, prorated by day (a day two by-the-bed leases share counts half to each). Rewritten when the statement's dates or amount change, until it is billed back.\n\nOne row of utility bill lease shares by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Utility bill lease shares"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/utility_billing_allocations":{"get":{"operationId":"list_utility_billing_allocations","summary":"List utility billing allocations","description":"One unit-occupancy segment's share of a billing run: a lease's days in the unit, or a vacant segment (lease_id null) absorbed by the owner. For RUBS, allocated_cents across all rows sums exactly to the run's allocatable_cents (largest-remainder rounding, ties broken by unit then lease id). billed_cents = allocated - cap_reduction is charged to the lease when the run posts.\n\nPages through the utility billing allocations table of the organization, oldest first. Filters: id, property_id, utility_billing_run_id, unit_id, lease_id, occupied_from_on, occupied_to_on, utility_meter_id, status, charge_id, admin_fee_charge_id.\n\nNeeds one of: receivables.read.","tags":["Utility billing allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"utility_billing_run_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_billing_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_billing_run_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"occupied_from_on","in":"query","required":false,"schema":{"description":"Only rows whose occupied_from_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose occupied_from_on equals this."},{"name":"occupied_to_on","in":"query","required":false,"schema":{"description":"Only rows whose occupied_to_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose occupied_to_on equals this."},{"name":"utility_meter_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_meter_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_meter_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["calculated","posted","absorbed","voided"]},"description":"Only rows whose status equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"admin_fee_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose admin_fee_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose admin_fee_charge_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/utility_billing_allocations/{id}":{"get":{"operationId":"get_utility_billing_allocations_row","summary":"Get an utility billing allocation","description":"One unit-occupancy segment's share of a billing run: a lease's days in the unit, or a vacant segment (lease_id null) absorbed by the owner. For RUBS, allocated_cents across all rows sums exactly to the run's allocatable_cents (largest-remainder rounding, ties broken by unit then lease id). billed_cents = allocated - cap_reduction is charged to the lease when the run posts.\n\nOne row of utility billing allocations by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Utility billing allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/utility_billing_policies":{"get":{"operationId":"list_utility_billing_policies","summary":"List utility billing policies","description":"How a property bills a utility back to tenants (effective-dated): submeter (metered usage x utility_rates), rubs (ratio utility billing: split the provider bills by a factor), flat_fee (fixed monthly amount), or included in rent (no bill-back).\n\nPages through the utility billing policies table of the organization, oldest first. Filters: id, property_id, utility_type, method, rubs_factor, vacant_units_share, utility_rate_id, is_prorated, charge_type_id, admin_fee_charge_type_id, effective_on, ends_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility billing policies"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"utility_type","in":"query","required":false,"schema":{"description":"Only rows whose utility_type equals this.","type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"]},"description":"Only rows whose utility_type equals this."},{"name":"method","in":"query","required":false,"schema":{"description":"Only rows whose method equals this.","type":"string","enum":["submeter","rubs","flat_fee","included"]},"description":"Only rows whose method equals this."},{"name":"rubs_factor","in":"query","required":false,"schema":{"description":"Only rows whose rubs_factor equals this.","type":"string","enum":["equal_per_unit","occupants","square_feet","bedrooms","custom_weight","blended_occupants_square_feet"]},"description":"Only rows whose rubs_factor equals this."},{"name":"vacant_units_share","in":"query","required":false,"schema":{"description":"Only rows whose vacant_units_share equals this.","type":"boolean"},"description":"Only rows whose vacant_units_share equals this."},{"name":"utility_rate_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_rate_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_rate_id equals this."},{"name":"is_prorated","in":"query","required":false,"schema":{"description":"Only rows whose is_prorated equals this.","type":"boolean"},"description":"Only rows whose is_prorated equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"admin_fee_charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose admin_fee_charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose admin_fee_charge_type_id equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"post":{"operationId":"create_utility_billing_policies_row","summary":"Create an utility billing policy","description":"How a property bills a utility back to tenants (effective-dated): submeter (metered usage x utility_rates), rubs (ratio utility billing: split the provider bills by a factor), flat_fee (fixed monthly amount), or included in rent (no bill-back).\n\nInserts one row of utility billing policies in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Utility billing policies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"utility_type":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"],"description":"utility type"},"method":{"type":"string","enum":["submeter","rubs","flat_fee","included"],"description":"method"},"rubs_factor":{"anyOf":[{"type":"string","enum":["equal_per_unit","occupants","square_feet","bedrooms","custom_weight","blended_occupants_square_feet"],"description":"RUBS split basis: equal_per_unit, occupants (lease occupants), square_feet, bedrooms (studios count as 1), custom_weight (utility_unit_weights), or blended_occupants_square_feet (occupant_weight_pct by occupants, rest by area). Every factor is prorated by days occupied in the period."},{"type":"null"}]},"occupant_weight_pct":{"anyOf":[{"type":"number","description":"blended factor: percent of the bill split by occupants, the remainder by square feet (50 = 50/50)."},{"type":"null"}]},"vacant_occupant_equivalent":{"type":"number","description":"occupants factors: occupant count assumed for a vacant unit-day (its share is absorbed by the owner)."},"common_area_pct":{"type":"number","description":"Percent of the provider bill kept by the owner as common-area usage before splitting, 10 = 10%."},"vacant_units_share":{"type":"boolean","description":"True: vacant unit-days take their share, absorbed by the owner (not charged). False: only occupied leases share the bill."},"utility_rate_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility rate id"},{"type":"null"}]},"flat_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"flat_fee: monthly amount per lease (prorated by occupied days when is_prorated)."},{"type":"null"}]},"is_prorated":{"type":"boolean","description":"is prorated"},"admin_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Billing / administration fee per lease per run, charged with admin_fee_charge_type_id."},"cap_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum utility charge per lease per run; the excess is absorbed by the owner."},{"type":"null"}]},"charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type of the posted utility charges (e.g. \"Water/Sewer\")."},{"type":"null"}]},"admin_fee_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"admin fee charge type id"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","utility_type","method","effective_on"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_billing_policies/{id}":{"get":{"operationId":"get_utility_billing_policies_row","summary":"Get an utility billing policy","description":"How a property bills a utility back to tenants (effective-dated): submeter (metered usage x utility_rates), rubs (ratio utility billing: split the provider bills by a factor), flat_fee (fixed monthly amount), or included in rent (no bill-back).\n\nOne row of utility billing policies by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility billing policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]},"patch":{"operationId":"update_utility_billing_policies_row","summary":"Update an utility billing policy","description":"How a property bills a utility back to tenants (effective-dated): submeter (metered usage x utility_rates), rubs (ratio utility billing: split the provider bills by a factor), flat_fee (fixed monthly amount), or included in rent (no bill-back).\n\nChanges the given fields of one row of utility billing policies and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Utility billing policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"utility_type":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"],"description":"utility type"},"method":{"type":"string","enum":["submeter","rubs","flat_fee","included"],"description":"method"},"rubs_factor":{"anyOf":[{"type":"string","enum":["equal_per_unit","occupants","square_feet","bedrooms","custom_weight","blended_occupants_square_feet"],"description":"RUBS split basis: equal_per_unit, occupants (lease occupants), square_feet, bedrooms (studios count as 1), custom_weight (utility_unit_weights), or blended_occupants_square_feet (occupant_weight_pct by occupants, rest by area). Every factor is prorated by days occupied in the period."},{"type":"null"}]},"occupant_weight_pct":{"anyOf":[{"type":"number","description":"blended factor: percent of the bill split by occupants, the remainder by square feet (50 = 50/50)."},{"type":"null"}]},"vacant_occupant_equivalent":{"type":"number","description":"occupants factors: occupant count assumed for a vacant unit-day (its share is absorbed by the owner)."},"common_area_pct":{"type":"number","description":"Percent of the provider bill kept by the owner as common-area usage before splitting, 10 = 10%."},"vacant_units_share":{"type":"boolean","description":"True: vacant unit-days take their share, absorbed by the owner (not charged). False: only occupied leases share the bill."},"utility_rate_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility rate id"},{"type":"null"}]},"flat_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"flat_fee: monthly amount per lease (prorated by occupied days when is_prorated)."},{"type":"null"}]},"is_prorated":{"type":"boolean","description":"is prorated"},"admin_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Billing / administration fee per lease per run, charged with admin_fee_charge_type_id."},"cap_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Maximum utility charge per lease per run; the excess is absorbed by the owner."},{"type":"null"}]},"charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Charge type of the posted utility charges (e.g. \"Water/Sewer\")."},{"type":"null"}]},"admin_fee_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"admin fee charge type id"},{"type":"null"}]},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]},"delete":{"operationId":"delete_utility_billing_policies_row","summary":"Delete an utility billing policy","description":"How a property bills a utility back to tenants (effective-dated): submeter (metered usage x utility_rates), rubs (ratio utility billing: split the provider bills by a factor), flat_fee (fixed monthly amount), or included in rent (no bill-back).\n\nDeletes one row of utility billing policies. The database refuses it where other records still need the row.\n\nNeeds one of: properties.write.","tags":["Utility billing policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_billing_run_bills":{"get":{"operationId":"list_utility_billing_run_bills","summary":"List utility billing run bills","description":"Provider bills a billing run recovers (RUBS pool). amount_cents is the bill amount included (copied at link time).\n\nPages through the utility billing run bills table of the organization, oldest first. Filters: id, utility_billing_run_id, utility_bill_received_id.\n\nNeeds one of: receivables.read.","tags":["Utility billing run bills"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_billing_run_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_billing_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_billing_run_id equals this."},{"name":"utility_bill_received_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_bill_received_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_bill_received_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/utility_billing_run_bills/{id}":{"get":{"operationId":"get_utility_billing_run_bills_row","summary":"Get an utility billing run bill","description":"Provider bills a billing run recovers (RUBS pool). amount_cents is the bill amount included (copied at link time).\n\nOne row of utility billing run bills by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Utility billing run bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/utility_billing_runs/{id}":{"get":{"operationId":"get_utility_billing_runs_row","summary":"Get an utility billing run","description":"One utility bill-back for a property, utility and service period: draft -> calculated (allocations computed) -> approved -> posted (charges created through receivables). Totals in cents tie out for every method: allocated = allocatable; billed + absorbed = allocated; common_area + allocatable + unrecovered_bill = total_bill. The owner bears common_area + absorbed + unrecovered_bill.\n\nOne row of utility billing runs by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Utility billing runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/utility_bills_received":{"get":{"operationId":"list_utility_bills_received","summary":"List utility bills received","description":"A statement received from a utility provider for an account and service period. Paid through payables: bill_id is the payables bill recorded for it. Billing runs pull these totals to allocate to tenants (utility_billing_run_bills).\n\nPages through the utility bills received table of the organization, oldest first. Filters: id, property_id, utility_account_id, bill_id, statement_on, service_start_on, service_end_on, due_on, is_vacant_unit_bill, status, rebilled_charge_id, created_by, document_id.\n\nNeeds one of: payables.read.","tags":["Utility bills received"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"utility_account_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_account_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"statement_on","in":"query","required":false,"schema":{"description":"Only rows whose statement_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose statement_on equals this."},{"name":"service_start_on","in":"query","required":false,"schema":{"description":"Only rows whose service_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose service_start_on equals this."},{"name":"service_end_on","in":"query","required":false,"schema":{"description":"Only rows whose service_end_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose service_end_on equals this."},{"name":"due_on","in":"query","required":false,"schema":{"description":"Only rows whose due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose due_on equals this."},{"name":"is_vacant_unit_bill","in":"query","required":false,"schema":{"description":"Only rows whose is_vacant_unit_bill equals this.","type":"boolean"},"description":"Only rows whose is_vacant_unit_bill equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["received","entered","allocated","rebilled","void"]},"description":"Only rows whose status equals this."},{"name":"rebilled_charge_id","in":"query","required":false,"schema":{"description":"Only rows whose rebilled_charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rebilled_charge_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/utility_bills_received/{id}":{"get":{"operationId":"get_utility_bills_received_row","summary":"Get an utility bills received","description":"A statement received from a utility provider for an account and service period. Paid through payables: bill_id is the payables bill recorded for it. Billing runs pull these totals to allocate to tenants (utility_billing_run_bills).\n\nOne row of utility bills received by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Utility bills received"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/utility_exception_reviews":{"get":{"operationId":"list_utility_exception_reviews","summary":"List utility exception reviews","description":"A utility exception staff resolved, with what they found. Keyed by utility_bill_exceptions.exception_key. Written only by clear_utility_exception.\n\nPages through the utility exception reviews table of the organization, oldest first. Filters: id, cleared_by.\n\nNeeds one of: payables.read.","tags":["Utility exception reviews"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"cleared_by","in":"query","required":false,"schema":{"description":"Only rows whose cleared_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose cleared_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/utility_exception_reviews/{id}":{"get":{"operationId":"get_utility_exception_reviews_row","summary":"Get an utility exception review","description":"A utility exception staff resolved, with what they found. Keyed by utility_bill_exceptions.exception_key. Written only by clear_utility_exception.\n\nOne row of utility exception reviews by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Utility exception reviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/utility_meters":{"get":{"operationId":"list_utility_meters","summary":"List utility meters","description":"Utility meters and accounts at a property, building (master meter) or unit (submeter), and who pays.\n\nPages through the utility meters table of the organization, oldest first. Filters: id, property_id, building_id, unit_id, utility_type, billing_method, installed_on, removed_on.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility meters"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"building_id","in":"query","required":false,"schema":{"description":"Only rows whose building_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose building_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"utility_type","in":"query","required":false,"schema":{"description":"Only rows whose utility_type equals this.","type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"]},"description":"Only rows whose utility_type equals this."},{"name":"billing_method","in":"query","required":false,"schema":{"description":"Only rows whose billing_method equals this.","type":"string","enum":["tenant_direct","owner_paid","submetered_billback","rubs_allocated"]},"description":"Only rows whose billing_method equals this."},{"name":"installed_on","in":"query","required":false,"schema":{"description":"Only rows whose installed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose installed_on equals this."},{"name":"removed_on","in":"query","required":false,"schema":{"description":"Only rows whose removed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose removed_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_meters/{id}":{"get":{"operationId":"get_utility_meters_row","summary":"Get an utility meter","description":"Utility meters and accounts at a property, building (master meter) or unit (submeter), and who pays.\n\nOne row of utility meters by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility meters"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_providers":{"get":{"operationId":"list_utility_providers","summary":"List utility providers","description":"Utility companies (electric, gas, water, trash...). vendor_id links the payables vendor the provider's bills are paid to.\n\nPages through the utility providers table of the organization, oldest first. Filters: id, vendor_id, created_by.\n\nNeeds one of: properties.write.","tags":["Utility providers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]},"post":{"operationId":"create_utility_providers_row","summary":"Create an utility provider","description":"Utility companies (electric, gas, water, trash...). vendor_id links the payables vendor the provider's bills are paid to.\n\nInserts one row of utility providers in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: properties.write.","tags":["Utility providers"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"utility_types":{"type":"array","items":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"]},"description":"Services this provider supplies."},"customer_service_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"customer service phone"},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":100000,"description":"website"},{"type":"null"}]},"start_service_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"start service url"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_providers/{id}":{"get":{"operationId":"get_utility_providers_row","summary":"Get an utility provider","description":"Utility companies (electric, gas, water, trash...). vendor_id links the payables vendor the provider's bills are paid to.\n\nOne row of utility providers by id, with every column the API shows.\n\nNeeds one of: properties.write.","tags":["Utility providers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]},"patch":{"operationId":"update_utility_providers_row","summary":"Update an utility provider","description":"Utility companies (electric, gas, water, trash...). vendor_id links the payables vendor the provider's bills are paid to.\n\nChanges the given fields of one row of utility providers and returns it. Fields left out stay as they are.\n\nNeeds one of: properties.write.","tags":["Utility providers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"utility_types":{"type":"array","items":{"type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"]},"description":"Services this provider supplies."},"customer_service_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"customer service phone"},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":100000,"description":"website"},{"type":"null"}]},"start_service_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"start service url"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_rate_tiers":{"get":{"operationId":"list_utility_rate_tiers","summary":"List utility rate tiers","description":"Usage tiers of a utility rate. Usage between from_quantity and to_quantity (null = unbounded) is priced at rate_per_unit_cents (fractional cents allowed, e.g. 0.452300 cents per gallon). Cost = base charge + sum over tiers, rounded to whole cents once.\n\nPages through the utility rate tiers table of the organization, oldest first. Filters: id, utility_rate_id.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility rate tiers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_rate_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_rate_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_rate_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_rate_tiers/{id}":{"get":{"operationId":"get_utility_rate_tiers_row","summary":"Get an utility rate tier","description":"Usage tiers of a utility rate. Usage between from_quantity and to_quantity (null = unbounded) is priced at rate_per_unit_cents (fractional cents allowed, e.g. 0.452300 cents per gallon). Cost = base charge + sum over tiers, rounded to whole cents once.\n\nOne row of utility rate tiers by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility rate tiers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_rates":{"get":{"operationId":"list_utility_rates","summary":"List utility rates","description":"Rate schedule for billing submetered usage to tenants: a fixed base charge per unit per billing period plus tiered usage rates (utility_rate_tiers). property_id null = organization default.\n\nPages through the utility rates table of the organization, oldest first. Filters: id, property_id, utility_type, effective_on, ends_on, created_by.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility rates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"utility_type","in":"query","required":false,"schema":{"description":"Only rows whose utility_type equals this.","type":"string","enum":["electric","gas","water","sewer","trash","hot_water","steam","solar","internet","other"]},"description":"Only rows whose utility_type equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_rates/{id}":{"get":{"operationId":"get_utility_rates_row","summary":"Get an utility rate","description":"Rate schedule for billing submetered usage to tenants: a fixed base charge per unit per billing period plus tiered usage rates (utility_rate_tiers). property_id null = organization default.\n\nOne row of utility rates by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility rates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_unit_weights":{"get":{"operationId":"list_utility_unit_weights","summary":"List utility unit weights","description":"Custom RUBS weights per unit (rubs_factor = custom_weight). Units without a row weigh 1; weight 0 excludes a unit.\n\nPages through the utility unit weights table of the organization, oldest first. Filters: id, utility_billing_policy_id, property_id, unit_id.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility unit weights"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_billing_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_billing_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_billing_policy_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_unit_weights/{id}":{"get":{"operationId":"get_utility_unit_weights_row","summary":"Get an utility unit weight","description":"Custom RUBS weights per unit (rubs_factor = custom_weight). Units without a row weigh 1; weight 0 excludes a unit.\n\nOne row of utility unit weights by id, with every column the API shows.\n\nNeeds one of: properties.read, properties.write.","tags":["Utility unit weights"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read","properties.write"]}},"/v1/utility_usage_spike_reviews":{"get":{"operationId":"list_utility_usage_spike_reviews","summary":"List utility usage spike reviews","description":"A usage spike staff looked at and cleared, with why. One row per bill or meter reading; utility_usage_spikes shows it as dismissed. Written only by dismiss_utility_usage_spike.\n\nPages through the utility usage spike reviews table of the organization, oldest first. Filters: id, utility_bill_received_id, meter_reading_id, dismissed_by.\n\nNeeds one of: properties.read.","tags":["Utility usage spike reviews"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"utility_bill_received_id","in":"query","required":false,"schema":{"description":"Only rows whose utility_bill_received_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose utility_bill_received_id equals this."},{"name":"meter_reading_id","in":"query","required":false,"schema":{"description":"Only rows whose meter_reading_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose meter_reading_id equals this."},{"name":"dismissed_by","in":"query","required":false,"schema":{"description":"Only rows whose dismissed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose dismissed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/utility_usage_spike_reviews/{id}":{"get":{"operationId":"get_utility_usage_spike_reviews_row","summary":"Get an utility usage spike review","description":"A usage spike staff looked at and cleared, with why. One row per bill or meter reading; utility_usage_spikes shows it as dismissed. Written only by dismiss_utility_usage_spike.\n\nOne row of utility usage spike reviews by id, with every column the API shows.\n\nNeeds one of: properties.read.","tags":["Utility usage spike reviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.read"]}},"/v1/vehicles":{"get":{"operationId":"list_vehicles","summary":"List vehicles","description":"Vehicles registered by a contact (tenant) for parking enforcement and permits. Assigned spaces are rentable_items on the lease.\n\nPages through the vehicles table of the organization, oldest first. Filters: id, contact_id.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Vehicles"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"post":{"operationId":"create_vehicles_row","summary":"Create a vehicle","description":"Vehicles registered by a contact (tenant) for parking enforcement and permits. Assigned spaces are rentable_items on the lease.\n\nInserts one row of vehicles in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: contacts.write.","tags":["Vehicles"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"make":{"anyOf":[{"type":"string","maxLength":100000,"description":"make"},{"type":"null"}]},"model":{"anyOf":[{"type":"string","maxLength":100000,"description":"model"},{"type":"null"}]},"model_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"model year"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":100000,"description":"color"},{"type":"null"}]},"license_plate":{"type":"string","maxLength":100000,"description":"license plate"},"plate_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"Issuing state/province of the plate, e.g. CA."},{"type":"null"}]},"parking_permit_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"parking permit number"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":["contact_id","license_plate"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/vehicles/{id}":{"get":{"operationId":"get_vehicles_row","summary":"Get a vehicle","description":"Vehicles registered by a contact (tenant) for parking enforcement and permits. Assigned spaces are rentable_items on the lease.\n\nOne row of vehicles by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write.","tags":["Vehicles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write"]},"patch":{"operationId":"update_vehicles_row","summary":"Update a vehicle","description":"Vehicles registered by a contact (tenant) for parking enforcement and permits. Assigned spaces are rentable_items on the lease.\n\nChanges the given fields of one row of vehicles and returns it. Fields left out stay as they are.\n\nNeeds one of: contacts.write.","tags":["Vehicles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"make":{"anyOf":[{"type":"string","maxLength":100000,"description":"make"},{"type":"null"}]},"model":{"anyOf":[{"type":"string","maxLength":100000,"description":"model"},{"type":"null"}]},"model_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"model year"},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":100000,"description":"color"},{"type":"null"}]},"license_plate":{"type":"string","maxLength":100000,"description":"license plate"},"plate_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"Issuing state/province of the plate, e.g. CA."},{"type":"null"}]},"parking_permit_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"parking permit number"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"archived_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"archived at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/vendor_availability_windows":{"get":{"operationId":"list_vendor_availability_windows","summary":"List vendor availability windows","description":"Weekly windows when a vendor takes jobs (optionally only for one property). Used by dispatchers and the AI scheduler to propose appointments.\n\nPages through the vendor availability windows table of the organization, oldest first. Filters: id, vendor_id, property_id, accepts_emergencies, effective_on, ends_on.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Vendor availability windows"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"accepts_emergencies","in":"query","required":false,"schema":{"description":"Only rows whose accepts_emergencies equals this.","type":"boolean"},"description":"Only rows whose accepts_emergencies equals this."},{"name":"effective_on","in":"query","required":false,"schema":{"description":"Only rows whose effective_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose effective_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]}},"/v1/vendor_availability_windows/{id}":{"get":{"operationId":"get_vendor_availability_windows_row","summary":"Get a vendor availability window","description":"Weekly windows when a vendor takes jobs (optionally only for one property). Used by dispatchers and the AI scheduler to propose appointments.\n\nOne row of vendor availability windows by id, with every column the API shows.\n\nNeeds one of: maintenance.dispatch, maintenance.read.","tags":["Vendor availability windows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.read"]}},"/v1/vendor_compliance_overrides":{"get":{"operationId":"list_vendor_compliance_overrides","summary":"List vendor compliance overrides","description":"Written only by assign_work_order, triage_service_request, accept_work_order_estimate, approve_bill and pay_bills when the caller passes an override reason; without one those RPCs refuse.\n\nPages through the vendor compliance overrides table of the organization, oldest first. Filters: id, vendor_id, action, work_order_id, bill_id, vendor_status, compliance_status, overridden_by.\n\nNeeds one of: maintenance.read, payables.read.","tags":["Vendor compliance overrides"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"action","in":"query","required":false,"schema":{"description":"Only rows whose action equals this.","type":"string","enum":["assign_work_order","accept_estimate","pay_bill","approve_bill"]},"description":"Only rows whose action equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"vendor_status","in":"query","required":false,"schema":{"description":"Only rows whose vendor_status equals this.","type":"string","enum":["onboarding","active","inactive","do_not_use"]},"description":"Only rows whose vendor_status equals this."},{"name":"compliance_status","in":"query","required":false,"schema":{"description":"Only rows whose compliance_status equals this.","type":"string","enum":["compliant","expiring_soon","non_compliant","not_required"]},"description":"Only rows whose compliance_status equals this."},{"name":"overridden_by","in":"query","required":false,"schema":{"description":"Only rows whose overridden_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose overridden_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","payables.read"]}},"/v1/vendor_compliance_overrides/{id}":{"get":{"operationId":"get_vendor_compliance_overrides_row","summary":"Get a vendor compliance override","description":"Written only by assign_work_order, triage_service_request, accept_work_order_estimate, approve_bill and pay_bills when the caller passes an override reason; without one those RPCs refuse.\n\nOne row of vendor compliance overrides by id, with every column the API shows.\n\nNeeds one of: maintenance.read, payables.read.","tags":["Vendor compliance overrides"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","payables.read"]}},"/v1/vendor_contracts":{"get":{"operationId":"list_vendor_contracts","summary":"List vendor contracts","description":"Service agreements with vendors (landscaping, snow removal, pest control, elevator maintenance...). Properties covered are listed in vendor_contract_properties; none listed = all properties.\n\nPages through the vendor contracts table of the organization, oldest first. Filters: id, vendor_id, status, rate_type, starts_on, ends_on, auto_renews, signed_on, terminated_on, created_by.\n\nNeeds one of: contacts.read, contacts.write, maintenance.read, payables.read, payables.write.","tags":["Vendor contracts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","pending_signature","active","expired","terminated"]},"description":"Only rows whose status equals this."},{"name":"rate_type","in":"query","required":false,"schema":{"description":"Only rows whose rate_type equals this.","type":"string","enum":["fixed_fee","hourly","per_unit","per_visit","monthly_retainer","time_and_materials","other"]},"description":"Only rows whose rate_type equals this."},{"name":"starts_on","in":"query","required":false,"schema":{"description":"Only rows whose starts_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose starts_on equals this."},{"name":"ends_on","in":"query","required":false,"schema":{"description":"Only rows whose ends_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose ends_on equals this."},{"name":"auto_renews","in":"query","required":false,"schema":{"description":"Only rows whose auto_renews equals this.","type":"boolean"},"description":"Only rows whose auto_renews equals this."},{"name":"signed_on","in":"query","required":false,"schema":{"description":"Only rows whose signed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose signed_on equals this."},{"name":"terminated_on","in":"query","required":false,"schema":{"description":"Only rows whose terminated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose terminated_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write","maintenance.read","payables.read","payables.write"]}},"/v1/vendor_contracts/{id}":{"get":{"operationId":"get_vendor_contracts_row","summary":"Get a vendor contract","description":"Service agreements with vendors (landscaping, snow removal, pest control, elevator maintenance...). Properties covered are listed in vendor_contract_properties; none listed = all properties.\n\nOne row of vendor contracts by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write, maintenance.read, payables.read, payables.write.","tags":["Vendor contracts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write","maintenance.read","payables.read","payables.write"]}},"/v1/vendor_control_changes":{"get":{"operationId":"list_vendor_control_changes","summary":"List vendor control changes","description":"Append-only log of changes to a vendor's compliance controls (vendor_status, is_internal, requires_w9 / requires_insurance / requires_workers_comp) and owner markup_rate.\n\nPages through the vendor control changes table of the organization, oldest first. Filters: id, vendor_id, from_vendor_status, to_vendor_status, from_is_internal, to_is_internal, from_requires_w9, to_requires_w9, from_requires_insurance, to_requires_insurance, from_requires_workers_comp, to_requires_workers_comp, changed_by.\n\nNeeds one of: contacts.read, maintenance.read, payables.read.","tags":["Vendor control changes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"from_vendor_status","in":"query","required":false,"schema":{"description":"Only rows whose from_vendor_status equals this.","type":"string","enum":["onboarding","active","inactive","do_not_use"]},"description":"Only rows whose from_vendor_status equals this."},{"name":"to_vendor_status","in":"query","required":false,"schema":{"description":"Only rows whose to_vendor_status equals this.","type":"string","enum":["onboarding","active","inactive","do_not_use"]},"description":"Only rows whose to_vendor_status equals this."},{"name":"from_is_internal","in":"query","required":false,"schema":{"description":"Only rows whose from_is_internal equals this.","type":"boolean"},"description":"Only rows whose from_is_internal equals this."},{"name":"to_is_internal","in":"query","required":false,"schema":{"description":"Only rows whose to_is_internal equals this.","type":"boolean"},"description":"Only rows whose to_is_internal equals this."},{"name":"from_requires_w9","in":"query","required":false,"schema":{"description":"Only rows whose from_requires_w9 equals this.","type":"boolean"},"description":"Only rows whose from_requires_w9 equals this."},{"name":"to_requires_w9","in":"query","required":false,"schema":{"description":"Only rows whose to_requires_w9 equals this.","type":"boolean"},"description":"Only rows whose to_requires_w9 equals this."},{"name":"from_requires_insurance","in":"query","required":false,"schema":{"description":"Only rows whose from_requires_insurance equals this.","type":"boolean"},"description":"Only rows whose from_requires_insurance equals this."},{"name":"to_requires_insurance","in":"query","required":false,"schema":{"description":"Only rows whose to_requires_insurance equals this.","type":"boolean"},"description":"Only rows whose to_requires_insurance equals this."},{"name":"from_requires_workers_comp","in":"query","required":false,"schema":{"description":"Only rows whose from_requires_workers_comp equals this.","type":"boolean"},"description":"Only rows whose from_requires_workers_comp equals this."},{"name":"to_requires_workers_comp","in":"query","required":false,"schema":{"description":"Only rows whose to_requires_workers_comp equals this.","type":"boolean"},"description":"Only rows whose to_requires_workers_comp equals this."},{"name":"changed_by","in":"query","required":false,"schema":{"description":"Only rows whose changed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose changed_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","maintenance.read","payables.read"]}},"/v1/vendor_control_changes/{id}":{"get":{"operationId":"get_vendor_control_changes_row","summary":"Get a vendor control change","description":"Append-only log of changes to a vendor's compliance controls (vendor_status, is_internal, requires_w9 / requires_insurance / requires_workers_comp) and owner markup_rate.\n\nOne row of vendor control changes by id, with every column the API shows.\n\nNeeds one of: contacts.read, maintenance.read, payables.read.","tags":["Vendor control changes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","maintenance.read","payables.read"]}},"/v1/vendor_credit_applications":{"get":{"operationId":"list_vendor_credit_applications","summary":"List vendor credit applications","description":"Application of a vendor credit to a bill (no journal entry: the credit already reduced AP). Active rows (reversed_at is null) reduce the bill's open amount.\n\nPages through the vendor credit applications table of the organization, oldest first. Filters: id, vendor_credit_id, bill_id, applied_on, created_by, vendor_credit_line_id.\n\nNeeds one of: payables.read.","tags":["Vendor credit applications"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_credit_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_credit_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"applied_on","in":"query","required":false,"schema":{"description":"Only rows whose applied_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose applied_on equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"vendor_credit_line_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_credit_line_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_credit_line_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_credit_applications/{id}":{"get":{"operationId":"get_vendor_credit_applications_row","summary":"Get a vendor credit application","description":"Application of a vendor credit to a bill (no journal entry: the credit already reduced AP). Active rows (reversed_at is null) reduce the bill's open amount.\n\nOne row of vendor credit applications by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Vendor credit applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_credit_lines":{"get":{"operationId":"list_vendor_credit_lines","summary":"List vendor credit lines","description":"Where a vendor credit's money sits: one line per property (null = company books) and account. The credit's entry posts Dr AP / Cr the line's account per line. An application uses one line's money against the open amount of a bill on the same property. insert-only.\n\nPages through the vendor credit lines table of the organization, oldest first. Filters: id, vendor_credit_id, property_id, gl_account_id.\n\nNeeds one of: payables.read.","tags":["Vendor credit lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_credit_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_credit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_credit_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_credit_lines/{id}":{"get":{"operationId":"get_vendor_credit_lines_row","summary":"Get a vendor credit line","description":"Where a vendor credit's money sits: one line per property (null = company books) and account. The credit's entry posts Dr AP / Cr the line's account per line. An application uses one line's money against the open amount of a bill on the same property. insert-only.\n\nOne row of vendor credit lines by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Vendor credit lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_credits":{"get":{"operationId":"list_vendor_credits","summary":"List vendor credits","description":"Vendor credit memos (refund owed by the vendor, returned goods, billing correction): accrual Dr AP / Cr gl_account_id for one property fund. Applied to that vendor's bills on the same fund through vendor_credit_applications.\n\nPages through the vendor credits table of the organization, oldest first. Filters: id, vendor_id, property_id, gl_account_id, credit_on, journal_entry_id, voided_on, voided_by, void_journal_entry_id, created_by, vendor_payment_id, bill_correction_id.\n\nNeeds one of: payables.read.","tags":["Vendor credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"gl_account_id","in":"query","required":false,"schema":{"description":"Only rows whose gl_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose gl_account_id equals this."},{"name":"credit_on","in":"query","required":false,"schema":{"description":"Only rows whose credit_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose credit_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"voided_on","in":"query","required":false,"schema":{"description":"Only rows whose voided_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose voided_on equals this."},{"name":"voided_by","in":"query","required":false,"schema":{"description":"Only rows whose voided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose voided_by equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"bill_correction_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_correction_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_correction_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_credits/{id}":{"get":{"operationId":"get_vendor_credits_row","summary":"Get a vendor credit","description":"Vendor credit memos (refund owed by the vendor, returned goods, billing correction): accrual Dr AP / Cr gl_account_id for one property fund. Applied to that vendor's bills on the same fund through vendor_credit_applications.\n\nOne row of vendor credits by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Vendor credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_document_requests":{"get":{"operationId":"list_vendor_document_requests","summary":"List vendor document requests","description":"Append-only log of AI requests asking a vendor for missing compliance documents (W-9, insurance certificates, license). The message itself lives in messages (sent, or an AI draft awaiting review); this row records which requirements were asked for and drives the cooldown: no new request while a draft awaits review, within 7 days of a request, or within 30 days of a rejected draft.\n\nPages through the vendor document requests table of the organization, oldest first. Filters: id, vendor_id, conversation_id, message_id, was_auto_sent, ai_run_id, created_by.\n\nNeeds one of: contacts.read, payables.read.","tags":["Vendor document requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"conversation_id","in":"query","required":false,"schema":{"description":"Only rows whose conversation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose conversation_id equals this."},{"name":"message_id","in":"query","required":false,"schema":{"description":"Only rows whose message_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose message_id equals this."},{"name":"was_auto_sent","in":"query","required":false,"schema":{"description":"Only rows whose was_auto_sent equals this.","type":"boolean"},"description":"Only rows whose was_auto_sent equals this."},{"name":"ai_run_id","in":"query","required":false,"schema":{"description":"Only rows whose ai_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose ai_run_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read"]}},"/v1/vendor_document_requests/{id}":{"get":{"operationId":"get_vendor_document_requests_row","summary":"Get a vendor document request","description":"Append-only log of AI requests asking a vendor for missing compliance documents (W-9, insurance certificates, license). The message itself lives in messages (sent, or an AI draft awaiting review); this row records which requirements were asked for and drives the cooldown: no new request while a draft awaits review, within 7 days of a request, or within 30 days of a rejected draft.\n\nOne row of vendor document requests by id, with every column the API shows.\n\nNeeds one of: contacts.read, payables.read.","tags":["Vendor document requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read"]}},"/v1/vendor_insurance_policies/{id}":{"get":{"operationId":"get_vendor_insurance_policies_row","summary":"Get a vendor insurance policy","description":"Certificates of insurance (COI) on file for a vendor. Only verified policies covering today count toward compliance; expires_on drives renewal reminders.\n\nOne row of vendor insurance policies by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write, maintenance.read, payables.read, payables.write.","tags":["Vendor insurance policies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write","maintenance.read","payables.read","payables.write"]}},"/v1/vendor_payment_allocations":{"get":{"operationId":"list_vendor_payment_allocations","summary":"List vendor payment allocations","description":"How much of a vendor payment paid each bill. Active rows (reversed_at is null) reduce the bill's open amount. journal_entry_id is the cash-basis entry Dr the bill lines' accounts (pro rata) / Cr bank. For AP aging as of a date D, count rows with allocated_on <= D and (reversed_on is null or reversed_on > D).\n\nPages through the vendor payment allocations table of the organization, oldest first. Filters: id, vendor_payment_id, bill_id, allocated_on, journal_entry_id, reversed_on, reversal_journal_entry_id.\n\nNeeds one of: payables.read.","tags":["Vendor payment allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_payment_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_payment_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_payment_id equals this."},{"name":"bill_id","in":"query","required":false,"schema":{"description":"Only rows whose bill_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bill_id equals this."},{"name":"allocated_on","in":"query","required":false,"schema":{"description":"Only rows whose allocated_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose allocated_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_payment_allocations/{id}":{"get":{"operationId":"get_vendor_payment_allocations_row","summary":"Get a vendor payment allocation","description":"How much of a vendor payment paid each bill. Active rows (reversed_at is null) reduce the bill's open amount. journal_entry_id is the cash-basis entry Dr the bill lines' accounts (pro rata) / Cr bank. For AP aging as of a date D, count rows with allocated_on <= D and (reversed_on is null or reversed_on > D).\n\nOne row of vendor payment allocations by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Vendor payment allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_payments/{id}":{"get":{"operationId":"get_vendor_payments_row","summary":"Get a vendor payment","description":"Money paid to a vendor (check, ACH, card, eCheck, wire...) from one bank account, applied to one or more bills (vendor_payment_allocations). Accrual entry Dr AP / Cr bank per property; cash entries per allocation.\n\nOne row of vendor payments by id, with every column the API shows.\n\nNeeds one of: payables.read.","tags":["Vendor payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/vendor_profile_changes":{"get":{"operationId":"list_vendor_profile_changes","summary":"List vendor profile changes","description":"Changes a vendor made to its own profile from the vendor portal, in this org only (a vendor that works for several orgs gets one row per org it chose). contact, services and insurance apply at once (status applied) and show to the office as \"Vendor updated their profile\" until seen; license, tax and payment are pending until staff approve (decide_vendor_profile_change applies them) or reject. Written only by the RPCs; kept as history.\n\nPages through the vendor profile changes table of the organization, oldest first. Filters: id, vendor_id, kind, status, document_id, insurance_policy_id, submitted_by, decided_by, seen_by.\n\nNeeds one of: contacts.read, payables.read.","tags":["Vendor profile changes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"kind","in":"query","required":false,"schema":{"description":"Only rows whose kind equals this.","type":"string","enum":["contact","services","insurance","license","tax","payment"]},"description":"Only rows whose kind equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["applied","pending","approved","rejected","canceled"]},"description":"Only rows whose status equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"insurance_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose insurance_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose insurance_policy_id equals this."},{"name":"submitted_by","in":"query","required":false,"schema":{"description":"Only rows whose submitted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose submitted_by equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."},{"name":"seen_by","in":"query","required":false,"schema":{"description":"Only rows whose seen_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose seen_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read"]}},"/v1/vendor_profile_changes/{id}":{"get":{"operationId":"get_vendor_profile_changes_row","summary":"Get a vendor profile change","description":"Changes a vendor made to its own profile from the vendor portal, in this org only (a vendor that works for several orgs gets one row per org it chose). contact, services and insurance apply at once (status applied) and show to the office as \"Vendor updated their profile\" until seen; license, tax and payment are pending until staff approve (decide_vendor_profile_change applies them) or reject. Written only by the RPCs; kept as history.\n\nOne row of vendor profile changes by id, with every column the API shows.\n\nNeeds one of: contacts.read, payables.read.","tags":["Vendor profile changes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read"]}},"/v1/vendor_property_preferences":{"get":{"operationId":"list_vendor_property_preferences","summary":"List vendor property preferences","description":"Per-property vendor choices, optionally per trade: who to dispatch first (preferred, rank 1), acceptable (approved/backup) or never (do_not_use, e.g. owner request). Dispatch suggestions read this before org-wide vendors.\n\nPages through the vendor property preferences table of the organization, oldest first. Filters: id, vendor_id, property_id, vendor_trade_id, preference, created_by.\n\nNeeds one of: contacts.read, contacts.write, maintenance.dispatch, maintenance.read.","tags":["Vendor property preferences"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"vendor_trade_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_trade_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_trade_id equals this."},{"name":"preference","in":"query","required":false,"schema":{"description":"Only rows whose preference equals this.","type":"string","enum":["preferred","approved","backup","do_not_use"]},"description":"Only rows whose preference equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write","maintenance.dispatch","maintenance.read"]}},"/v1/vendor_property_preferences/{id}":{"get":{"operationId":"get_vendor_property_preferences_row","summary":"Get a vendor property preference","description":"Per-property vendor choices, optionally per trade: who to dispatch first (preferred, rank 1), acceptable (approved/backup) or never (do_not_use, e.g. owner request). Dispatch suggestions read this before org-wide vendors.\n\nOne row of vendor property preferences by id, with every column the API shows.\n\nNeeds one of: contacts.read, contacts.write, maintenance.dispatch, maintenance.read.","tags":["Vendor property preferences"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","contacts.write","maintenance.dispatch","maintenance.read"]}},"/v1/vendor_rfp_invitations":{"get":{"operationId":"list_vendor_rfp_invitations","summary":"List vendor rfp invitations","description":"One vendor asked to bid on a vendor RFP, and the bid or decline staff recorded. Written only by the vendor RFP RPCs.\n\nPages through the vendor rfp invitations table of the organization, oldest first. Filters: id, vendor_rfp_id, vendor_id, status.\n\nNeeds one of: maintenance.read.","tags":["Vendor rfp invitations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_rfp_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_rfp_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_rfp_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["invited","declined","bid_received","awarded","not_awarded"]},"description":"Only rows whose status equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/vendor_rfp_invitations/{id}":{"get":{"operationId":"get_vendor_rfp_invitations_row","summary":"Get a vendor rfp invitation","description":"One vendor asked to bid on a vendor RFP, and the bid or decline staff recorded. Written only by the vendor RFP RPCs.\n\nOne row of vendor rfp invitations by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Vendor rfp invitations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/vendor_rfps":{"get":{"operationId":"list_vendor_rfps","summary":"List vendor rfps","description":"A request for proposal to vendors for work that is not one work order (a service contract across properties, a capital project). Bids on one work order use work_order_estimates. Written only by the vendor RFP RPCs (create_vendor_rfp, open_vendor_rfp, record_vendor_rfp_bid, award_vendor_rfp, set_vendor_rfp_status).\n\nPages through the vendor rfps table of the organization, oldest first. Filters: id, vendor_trade_id, bid_due_on, desired_start_on, status, awarded_vendor_id, awarded_invitation_id, vendor_contract_id, created_by.\n\nNeeds one of: maintenance.read.","tags":["Vendor rfps"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"vendor_trade_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_trade_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_trade_id equals this."},{"name":"bid_due_on","in":"query","required":false,"schema":{"description":"Only rows whose bid_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose bid_due_on equals this."},{"name":"desired_start_on","in":"query","required":false,"schema":{"description":"Only rows whose desired_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose desired_start_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["draft","open","closed","awarded","canceled"]},"description":"Only rows whose status equals this."},{"name":"awarded_vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose awarded_vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose awarded_vendor_id equals this."},{"name":"awarded_invitation_id","in":"query","required":false,"schema":{"description":"Only rows whose awarded_invitation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose awarded_invitation_id equals this."},{"name":"vendor_contract_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_contract_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_contract_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/vendor_rfps/{id}":{"get":{"operationId":"get_vendor_rfps_row","summary":"Get a vendor rfp","description":"A request for proposal to vendors for work that is not one work order (a service contract across properties, a capital project). Bids on one work order use work_order_estimates. Written only by the vendor RFP RPCs (create_vendor_rfp, open_vendor_rfp, record_vendor_rfp_bid, award_vendor_rfp, set_vendor_rfp_status).\n\nOne row of vendor rfps by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Vendor rfps"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/vendor_trades":{"get":{"operationId":"list_vendor_trades","summary":"List vendor trades","description":"Organization-editable list of vendor trades/specialties (Plumbing, HVAC, Electrical, Landscaping, Cleaning...). Seeded with defaults when an organization is created.\n\nPages through the vendor trades table of the organization, oldest first. Filters: id, requires_license.\n\nNeeds one of: contacts.write, settings.write.","tags":["Vendor trades"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"requires_license","in":"query","required":false,"schema":{"description":"Only rows whose requires_license equals this.","type":"boolean"},"description":"Only rows whose requires_license equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","settings.write"]}},"/v1/vendor_trades/{id}":{"get":{"operationId":"get_vendor_trades_row","summary":"Get a vendor trade","description":"Organization-editable list of vendor trades/specialties (Plumbing, HVAC, Electrical, Landscaping, Cleaning...). Seeded with defaults when an organization is created.\n\nOne row of vendor trades by id, with every column the API shows.\n\nNeeds one of: contacts.write, settings.write.","tags":["Vendor trades"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","settings.write"]}},"/v1/violation_appeals":{"get":{"operationId":"list_violation_appeals","summary":"List violation appeals","description":"A homeowner's appeal of a violation or one of its fines, with their statement and the decision: upheld, reduced (credited_cents taken off the fines), waived (every unwaived fine in scope credited) or withdrawn. One pending appeal per violation. Written only through file_violation_appeal, decide_violation_appeal and withdraw_violation_appeal.\n\nPages through the violation appeals table of the organization, oldest first. Filters: id, violation_id, violation_fine_id, association_id, homeowner_account_id, pauses_fines, filed_by_contact_id, decided_by_user_id.\n\nNeeds one of: associations.read.","tags":["Violation appeals"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"violation_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_id equals this."},{"name":"violation_fine_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_fine_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_fine_id equals this."},{"name":"association_id","in":"query","required":false,"schema":{"description":"Only rows whose association_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose association_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"pauses_fines","in":"query","required":false,"schema":{"description":"Only rows whose pauses_fines equals this.","type":"boolean"},"description":"Only rows whose pauses_fines equals this."},{"name":"filed_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose filed_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose filed_by_contact_id equals this."},{"name":"decided_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose decided_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/violation_appeals/{id}":{"get":{"operationId":"get_violation_appeals_row","summary":"Get a violation appeal","description":"A homeowner's appeal of a violation or one of its fines, with their statement and the decision: upheld, reduced (credited_cents taken off the fines), waived (every unwaived fine in scope credited) or withdrawn. One pending appeal per violation. Written only through file_violation_appeal, decide_violation_appeal and withdraw_violation_appeal.\n\nOne row of violation appeals by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Violation appeals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/violation_fines":{"get":{"operationId":"list_violation_fines","summary":"List violation fines","description":"Fines assessed on a violation. Each fine posts a charge on the homeowner account (charge_id); waivers post a credit and raise waived_cents.\n\nPages through the violation fines table of the organization, oldest first. Filters: id, violation_id, homeowner_account_id, assessed_on, status, charge_id, violation_hearing_id, created_by.\n\nNeeds one of: associations.read.","tags":["Violation fines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"violation_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_id equals this."},{"name":"homeowner_account_id","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose homeowner_account_id equals this."},{"name":"assessed_on","in":"query","required":false,"schema":{"description":"Only rows whose assessed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose assessed_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["assessed","partially_waived","waived"]},"description":"Only rows whose status equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"violation_hearing_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_hearing_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_hearing_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/violation_fines/{id}":{"get":{"operationId":"get_violation_fines_row","summary":"Get a violation fine","description":"Fines assessed on a violation. Each fine posts a charge on the homeowner account (charge_id); waivers post a credit and raise waived_cents.\n\nOne row of violation fines by id, with every column the API shows.\n\nNeeds one of: associations.read.","tags":["Violation fines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/violation_hearings":{"get":{"operationId":"list_violation_hearings","summary":"List violation hearings","description":"Due-process hearings before the board for a violation (required before fines in many states), with outcome.\n\nPages through the violation hearings table of the organization, oldest first. Filters: id, violation_id, board_meeting_id, outcome, homeowner_attended.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation hearings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"violation_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_id equals this."},{"name":"board_meeting_id","in":"query","required":false,"schema":{"description":"Only rows whose board_meeting_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose board_meeting_id equals this."},{"name":"outcome","in":"query","required":false,"schema":{"description":"Only rows whose outcome equals this.","type":"string","enum":["pending","upheld","modified","dismissed","continued","no_show"]},"description":"Only rows whose outcome equals this."},{"name":"homeowner_attended","in":"query","required":false,"schema":{"description":"Only rows whose homeowner_attended equals this.","type":"boolean"},"description":"Only rows whose homeowner_attended equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_hearings/{id}":{"get":{"operationId":"get_violation_hearings_row","summary":"Get a violation hearing","description":"Due-process hearings before the board for a violation (required before fines in many states), with outcome.\n\nOne row of violation hearings by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation hearings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_notices":{"get":{"operationId":"list_violation_notices","summary":"List violation notices","description":"Each letter sent for a violation (courtesy, first, second, final, hearing, fine, legal), with delivery method and the generated letter document. Append-only history of the letter workflow.\n\nPages through the violation notices table of the organization, oldest first. Filters: id, violation_id, notice_level, delivery_method, sent_on, cure_by, document_id, sent_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation notices"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"violation_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_id equals this."},{"name":"notice_level","in":"query","required":false,"schema":{"description":"Only rows whose notice_level equals this.","type":"string","enum":["courtesy","first","second","final","hearing","fine","legal"]},"description":"Only rows whose notice_level equals this."},{"name":"delivery_method","in":"query","required":false,"schema":{"description":"Only rows whose delivery_method equals this.","type":"string","enum":["email","mail","certified_mail","posted_on_door","hand_delivered","portal"]},"description":"Only rows whose delivery_method equals this."},{"name":"sent_on","in":"query","required":false,"schema":{"description":"Only rows whose sent_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose sent_on equals this."},{"name":"cure_by","in":"query","required":false,"schema":{"description":"Only rows whose cure_by equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose cure_by equals this."},{"name":"document_id","in":"query","required":false,"schema":{"description":"Only rows whose document_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose document_id equals this."},{"name":"sent_by","in":"query","required":false,"schema":{"description":"Only rows whose sent_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose sent_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_notices/{id}":{"get":{"operationId":"get_violation_notices_row","summary":"Get a violation notice","description":"Each letter sent for a violation (courtesy, first, second, final, hearing, fine, legal), with delivery method and the generated letter document. Append-only history of the letter workflow.\n\nOne row of violation notices by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation notices"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_photos":{"get":{"operationId":"list_violation_photos","summary":"List violation photos","description":"Photos documenting a violation (from the mobile inspection app) or its cure. storage_path is the Supabase Storage object path.\n\nPages through the violation photos table of the organization, oldest first. Filters: id, violation_id, is_cure_evidence, created_by.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"violation_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_id equals this."},{"name":"is_cure_evidence","in":"query","required":false,"schema":{"description":"Only rows whose is_cure_evidence equals this.","type":"boolean"},"description":"Only rows whose is_cure_evidence equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"post":{"operationId":"create_violation_photos_row","summary":"Create a violation photo","description":"Photos documenting a violation (from the mobile inspection app) or its cure. storage_path is the Supabase Storage object path.\n\nInserts one row of violation photos in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: associations.write.","tags":["Violation photos"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation id"},"storage_path":{"type":"string","maxLength":100000,"description":"Object path in the associations bucket: <org_id>/violations/<violation_id>/<file>."},"caption":{"anyOf":[{"type":"string","maxLength":100000,"description":"caption"},{"type":"null"}]},"taken_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"taken at"},{"type":"null"}]},"latitude":{"anyOf":[{"type":"number","description":"latitude"},{"type":"null"}]},"longitude":{"anyOf":[{"type":"number","description":"longitude"},{"type":"null"}]},"sort_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sort order"},"is_cure_evidence":{"type":"boolean","description":"Photo shows the violation corrected."}},"required":["violation_id","storage_path"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/violation_photos/{id}":{"get":{"operationId":"get_violation_photos_row","summary":"Get a violation photo","description":"Photos documenting a violation (from the mobile inspection app) or its cure. storage_path is the Supabase Storage object path.\n\nOne row of violation photos by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_reports":{"get":{"operationId":"list_violation_reports","summary":"List violation reports","description":"Complaints that led to or support a violation case (neighbor, board member, staff). Kept in a separate table so the complainant's identity is never visible to the homeowner cited; the reporter can see their own reports.\n\nPages through the violation reports table of the organization, oldest first. Filters: id, violation_id, reported_by_contact_id, reported_by_user_id.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation reports"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"violation_id","in":"query","required":false,"schema":{"description":"Only rows whose violation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose violation_id equals this."},{"name":"reported_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose reported_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reported_by_contact_id equals this."},{"name":"reported_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose reported_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reported_by_user_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_reports/{id}":{"get":{"operationId":"get_violation_reports_row","summary":"Get a violation report","description":"Complaints that led to or support a violation case (neighbor, board member, staff). Kept in a separate table so the complainant's identity is never visible to the homeowner cited; the reporter can see their own reports.\n\nOne row of violation reports by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation reports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]}},"/v1/violation_types/{id}":{"get":{"operationId":"get_violation_types_row","summary":"Get a violation type","description":"Configurable violation categories (trash cans visible, unapproved paint, parking, noise) with the governing-document citation, cure period and fine schedule. association_id null = available to all associations of the org.\n\nOne row of violation types by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Violation types"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_violation_types_row","summary":"Update a violation type","description":"Configurable violation categories (trash cans visible, unapproved paint, parking, noise) with the governing-document citation, cure period and fine schedule. association_id null = available to all associations of the org.\n\nChanges the given fields of one row of violation types and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Violation types"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},{"type":"null"}]},"name":{"type":"string","maxLength":100000,"description":"name"},"governing_document_section":{"anyOf":[{"type":"string","maxLength":100000,"description":"Citation printed on letters, e.g. \"CC&R Art. 7 §7.3\"."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"default_cure_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"default cure days"},{"type":"null"}]},"first_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fine for the first uncured occurrence after the cure period."},{"type":"null"}]},"repeat_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fine for each repeat occurrence within the look-back period."},{"type":"null"}]},"daily_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Continuing fine per day the violation stays uncured (if the governing documents allow)."},{"type":"null"}]},"max_fine_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Cap on total fines for one violation case."},{"type":"null"}]},"fine_charge_type_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"fine charge type id"},{"type":"null"}]},"notice_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Letter template used for notices of this type."},{"type":"null"}]},"is_active":{"type":"boolean","description":"is active"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/violations/{id}":{"get":{"operationId":"get_violations_row","summary":"Get a violation","description":"A covenant (CC&R / rules) violation case against a unit and its homeowner account. Workflow: open -> notice_sent / cure_period -> hearing_scheduled -> fined -> cured / closed, or dismissed; escalated_legal hands off to legal. Notices, hearings and fines are child rows.\n\nOne row of violations by id, with every column the API shows.\n\nNeeds one of: associations.read, associations.write.","tags":["Violations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read","associations.write"]},"patch":{"operationId":"update_violations_row","summary":"Update a violation","description":"A covenant (CC&R / rules) violation case against a unit and its homeowner account. Workflow: open -> notice_sent / cure_period -> hearing_scheduled -> fined -> cured / closed, or dismissed; escalated_legal hands off to legal. Notices, hearings and fines are child rows.\n\nChanges the given fields of one row of violations and returns it. Fields left out stay as they are.\n\nNeeds one of: associations.write.","tags":["Violations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"homeowner_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The homeowner account responsible (the owner at observed_on); fines post to this account."},"violation_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation type id"},"source":{"type":"string","enum":["inspection","drive_by","homeowner_complaint","board","staff","other"],"description":"How the violation was found: inspection, drive_by, homeowner_complaint, board, staff, other."},"description":{"type":"string","maxLength":100000,"description":"description"},"location_detail":{"anyOf":[{"type":"string","maxLength":100000,"description":"location detail"},{"type":"null"}]},"observed_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"observed on"},"observed_by_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"observed by user id"},{"type":"null"}]},"cured_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"cured on"},{"type":"null"}]},"is_repeat":{"type":"boolean","description":"Same violation type on the same unit within the look-back period; uses repeat_fine_cents."},"related_violation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"related violation id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/visitor_logs":{"get":{"operationId":"list_visitor_logs","summary":"List visitor logs","description":"Every visitor check-in at a property (front desk, gate or kiosk), with or without a guest pass.\n\nPages through the visitor logs table of the organization, oldest first. Filters: id, property_id, unit_id, guest_pass_id, host_contact_id, purpose, is_id_verified, checked_in_by.\n\nNeeds one of: residents.read, residents.write.","tags":["Visitor logs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"guest_pass_id","in":"query","required":false,"schema":{"description":"Only rows whose guest_pass_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose guest_pass_id equals this."},{"name":"host_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose host_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose host_contact_id equals this."},{"name":"purpose","in":"query","required":false,"schema":{"description":"Only rows whose purpose equals this.","type":"string","enum":["guest","delivery","vendor","contractor","tour","other"]},"description":"Only rows whose purpose equals this."},{"name":"is_id_verified","in":"query","required":false,"schema":{"description":"Only rows whose is_id_verified equals this.","type":"boolean"},"description":"Only rows whose is_id_verified equals this."},{"name":"checked_in_by","in":"query","required":false,"schema":{"description":"Only rows whose checked_in_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose checked_in_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/visitor_logs/{id}":{"get":{"operationId":"get_visitor_logs_row","summary":"Get a visitor log","description":"Every visitor check-in at a property (front desk, gate or kiosk), with or without a guest pass.\n\nOne row of visitor logs by id, with every column the API shows.\n\nNeeds one of: residents.read, residents.write.","tags":["Visitor logs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read","residents.write"]}},"/v1/waterfall_allocations":{"get":{"operationId":"list_waterfall_allocations","summary":"List waterfall allocations","description":"Result of a waterfall run: amount per investor per tier (and class). Sum over a run equals waterfall_runs.distributable_cents exactly (largest-remainder rounding). return_of_capital rows reduce the investor's unreturned capital; all other tiers are profit. Money row, written only by compute_waterfall_run.\n\nPages through the waterfall allocations table of the organization, oldest first. Filters: id, waterfall_run_id, waterfall_tier_id, tier_type, investor_id, share_class_id, class_role, is_carried_interest.\n\nNeeds one of: investments.read.","tags":["Waterfall allocations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"waterfall_run_id","in":"query","required":false,"schema":{"description":"Only rows whose waterfall_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose waterfall_run_id equals this."},{"name":"waterfall_tier_id","in":"query","required":false,"schema":{"description":"Only rows whose waterfall_tier_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose waterfall_tier_id equals this."},{"name":"tier_type","in":"query","required":false,"schema":{"description":"Only rows whose tier_type equals this.","type":"string","enum":["return_of_capital","preferred_return","catch_up","promote"]},"description":"Only rows whose tier_type equals this."},{"name":"investor_id","in":"query","required":false,"schema":{"description":"Only rows whose investor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investor_id equals this."},{"name":"share_class_id","in":"query","required":false,"schema":{"description":"Only rows whose share_class_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose share_class_id equals this."},{"name":"class_role","in":"query","required":false,"schema":{"description":"Only rows whose class_role equals this.","type":"string","enum":["limited_partner","general_partner"]},"description":"Only rows whose class_role equals this."},{"name":"is_carried_interest","in":"query","required":false,"schema":{"description":"Only rows whose is_carried_interest equals this.","type":"boolean"},"description":"Only rows whose is_carried_interest equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/waterfall_allocations/{id}":{"get":{"operationId":"get_waterfall_allocations_row","summary":"Get a waterfall allocation","description":"Result of a waterfall run: amount per investor per tier (and class). Sum over a run equals waterfall_runs.distributable_cents exactly (largest-remainder rounding). return_of_capital rows reduce the investor's unreturned capital; all other tiers are profit. Money row, written only by compute_waterfall_run.\n\nOne row of waterfall allocations by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Waterfall allocations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/waterfall_runs":{"get":{"operationId":"list_waterfall_runs","summary":"List waterfall runs","description":"One distribution event: distributable_cents of the entity's cash run through its waterfall as of as_of_on. Money row: created by compute_waterfall_run (status computed, allocations written), approved by approve_waterfall_run, paid by pay_waterfall_run which posts one owner_distribution entry (Dr OWNER_DISTRIBUTIONS per investor / Cr bank) from property_id's fund. voided runs are ignored by later runs (reversed in the ledger if they had been paid).\n\nPages through the waterfall runs table of the organization, oldest first. Filters: id, investment_entity_id, waterfall_id, as_of_on, status, property_id, bank_account_id, computed_by, approved_by, paid_on, journal_entry_id, void_journal_entry_id.\n\nNeeds one of: investments.read.","tags":["Waterfall runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"investment_entity_id","in":"query","required":false,"schema":{"description":"Only rows whose investment_entity_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose investment_entity_id equals this."},{"name":"waterfall_id","in":"query","required":false,"schema":{"description":"Only rows whose waterfall_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose waterfall_id equals this."},{"name":"as_of_on","in":"query","required":false,"schema":{"description":"Only rows whose as_of_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose as_of_on equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["computed","approved","paid","voided"]},"description":"Only rows whose status equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"bank_account_id","in":"query","required":false,"schema":{"description":"Only rows whose bank_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose bank_account_id equals this."},{"name":"computed_by","in":"query","required":false,"schema":{"description":"Only rows whose computed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose computed_by equals this."},{"name":"approved_by","in":"query","required":false,"schema":{"description":"Only rows whose approved_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose approved_by equals this."},{"name":"paid_on","in":"query","required":false,"schema":{"description":"Only rows whose paid_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose paid_on equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"void_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose void_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose void_journal_entry_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/waterfall_runs/{id}":{"get":{"operationId":"get_waterfall_runs_row","summary":"Get a waterfall run","description":"One distribution event: distributable_cents of the entity's cash run through its waterfall as of as_of_on. Money row: created by compute_waterfall_run (status computed, allocations written), approved by approve_waterfall_run, paid by pay_waterfall_run which posts one owner_distribution entry (Dr OWNER_DISTRIBUTIONS per investor / Cr bank) from property_id's fund. voided runs are ignored by later runs (reversed in the ledger if they had been paid).\n\nOne row of waterfall runs by id, with every column the API shows.\n\nNeeds one of: investments.read.","tags":["Waterfall runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/waterfall_tiers":{"get":{"operationId":"list_waterfall_tiers","summary":"List waterfall tiers","description":"One step of a distribution waterfall, applied in tier_order until the distributable amount is exhausted. Semantics (all cumulative across prior approved/paid runs): return_of_capital = pay capital holders pro rata to unreturned capital until it is zero; preferred_return = pay pro rata to accrued-but-unpaid pref at hurdle_rate (simple, actual/365, on unreturned capital); catch_up = split gp_split_pct to the GP / lp_split_pct to capital holders until the GP's carried interest equals catch_up_target_gp_pct of all profit distributions (pref + catch-up + promote); promote = split lp/gp; with hurdle\n\nPages through the waterfall tiers table of the organization, oldest first. Filters: id, waterfall_id, tier_type.\n\nNeeds one of: investments.read, investments.write.","tags":["Waterfall tiers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"waterfall_id","in":"query","required":false,"schema":{"description":"Only rows whose waterfall_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose waterfall_id equals this."},{"name":"tier_type","in":"query","required":false,"schema":{"description":"Only rows whose tier_type equals this.","type":"string","enum":["return_of_capital","preferred_return","catch_up","promote"]},"description":"Only rows whose tier_type equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"post":{"operationId":"create_waterfall_tiers_row","summary":"Create a waterfall tier","description":"One step of a distribution waterfall, applied in tier_order until the distributable amount is exhausted. Semantics (all cumulative across prior approved/paid runs): return_of_capital = pay capital holders pro rata to unreturned capital until it is zero; preferred_return = pay pro rata to accrued-but-unpaid pref at hurdle_rate (simple, actual/365, on unreturned capital); catch_up = split gp_split_pct to the GP / lp_split_pct to capital holders until the GP's carried interest equals catch_up_target_gp_pct of all profit distributions (pref + catch-up + promote); promote = split lp/gp; with hurdle\n\nInserts one row of waterfall tiers in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: investments.write.","tags":["Waterfall tiers"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"waterfall_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"waterfall id"},"tier_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Order of application, 1 first."},"tier_type":{"type":"string","enum":["return_of_capital","preferred_return","catch_up","promote"],"description":"tier type"},"hurdle_rate":{"anyOf":[{"type":"number","description":"Annual rate, 0.08 = 8%. Required for preferred_return; optional cap for promote tiers; null otherwise."},{"type":"null"}]},"lp_split_pct":{"anyOf":[{"type":"number","description":"Percent of this tier paid to capital holders (every investor/class with contributed capital, pro rata by total capital contributed), 100 = 100%. lp + gp = 100."},{"type":"null"}]},"gp_split_pct":{"anyOf":[{"type":"number","description":"Percent of this tier paid to general_partner class holders (pro rata by units). For catch_up, the catch-up rate (100 = full catch-up)."},{"type":"null"}]},"catch_up_target_gp_pct":{"anyOf":[{"type":"number","description":"catch_up only: the GP's target share of cumulative profit distributions, e.g. 20 for a 20% carry. Must be below gp_split_pct."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["waterfall_id","tier_order","tier_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/waterfall_tiers/{id}":{"get":{"operationId":"get_waterfall_tiers_row","summary":"Get a waterfall tier","description":"One step of a distribution waterfall, applied in tier_order until the distributable amount is exhausted. Semantics (all cumulative across prior approved/paid runs): return_of_capital = pay capital holders pro rata to unreturned capital until it is zero; preferred_return = pay pro rata to accrued-but-unpaid pref at hurdle_rate (simple, actual/365, on unreturned capital); catch_up = split gp_split_pct to the GP / lp_split_pct to capital holders until the GP's carried interest equals catch_up_target_gp_pct of all profit distributions (pref + catch-up + promote); promote = split lp/gp; with hurdle\n\nOne row of waterfall tiers by id, with every column the API shows.\n\nNeeds one of: investments.read, investments.write.","tags":["Waterfall tiers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read","investments.write"]},"patch":{"operationId":"update_waterfall_tiers_row","summary":"Update a waterfall tier","description":"One step of a distribution waterfall, applied in tier_order until the distributable amount is exhausted. Semantics (all cumulative across prior approved/paid runs): return_of_capital = pay capital holders pro rata to unreturned capital until it is zero; preferred_return = pay pro rata to accrued-but-unpaid pref at hurdle_rate (simple, actual/365, on unreturned capital); catch_up = split gp_split_pct to the GP / lp_split_pct to capital holders until the GP's carried interest equals catch_up_target_gp_pct of all profit distributions (pref + catch-up + promote); promote = split lp/gp; with hurdle\n\nChanges the given fields of one row of waterfall tiers and returns it. Fields left out stay as they are.\n\nNeeds one of: investments.write.","tags":["Waterfall tiers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"waterfall_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"waterfall id"},"tier_order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Order of application, 1 first."},"tier_type":{"type":"string","enum":["return_of_capital","preferred_return","catch_up","promote"],"description":"tier type"},"hurdle_rate":{"anyOf":[{"type":"number","description":"Annual rate, 0.08 = 8%. Required for preferred_return; optional cap for promote tiers; null otherwise."},{"type":"null"}]},"lp_split_pct":{"anyOf":[{"type":"number","description":"Percent of this tier paid to capital holders (every investor/class with contributed capital, pro rata by total capital contributed), 100 = 100%. lp + gp = 100."},{"type":"null"}]},"gp_split_pct":{"anyOf":[{"type":"number","description":"Percent of this tier paid to general_partner class holders (pro rata by units). For catch_up, the catch-up rate (100 = full catch-up)."},{"type":"null"}]},"catch_up_target_gp_pct":{"anyOf":[{"type":"number","description":"catch_up only: the GP's target share of cumulative profit distributions, e.g. 20 for a 20% carry. Must be below gp_split_pct."},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]},"delete":{"operationId":"delete_waterfall_tiers_row","summary":"Delete a waterfall tier","description":"One step of a distribution waterfall, applied in tier_order until the distributable amount is exhausted. Semantics (all cumulative across prior approved/paid runs): return_of_capital = pay capital holders pro rata to unreturned capital until it is zero; preferred_return = pay pro rata to accrued-but-unpaid pref at hurdle_rate (simple, actual/365, on unreturned capital); catch_up = split gp_split_pct to the GP / lp_split_pct to capital holders until the GP's carried interest equals catch_up_target_gp_pct of all profit distributions (pref + catch-up + promote); promote = split lp/gp; with hurdle\n\nDeletes one row of waterfall tiers. The database refuses it where other records still need the row.\n\nNeeds one of: investments.write.","tags":["Waterfall tiers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/work_approval_limits":{"get":{"operationId":"list_work_approval_limits","summary":"List work approval limits","description":"How much work a role may approve, optionally only at one property or for one maintenance category. A person's limit for a work order is the highest matching row of their role. With no rows in the organization, maintenance.write approves any amount. allows_emergency lets the role approve emergency work above the limit, with a follow-up review.\n\nPages through the work approval limits table of the organization, oldest first. Filters: id, role_id, property_id, category_id, allows_emergency, created_by.\n\nNeeds one of: maintenance.read, settings.write.","tags":["Work approval limits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"role_id","in":"query","required":false,"schema":{"description":"Only rows whose role_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose role_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"category_id","in":"query","required":false,"schema":{"description":"Only rows whose category_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose category_id equals this."},{"name":"allows_emergency","in":"query","required":false,"schema":{"description":"Only rows whose allows_emergency equals this.","type":"boolean"},"description":"Only rows whose allows_emergency equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]},"post":{"operationId":"create_work_approval_limits_row","summary":"Create a work approval limit","description":"How much work a role may approve, optionally only at one property or for one maintenance category. A person's limit for a work order is the highest matching row of their role. With no rows in the organization, maintenance.write approves any amount. allows_emergency lets the role approve emergency work above the limit, with a follow-up review.\n\nInserts one row of work approval limits in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: settings.write.","tags":["Work approval limits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"role id"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"approve_up_to_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"approve up to cents"},"allows_emergency":{"type":"boolean","description":"allows emergency"}},"required":["role_id","approve_up_to_cents"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/work_approval_limits/{id}":{"get":{"operationId":"get_work_approval_limits_row","summary":"Get a work approval limit","description":"How much work a role may approve, optionally only at one property or for one maintenance category. A person's limit for a work order is the highest matching row of their role. With no rows in the organization, maintenance.write approves any amount. allows_emergency lets the role approve emergency work above the limit, with a follow-up review.\n\nOne row of work approval limits by id, with every column the API shows.\n\nNeeds one of: maintenance.read, settings.write.","tags":["Work approval limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]},"patch":{"operationId":"update_work_approval_limits_row","summary":"Update a work approval limit","description":"How much work a role may approve, optionally only at one property or for one maintenance category. A person's limit for a work order is the highest matching row of their role. With no rows in the organization, maintenance.write approves any amount. allows_emergency lets the role approve emergency work above the limit, with a follow-up review.\n\nChanges the given fields of one row of work approval limits and returns it. Fields left out stay as they are.\n\nNeeds one of: settings.write.","tags":["Work approval limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"role_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"role id"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"approve_up_to_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"approve up to cents"},"allows_emergency":{"type":"boolean","description":"allows emergency"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]},"delete":{"operationId":"delete_work_approval_limits_row","summary":"Delete a work approval limit","description":"How much work a role may approve, optionally only at one property or for one maintenance category. A person's limit for a work order is the highest matching row of their role. With no rows in the organization, maintenance.write approves any amount. allows_emergency lets the role approve emergency work above the limit, with a follow-up review.\n\nDeletes one row of work approval limits. The database refuses it where other records still need the row.\n\nNeeds one of: settings.write.","tags":["Work approval limits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/work_order_appointments":{"get":{"operationId":"list_work_order_appointments","summary":"List work order appointments","description":"Proposed and confirmed visit times for a work order (vendor dispatch scheduling). An appointment is confirmed when the vendor (if any) and the tenant (if requires_tenant_confirmation) have both confirmed.\n\nPages through the work order appointments table of the organization, oldest first. Filters: id, work_order_id, vendor_id, assigned_user_id, status, proposed_by_user_id, is_ai_proposed, requires_tenant_confirmation, tenant_confirmed_by_contact_id.\n\nNeeds one of: maintenance.read.","tags":["Work order appointments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["proposed","confirmed","canceled","completed","no_show"]},"description":"Only rows whose status equals this."},{"name":"proposed_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose proposed_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose proposed_by_user_id equals this."},{"name":"is_ai_proposed","in":"query","required":false,"schema":{"description":"Only rows whose is_ai_proposed equals this.","type":"boolean"},"description":"Only rows whose is_ai_proposed equals this."},{"name":"requires_tenant_confirmation","in":"query","required":false,"schema":{"description":"Only rows whose requires_tenant_confirmation equals this.","type":"boolean"},"description":"Only rows whose requires_tenant_confirmation equals this."},{"name":"tenant_confirmed_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose tenant_confirmed_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose tenant_confirmed_by_contact_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_appointments/{id}":{"get":{"operationId":"get_work_order_appointments_row","summary":"Get a work order appointment","description":"Proposed and confirmed visit times for a work order (vendor dispatch scheduling). An appointment is confirmed when the vendor (if any) and the tenant (if requires_tenant_confirmation) have both confirmed.\n\nOne row of work order appointments by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order appointments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_assignments":{"get":{"operationId":"list_work_order_assignments","summary":"List work order assignments","description":"History of who was assigned to a work order: one row per assignee (staff user or vendor) per assignment period. Written by trigger when work_orders.assigned_user_id / vendor_id change; open rows have unassigned_at null.\n\nPages through the work order assignments table of the organization, oldest first. Filters: id, work_order_id, assigned_user_id, vendor_id, assigned_by, unassigned_by.\n\nNeeds one of: maintenance.read.","tags":["Work order assignments"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assigned_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_user_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"assigned_by","in":"query","required":false,"schema":{"description":"Only rows whose assigned_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assigned_by equals this."},{"name":"unassigned_by","in":"query","required":false,"schema":{"description":"Only rows whose unassigned_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unassigned_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_assignments/{id}":{"get":{"operationId":"get_work_order_assignments_row","summary":"Get a work order assignment","description":"History of who was assigned to a work order: one row per assignee (staff user or vendor) per assignment period. Written by trigger when work_orders.assigned_user_id / vendor_id change; open rows have unassigned_at null.\n\nOne row of work order assignments by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order assignments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_estimate_lines":{"get":{"operationId":"list_work_order_estimate_lines","summary":"List work order estimate lines","description":"Line items of a vendor estimate (labor, materials, permits, ...).\n\nPages through the work order estimate lines table of the organization, oldest first. Filters: id, work_order_estimate_id, line_kind.\n\nNeeds one of: maintenance.read.","tags":["Work order estimate lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_estimate_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_estimate_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_estimate_id equals this."},{"name":"line_kind","in":"query","required":false,"schema":{"description":"Only rows whose line_kind equals this.","type":"string","enum":["labor","materials","equipment","permit","disposal","trip_charge","other"]},"description":"Only rows whose line_kind equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_estimate_lines/{id}":{"get":{"operationId":"get_work_order_estimate_lines_row","summary":"Get a work order estimate line","description":"Line items of a vendor estimate (labor, materials, permits, ...).\n\nOne row of work order estimate lines by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order estimate lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_estimates":{"get":{"operationId":"list_work_order_estimates","summary":"List work order estimates","description":"Vendor bids/quotes for a work order. Staff request bids (status requested), vendors submit (submitted, with lines), one is accepted (sets the work order vendor and estimated cost), others rejected. AI fields compare bids.\n\nPages through the work order estimates table of the organization, oldest first. Filters: id, work_order_id, vendor_id, status, requested_by, expires_on, earliest_start_on, accepted_by, ai_is_recommended.\n\nNeeds one of: maintenance.read.","tags":["Work order estimates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["requested","submitted","accepted","rejected","withdrawn","expired"]},"description":"Only rows whose status equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"expires_on","in":"query","required":false,"schema":{"description":"Only rows whose expires_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose expires_on equals this."},{"name":"earliest_start_on","in":"query","required":false,"schema":{"description":"Only rows whose earliest_start_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose earliest_start_on equals this."},{"name":"accepted_by","in":"query","required":false,"schema":{"description":"Only rows whose accepted_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose accepted_by equals this."},{"name":"ai_is_recommended","in":"query","required":false,"schema":{"description":"Only rows whose ai_is_recommended equals this.","type":"boolean"},"description":"Only rows whose ai_is_recommended equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_estimates/{id}":{"get":{"operationId":"get_work_order_estimates_row","summary":"Get a work order estimate","description":"Vendor bids/quotes for a work order. Staff request bids (status requested), vendors submit (submitted, with lines), one is accepted (sets the work order vendor and estimated cost), others rejected. AI fields compare bids.\n\nOne row of work order estimates by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order estimates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_events/{id}":{"get":{"operationId":"get_work_order_events_row","summary":"Get a work order event","description":"Append-only work order timeline: creation, status changes, assignments, scheduling, estimates, approvals, labor/materials, notes. Status/assignment events are written by trigger; others by the RPCs.\n\nOne row of work order events by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_internal_notes":{"get":{"operationId":"list_work_order_internal_notes","summary":"List work order internal notes","description":"Staff-only notes on a work order (billing hints, tenant history, owner instructions). Readable only by staff who can see the work order (never by vendors, owners or tenants), which is why they are not a column of work_orders.\n\nPages through the work order internal notes table of the organization, oldest first. Filters: id, work_order_id, created_by.\n\nNeeds one of: maintenance.read.","tags":["Work order internal notes"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"post":{"operationId":"create_work_order_internal_notes_row","summary":"Create a work order internal note","description":"Staff-only notes on a work order (billing hints, tenant history, owner instructions). Readable only by staff who can see the work order (never by vendors, owners or tenants), which is why they are not a column of work_orders.\n\nInserts one row of work order internal notes in the organization (org_id is set for you) and returns it. Where the app has a dedicated operation for this, prefer it: it may do more than insert the row.\n\nNeeds one of: maintenance.write.","tags":["Work order internal notes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},"note":{"type":"string","maxLength":100000,"description":"note"}},"required":["work_order_id","note"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/work_order_internal_notes/{id}":{"get":{"operationId":"get_work_order_internal_notes_row","summary":"Get a work order internal note","description":"Staff-only notes on a work order (billing hints, tenant history, owner instructions). Readable only by staff who can see the work order (never by vendors, owners or tenants), which is why they are not a column of work_orders.\n\nOne row of work order internal notes by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order internal notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]},"delete":{"operationId":"delete_work_order_internal_notes_row","summary":"Delete a work order internal note","description":"Staff-only notes on a work order (billing hints, tenant history, owner instructions). Readable only by staff who can see the work order (never by vendors, owners or tenants), which is why they are not a column of work_orders.\n\nDeletes one row of work order internal notes. The database refuses it where other records still need the row.\n\nNeeds one of: maintenance.dispatch.","tags":["Work order internal notes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/work_order_photos":{"get":{"operationId":"list_work_order_photos","summary":"List work order photos","description":"Before/during/after photos taken by technicians and vendors (Supabase Storage bucket + path). Request photos from the tenant are in service_request_photos.\n\nPages through the work order photos table of the organization, oldest first. Filters: id, work_order_id, phase, is_tenant_visible, uploaded_by.\n\nNeeds one of: maintenance.read.","tags":["Work order photos"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"phase","in":"query","required":false,"schema":{"description":"Only rows whose phase equals this.","type":"string","enum":["before","during","after"]},"description":"Only rows whose phase equals this."},{"name":"is_tenant_visible","in":"query","required":false,"schema":{"description":"Only rows whose is_tenant_visible equals this.","type":"boolean"},"description":"Only rows whose is_tenant_visible equals this."},{"name":"uploaded_by","in":"query","required":false,"schema":{"description":"Only rows whose uploaded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose uploaded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_photos/{id}":{"get":{"operationId":"get_work_order_photos_row","summary":"Get a work order photo","description":"Before/during/after photos taken by technicians and vendors (Supabase Storage bucket + path). Request photos from the tenant are in service_request_photos.\n\nOne row of work order photos by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order photos"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_ratings":{"get":{"operationId":"list_work_order_ratings","summary":"List work order ratings","description":"Tenant satisfaction rating (1-5 stars) and comment after a work order is completed. Feeds vendor scorecards and AI vendor selection.\n\nPages through the work order ratings table of the organization, oldest first. Filters: id, work_order_id, rated_by_contact_id, rated_by_user_id, recorded_by, was_resolved.\n\nNeeds one of: maintenance.read.","tags":["Work order ratings"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"rated_by_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose rated_by_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rated_by_contact_id equals this."},{"name":"rated_by_user_id","in":"query","required":false,"schema":{"description":"Only rows whose rated_by_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose rated_by_user_id equals this."},{"name":"recorded_by","in":"query","required":false,"schema":{"description":"Only rows whose recorded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recorded_by equals this."},{"name":"was_resolved","in":"query","required":false,"schema":{"description":"Only rows whose was_resolved equals this.","type":"boolean"},"description":"Only rows whose was_resolved equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_ratings/{id}":{"get":{"operationId":"get_work_order_ratings_row","summary":"Get a work order rating","description":"Tenant satisfaction rating (1-5 stars) and comment after a work order is completed. Feeds vendor scorecards and AI vendor selection.\n\nOne row of work order ratings by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order ratings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_vendor_responses":{"get":{"operationId":"list_work_order_vendor_responses","summary":"List work order vendor responses","description":"Append-only log of a dispatched vendor accepting or declining a work order (vendor portal or web/mobile vendor screens, or staff recording the vendor's phone answer). The current answer for a dispatch is the latest row for the work order's current vendor_id after its latest work_order_assignments row. Written only by respond_to_work_order_dispatch.\n\nPages through the work order vendor responses table of the organization, oldest first. Filters: id, work_order_id, vendor_id, response, responded_by.\n\nNeeds one of: maintenance.read.","tags":["Work order vendor responses"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"response","in":"query","required":false,"schema":{"description":"Only rows whose response equals this.","type":"string","enum":["accepted","declined"]},"description":"Only rows whose response equals this."},{"name":"responded_by","in":"query","required":false,"schema":{"description":"Only rows whose responded_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose responded_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_vendor_responses/{id}":{"get":{"operationId":"get_work_order_vendor_responses_row","summary":"Get a work order vendor response","description":"Append-only log of a dispatched vendor accepting or declining a work order (vendor portal or web/mobile vendor screens, or staff recording the vendor's phone answer). The current answer for a dispatch is the latest row for the work order's current vendor_id after its latest work_order_assignments row. Written only by respond_to_work_order_dispatch.\n\nOne row of work order vendor responses by id, with every column the API shows.\n\nNeeds one of: maintenance.read.","tags":["Work order vendor responses"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/workflow_actions":{"get":{"operationId":"list_workflow_actions","summary":"List workflow actions","description":"Ordered steps of an automation, per version (automation_version; the automation's current_version is live, older versions belong to in-flight and past runs and are never edited). step_type: action (action_type from workflow_action_types: send_notification with notification_event_key + recipient_kind + channels and optional custom wording; create_task: task_title, assignee, due_in_days, task_priority; set_priority; page_on_call: channels and optional custom wording), delay (delay_days, optional delay_until_local_time; or delay_minutes for hour delays), condition (condition_type\n\nPages through the workflow actions table of the organization, oldest first. Filters: id, automation_id, recipient_user_id, recipient_contact_id, notification_template_id, assignee_user_id, charge_type_id, webhook_endpoint_id, step_type, condition_boolean, condition_channel, task_priority, set_priority.\n\nNeeds one of: workflows.write.","tags":["Workflow actions"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"automation_id","in":"query","required":false,"schema":{"description":"Only rows whose automation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose automation_id equals this."},{"name":"recipient_user_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_user_id equals this."},{"name":"recipient_contact_id","in":"query","required":false,"schema":{"description":"Only rows whose recipient_contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose recipient_contact_id equals this."},{"name":"notification_template_id","in":"query","required":false,"schema":{"description":"Only rows whose notification_template_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose notification_template_id equals this."},{"name":"assignee_user_id","in":"query","required":false,"schema":{"description":"Only rows whose assignee_user_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose assignee_user_id equals this."},{"name":"charge_type_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_type_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_type_id equals this."},{"name":"webhook_endpoint_id","in":"query","required":false,"schema":{"description":"Only rows whose webhook_endpoint_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose webhook_endpoint_id equals this."},{"name":"step_type","in":"query","required":false,"schema":{"description":"Only rows whose step_type equals this.","type":"string","enum":["action","delay","condition"]},"description":"Only rows whose step_type equals this."},{"name":"condition_boolean","in":"query","required":false,"schema":{"description":"Only rows whose condition_boolean equals this.","type":"boolean"},"description":"Only rows whose condition_boolean equals this."},{"name":"condition_channel","in":"query","required":false,"schema":{"description":"Only rows whose condition_channel equals this.","type":"string","enum":["in_app","push","email","sms","voice"]},"description":"Only rows whose condition_channel equals this."},{"name":"task_priority","in":"query","required":false,"schema":{"description":"Only rows whose task_priority equals this.","type":"string","enum":["low","normal","high","urgent"]},"description":"Only rows whose task_priority equals this."},{"name":"set_priority","in":"query","required":false,"schema":{"description":"Only rows whose set_priority equals this.","type":"string","enum":["low","normal","high","emergency"]},"description":"Only rows whose set_priority equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_actions/{id}":{"get":{"operationId":"get_workflow_actions_row","summary":"Get a workflow action","description":"Ordered steps of an automation, per version (automation_version; the automation's current_version is live, older versions belong to in-flight and past runs and are never edited). step_type: action (action_type from workflow_action_types: send_notification with notification_event_key + recipient_kind + channels and optional custom wording; create_task: task_title, assignee, due_in_days, task_priority; set_priority; page_on_call: channels and optional custom wording), delay (delay_days, optional delay_until_local_time; or delay_minutes for hour delays), condition (condition_type\n\nOne row of workflow actions by id, with every column the API shows.\n\nNeeds one of: workflows.write.","tags":["Workflow actions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_automations":{"get":{"operationId":"list_workflow_automations","summary":"List workflow automations","description":"An automation owned by an org: a trigger (date_offset: N days before/after a date anchor at a local time, optionally repeating; event: a platform event), a scope (all properties, the properties in workflow_automation_properties or property_id, or one lease), and ordered steps in workflow_actions (current_version). runs and their step timeline are in workflow_runs / workflow_run_steps. Deterministic: no model call anywhere. Seeded defaults have system_key. Saved through save_workflow_automation.\n\nPages through the workflow automations table of the organization, oldest first. Filters: id, trigger_type, property_id, is_enabled, created_by, lease_id, overrides_automation_id, is_mandatory, updated_by, send_immediately, is_suggested.\n\nNeeds one of: workflows.write.","tags":["Workflow automations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"trigger_type","in":"query","required":false,"schema":{"description":"Only rows whose trigger_type equals this.","type":"string","enum":["event","schedule","date_offset","manual"]},"description":"Only rows whose trigger_type equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"is_enabled","in":"query","required":false,"schema":{"description":"Only rows whose is_enabled equals this.","type":"boolean"},"description":"Only rows whose is_enabled equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"overrides_automation_id","in":"query","required":false,"schema":{"description":"Only rows whose overrides_automation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose overrides_automation_id equals this."},{"name":"is_mandatory","in":"query","required":false,"schema":{"description":"Only rows whose is_mandatory equals this.","type":"boolean"},"description":"Only rows whose is_mandatory equals this."},{"name":"updated_by","in":"query","required":false,"schema":{"description":"Only rows whose updated_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose updated_by equals this."},{"name":"send_immediately","in":"query","required":false,"schema":{"description":"Only rows whose send_immediately equals this.","type":"boolean"},"description":"Only rows whose send_immediately equals this."},{"name":"is_suggested","in":"query","required":false,"schema":{"description":"Only rows whose is_suggested equals this.","type":"boolean"},"description":"Only rows whose is_suggested equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_automations/{id}":{"get":{"operationId":"get_workflow_automations_row","summary":"Get a workflow automation","description":"An automation owned by an org: a trigger (date_offset: N days before/after a date anchor at a local time, optionally repeating; event: a platform event), a scope (all properties, the properties in workflow_automation_properties or property_id, or one lease), and ordered steps in workflow_actions (current_version). runs and their step timeline are in workflow_runs / workflow_run_steps. Deterministic: no model call anywhere. Seeded defaults have system_key. Saved through save_workflow_automation.\n\nOne row of workflow automations by id, with every column the API shows.\n\nNeeds one of: workflows.write.","tags":["Workflow automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_run_steps":{"get":{"operationId":"list_workflow_run_steps","summary":"List workflow run steps","description":"Result of each action within a workflow run (status, timing, short human-readable output such as \"Task created\" or \"SMS sent to 2 tenants\", or the error).\n\nPages through the workflow run steps table of the organization, oldest first. Filters: id, workflow_run_id, workflow_action_id, status, task_id, condition_passed.\n\nNeeds one of: workflows.write.","tags":["Workflow run steps"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"workflow_run_id","in":"query","required":false,"schema":{"description":"Only rows whose workflow_run_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose workflow_run_id equals this."},{"name":"workflow_action_id","in":"query","required":false,"schema":{"description":"Only rows whose workflow_action_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose workflow_action_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["queued","running","waiting","succeeded","failed","cancelled","skipped"]},"description":"Only rows whose status equals this."},{"name":"task_id","in":"query","required":false,"schema":{"description":"Only rows whose task_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose task_id equals this."},{"name":"condition_passed","in":"query","required":false,"schema":{"description":"Only rows whose condition_passed equals this.","type":"boolean"},"description":"Only rows whose condition_passed equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_run_steps/{id}":{"get":{"operationId":"get_workflow_run_steps_row","summary":"Get a workflow run step","description":"Result of each action within a workflow run (status, timing, short human-readable output such as \"Task created\" or \"SMS sent to 2 tenants\", or the error).\n\nOne row of workflow run steps by id, with every column the API shows.\n\nNeeds one of: workflows.write.","tags":["Workflow run steps"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_runs":{"get":{"operationId":"list_workflow_runs","summary":"List workflow runs","description":"One run of an automation for one subject and trigger occurrence (date trigger: automation x lease x anchor date x repeat; event trigger: automation x platform event; manual: run_workflow_now). Unique occurrence_key makes the scheduler idempotent. status: queued (not started), running, waiting (in a delay until scheduled_for), succeeded (all steps ran), skipped (a condition step stopped it), cancelled (automation turned off or archived, or the lease ended), failed (error_message). The step timeline is workflow_run_steps.\n\nPages through the workflow runs table of the organization, oldest first. Filters: id, automation_id, platform_event_id, status, property_id, lease_id, contact_id, work_order_id, eviction_case_id, anchor_on, period_due_on, lead_id, service_request_id, vendor_id, vendor_insurance_policy_id, compliance_item_id.\n\nNeeds one of: workflows.write.","tags":["Workflow runs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"automation_id","in":"query","required":false,"schema":{"description":"Only rows whose automation_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose automation_id equals this."},{"name":"platform_event_id","in":"query","required":false,"schema":{"description":"Only rows whose platform_event_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose platform_event_id equals this."},{"name":"status","in":"query","required":false,"schema":{"description":"Only rows whose status equals this.","type":"string","enum":["queued","running","waiting","succeeded","failed","cancelled","skipped"]},"description":"Only rows whose status equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"work_order_id","in":"query","required":false,"schema":{"description":"Only rows whose work_order_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose work_order_id equals this."},{"name":"eviction_case_id","in":"query","required":false,"schema":{"description":"Only rows whose eviction_case_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose eviction_case_id equals this."},{"name":"anchor_on","in":"query","required":false,"schema":{"description":"Only rows whose anchor_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose anchor_on equals this."},{"name":"period_due_on","in":"query","required":false,"schema":{"description":"Only rows whose period_due_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose period_due_on equals this."},{"name":"lead_id","in":"query","required":false,"schema":{"description":"Only rows whose lead_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lead_id equals this."},{"name":"service_request_id","in":"query","required":false,"schema":{"description":"Only rows whose service_request_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose service_request_id equals this."},{"name":"vendor_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_id equals this."},{"name":"vendor_insurance_policy_id","in":"query","required":false,"schema":{"description":"Only rows whose vendor_insurance_policy_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose vendor_insurance_policy_id equals this."},{"name":"compliance_item_id","in":"query","required":false,"schema":{"description":"Only rows whose compliance_item_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose compliance_item_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/workflow_runs/{id}":{"get":{"operationId":"get_workflow_runs_row","summary":"Get a workflow run","description":"One run of an automation for one subject and trigger occurrence (date trigger: automation x lease x anchor date x repeat; event trigger: automation x platform event; manual: run_workflow_now). Unique occurrence_key makes the scheduler idempotent. status: queued (not started), running, waiting (in a delay until scheduled_for), succeeded (all steps ran), skipped (a condition step stopped it), cancelled (automation turned off or archived, or the lease ended), failed (error_message). The step timeline is workflow_run_steps.\n\nOne row of workflow runs by id, with every column the API shows.\n\nNeeds one of: workflows.write.","tags":["Workflow runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["workflows.write"]}},"/v1/write_off_lines":{"get":{"operationId":"list_write_off_lines","summary":"List write off lines","description":"Which charges a write-off cleared and by how much. Counted against the charge's open amount while the write-off is not reversed.\n\nPages through the write off lines table of the organization, oldest first. Filters: id, write_off_id, charge_id, property_id.\n\nNeeds one of: receivables.read.","tags":["Write off lines"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"write_off_id","in":"query","required":false,"schema":{"description":"Only rows whose write_off_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose write_off_id equals this."},{"name":"charge_id","in":"query","required":false,"schema":{"description":"Only rows whose charge_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose charge_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/write_off_lines/{id}":{"get":{"operationId":"get_write_off_lines_row","summary":"Get a write off line","description":"Which charges a write-off cleared and by how much. Counted against the charge's open amount while the write-off is not reversed.\n\nOne row of write off lines by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Write off lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/write_off_requests":{"get":{"operationId":"list_write_off_requests","summary":"List write off requests","description":"A bad-debt write-off over the org's collections_settings.write_off_approval_limit_cents, waiting for someone with receivables.override or gl.close_period. Created by request_write_off; approve or reject with decide_write_off_request, which posts it through write_off_balance or send_to_collections.\n\nPages through the write off requests table of the organization, oldest first. Filters: id, lease_id, property_id, written_off_on, send_to_collections, requested_by, decided_by, write_off_id, collections_account_id.\n\nNeeds one of: receivables.read.","tags":["Write off requests"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"written_off_on","in":"query","required":false,"schema":{"description":"Only rows whose written_off_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose written_off_on equals this."},{"name":"send_to_collections","in":"query","required":false,"schema":{"description":"Only rows whose send_to_collections equals this.","type":"boolean"},"description":"Only rows whose send_to_collections equals this."},{"name":"requested_by","in":"query","required":false,"schema":{"description":"Only rows whose requested_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose requested_by equals this."},{"name":"decided_by","in":"query","required":false,"schema":{"description":"Only rows whose decided_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose decided_by equals this."},{"name":"write_off_id","in":"query","required":false,"schema":{"description":"Only rows whose write_off_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose write_off_id equals this."},{"name":"collections_account_id","in":"query","required":false,"schema":{"description":"Only rows whose collections_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose collections_account_id equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/write_off_requests/{id}":{"get":{"operationId":"get_write_off_requests_row","summary":"Get a write off request","description":"A bad-debt write-off over the org's collections_settings.write_off_approval_limit_cents, waiting for someone with receivables.override or gl.close_period. Created by request_write_off; approve or reject with decide_write_off_request, which posts it through write_off_balance or send_to_collections.\n\nOne row of write off requests by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Write off requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/write_offs":{"get":{"operationId":"list_write_offs","summary":"List write offs","description":"Uncollectible tenant balance written off to bad debt: Dr BAD_DEBT_EXPENSE / Cr AR_TENANTS (accrual only). Itemized per charge in write_off_lines.\n\nPages through the write offs table of the organization, oldest first. Filters: id, lease_id, contact_id, property_id, unit_id, written_off_on, collections_account_id, journal_entry_id, reversed_on, reversed_by, reversal_journal_entry_id, created_by.\n\nNeeds one of: receivables.read.","tags":["Write offs"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Rows per page, 1-100 (default 25).","type":"integer","minimum":1,"maximum":100},"description":"Rows per page, 1-100 (default 25)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"next_cursor from the previous page.","type":"string","maxLength":200},"description":"next_cursor from the previous page."},{"name":"id","in":"query","required":false,"schema":{"description":"Only rows whose id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose id equals this."},{"name":"lease_id","in":"query","required":false,"schema":{"description":"Only rows whose lease_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose lease_id equals this."},{"name":"contact_id","in":"query","required":false,"schema":{"description":"Only rows whose contact_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose contact_id equals this."},{"name":"property_id","in":"query","required":false,"schema":{"description":"Only rows whose property_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose property_id equals this."},{"name":"unit_id","in":"query","required":false,"schema":{"description":"Only rows whose unit_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose unit_id equals this."},{"name":"written_off_on","in":"query","required":false,"schema":{"description":"Only rows whose written_off_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose written_off_on equals this."},{"name":"collections_account_id","in":"query","required":false,"schema":{"description":"Only rows whose collections_account_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose collections_account_id equals this."},{"name":"journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose journal_entry_id equals this."},{"name":"reversed_on","in":"query","required":false,"schema":{"description":"Only rows whose reversed_on equals this.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Only rows whose reversed_on equals this."},{"name":"reversed_by","in":"query","required":false,"schema":{"description":"Only rows whose reversed_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversed_by equals this."},{"name":"reversal_journal_entry_id","in":"query","required":false,"schema":{"description":"Only rows whose reversal_journal_entry_id equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose reversal_journal_entry_id equals this."},{"name":"created_by","in":"query","required":false,"schema":{"description":"Only rows whose created_by equals this.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Only rows whose created_by equals this."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/write_offs/{id}":{"get":{"operationId":"get_write_offs_row","summary":"Get a write off","description":"Uncollectible tenant balance written off to bad debt: Dr BAD_DEBT_EXPENSE / Cr AR_TENANTS (accrual only). Itemized per charge in write_off_lines.\n\nOne row of write offs by id, with every column the API shows.\n\nNeeds one of: receivables.read.","tags":["Write offs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/actions/accept_ai_suggestion":{"post":{"operationId":"accept_ai_suggestion","summary":"Accept AI suggestion","description":"Requires the type's permission. Returns the updated suggestion.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestion_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"suggestion id"},"overrides":{"anyOf":[{"description":"overrides"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["suggestion_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/accept_ops_action_suggestion":{"post":{"operationId":"accept_ops_action_suggestion","summary":"Accept ops action suggestion","description":"Turns a proposed meeting action into a task once a person confirms its owner and due date (neither is ever invented). The task links to the meeting and appears in the action queue and on the next agenda. Staff with properties.write.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestion_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"suggestion id"},"owner_user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},"due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},"title":{"anyOf":[{"type":"string","maxLength":100000,"description":"title"},{"type":"null"}]}},"required":["suggestion_id","owner_user_id","due_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/renewal_offers/{id}/accept":{"post":{"operationId":"accept_renewal_offer","summary":"Accept a renewal offer","description":"Tenant (financially responsible) or staff accepts one term option of a renewal offer at effective_at (default now). An offer can be accepted through its expiry date in the property's time zone. Creates the renewal lease as a draft (renewal_of_lease_id = current lease, same unit, current tenants, deposit carried over, rent per the option). The current lease is not changed: activate_lease (after signing) ends it the day before the renewal starts, and on that day it becomes renewed with its balance carried over. Returns the new lease id.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Renewal offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The renewal offer's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"renewal_offer_term_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renewal offer term id"},"effective_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"effective at"},{"type":"null"}]}},"required":["renewal_offer_term_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/violation_appeals/accept":{"post":{"operationId":"accept_violation_appeal","summary":"Accept violation appeal","description":"It then pauses fines like a first appeal (when the association pauses fines during appeals).\n\nReturns { ok: true }.\n\nNeeds one of: associations.assess.","tags":["Violation appeals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appeal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"appeal id"}},"required":["appeal_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/work_order_estimates/accept":{"post":{"operationId":"accept_work_order_estimate","summary":"Accept work order estimate","description":"Accept a submitted vendor bid (accepted_on: the day it was accepted, default today in the property's time zone, for expiry; not in the future): other open bids are rejected and the vendor is dispatched with the bid total. Requires maintenance.dispatch and, when the bid is at/above the owner approval threshold for owner-paid work, an approved owner approval. The bidding vendor must pass the compliance check unless compliance_override_reason is given (recorded in vendor_compliance_overrides).\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.dispatch.","tags":["Work order estimates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"estimate_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"estimate id"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"compliance_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"compliance override reason"},{"type":"null"}]},"accepted_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"accepted on"},{"type":"null"}]}},"required":["estimate_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/reports/account_tree_statement":{"post":{"operationId":"account_tree_statement","summary":"Account tree statement","description":"Ordered by the group sort order.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tree_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tree id"},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"basis":{"anyOf":[{"type":"string","enum":["accrual","cash"],"description":"basis"},{"type":"null"}]}},"required":["tree_id","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/integrations/accountant":{"post":{"operationId":"accountant_integration","summary":"Accountant integration","description":"Its account and dimension mappings and imported chart of accounts drive the journal exports. Returns its id.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["Integrations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","maxLength":100000,"description":"provider"}},"required":["provider"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/reports/accounting_audit_log":{"get":{"operationId":"accounting_audit_log","summary":"Accounting audit log","description":"Periods closed, soft-closed and reopened (for the organization or one set of books); bank reconciliations completed or reopened; owner statements sent; distributions posted or voided; 1099 forms, management fee rules and chart of accounts changed; close sign-offs and close settings. Each event shows only with the read permission of its area (banking.read, owners.read, payables.read, else gl.read). Newest first; before_id pages; search matches the person, the record and the detail; dates are in the organization's time zone. Returns who (profile name, System for jobs), the event kind, added/changed/removed, a record label, a detail and the staff page path.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read, gl.audit, gl.read, owners.read, payables.read.","tags":["Reports"],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"search"},{"type":"null"}]}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"kind"},{"type":"null"}]}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},{"type":"null"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},{"type":"null"}]}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"before id"},{"type":"null"}]}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.audit","gl.read","owners.read","payables.read"]}},"/v1/reports/accounting_export_lines":{"get":{"operationId":"accounting_export_lines","summary":"Accounting export lines","description":"Every journal line of entries dated from..to (at most 13 months) on the basis (accrual: both and accrual entries; cash: both and cash), in entry and line order, for the accountant exports. external_account_name and external_account_code are the account mapped for integration_id; property_external_*, owner_external_code and entity_external_code are its dimension mappings (null when unmapped). name is the vendor, owner or contact of the line. Each entry balances on its own, so each one becomes one journal; nothing is summarized. is_closing marks year-end closing entries, which the journal exports leave out.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: gl.read.","tags":["Reports"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"description":"to"},{"name":"basis","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"basis"},{"type":"null"}]}},{"name":"integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"integration id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/reports/accounting_export_mapping_status":{"get":{"operationId":"accounting_export_mapping_status","summary":"Accounting export mapping status","description":"The GL accounts, properties, owners and accounting entities that the journal lines of from..to use on the basis (closing entries left out), each with its mapping for integration_id and its line count. The exports check it before they write a file; the setup screens use it for \"used in the last 12 months\".\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: gl.read.","tags":["Reports"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"description":"to"},{"name":"basis","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"basis"},{"type":"null"}]}},{"name":"integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"integration id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/actions/acknowledge_emergency_request":{"post":{"operationId":"acknowledge_emergency_request","summary":"Acknowledge emergency request","description":"Acknowledges an emergency request from the app, which stops its escalation and tells the resident.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: maintenance.read.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"}},"required":["service_request_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/reports/action_queue":{"get":{"operationId":"action_queue","summary":"Action queue","description":"Everything waiting on a person in one list: open tasks, bills awaiting approval (for approvers), work order scope changes and emergency reviews, legal referrals before referral, waiting work orders due for follow-up, open incidents, open onboarding cards, payment exceptions and AI-proposed meeting actions awaiting confirmation. priority is urgent, high, normal or low; is_mine marks the caller's own items. The page filters it (assigned to me, overdue, critical, awaiting approval, unassigned). link_kind and link_id name the record a task is about (lease, work_order, service_request, application, lead, vendor, owner, contact or property), so the row opens it; null for other kinds. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.approve.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/reports/actionable_receivables":{"post":{"operationId":"actionable_receivables","summary":"Actionable receivables","description":"Receivables with what is being done about each: tenant arrears and subsidy receivable apart (a large subsidy balance is not resident nonpayment), days late of the oldest charge, payment plan, legal case and open referral stage, payment acceptance status and its review date, unresolved payment exceptions, a status_key, and the next action, its date and owner (from the referral, else the lease's open task). Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/home_purchase_contracts/activate":{"post":{"operationId":"activate_home_purchase_contract","summary":"Activate home purchase contract","description":"Moves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"activated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"activated on"},{"type":"null"}]}},"required":["contract_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/leases/{id}/activate":{"post":{"operationId":"activate_lease","summary":"Activate a lease","description":"Marks a draft / pending_signature lease as signed and in force (active, or month_to_month; a future start date is allowed), stamped at effective_at (default now). New tenancy: marks the unit's listing leased, converts the lead, schedules (or records, with move_in_on) the move-in and posts the move-in charges (deposit, pet deposit, first rent; post_move_in_charges => false for imports with opening balances; the deposit is deposit_cents due deposit_due_on when staff set them at activation, written to the lease, 0 for none now, 00164). Renewal or unit transfer: ends the old lease the day before the start (actual_end_on), moves recurring charges and rentable items, posts the chosen renewal option's concession, and on the start date closes the old lease (renewed, or terminated with reason unit_transfer) and carries its balance, prepaid money, deposit, autopay and restrictions to the new lease. Requires leasing.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"signed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"signed at"},{"type":"null"}]},"move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move in on"},{"type":"null"}]},"post_move_in_charges":{"anyOf":[{"type":"boolean","description":"post move in charges"},{"type":"null"}]},"effective_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"effective at"},{"type":"null"}]},"deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deposit cents"},{"type":"null"}]},"deposit_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"deposit due on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/abandoned_home_cases/add_note":{"post":{"operationId":"add_abandoned_home_case_note","summary":"Add abandoned home case note","description":"Adds a note to an abandoned home case's timeline, dated event_on (default: the org's business day). Requires legal.write on the property.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Abandoned home cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"case id"},"note":{"type":"string","maxLength":100000,"description":"note"},"event_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"event on"},{"type":"null"}]}},"required":["case_id","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/architectural_request_comments/add":{"post":{"operationId":"add_architectural_request_comment","summary":"Add architectural request comment","description":"Adds a message (with optional files) to an architectural request's thread, as an owner of the home, staff with associations.write, a current director (while the request is before the board) or an architectural committee member (while it is under review, 00145). An owner's message tells the managers and, when the request waited for more information, puts it back under review; any other message tells the owners (architectural_request_comment). Not on a withdrawn request. Returns the comment id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Architectural request comments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"architectural_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"architectural request id"},"body":{"type":"string","maxLength":100000,"description":"body"},"document_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"document ids"},{"type":"null"}]}},"required":["architectural_request_id","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/emergency_contacts/add":{"post":{"operationId":"add_emergency_contact","summary":"Add emergency contact","description":"Creates the emergency person as a contact and links them to contact_id. Staff only (contacts.write, contact in scope) since 00076; residents ask through submit_contact_change_request.\n\nReturns { result }.\n\nNeeds one of: contacts.write.","tags":["Emergency contacts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"full_name":{"type":"string","maxLength":100000,"description":"full name"},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":100000,"description":"email"},{"type":"null"}]},"relationship":{"anyOf":[{"type":"string","maxLength":100000,"description":"relationship"},{"type":"null"}]},"priority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"priority"},{"type":"null"}]},"can_authorize_entry":{"anyOf":[{"type":"boolean","description":"can authorize entry"},{"type":"null"}]}},"required":["contact_id","full_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write"]}},"/v1/gl_accounts/add_from_chart":{"post":{"operationId":"add_gl_accounts_from_chart","summary":"Add GL accounts from chart","description":"Adds GL accounts from the other system's chart ([{number, name, type}]) with a general subtype for the type (other asset, other current liability, other, other income, operating expense). Returns accounts added.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["GL accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"description":"accounts"}},"required":["accounts"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/hap_contracts/add":{"post":{"operationId":"add_hap_contracts","summary":"Add HAP contracts","description":"Creates a housing program's HAP contracts from rows [{unit, contract_number, starts_on, ends_on, contract_rent_cents, utility_allowance_cents, payment_standard_cents}]. Rows with the same contract number form one contract (a voucher contract covers one unit and is tied to the unit's current lease); the housing authority is the program's agency; contract rent defaults to the lease rent. A contract number the authority already has is reported as exists and left alone; a row whose building or unit is unknown, has no current lease (voucher) or no rent is reported as skipped with the reason. Moves no money. Returns {contracts_created, rows: [...]}.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["HAP contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"rows":{"description":"rows"}},"required":["housing_program_id","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/home_purchase_contracts/add_note":{"post":{"operationId":"add_home_purchase_contract_note","summary":"Add home purchase contract note","description":"Adds a note to a contract's history.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"note":{"type":"string","maxLength":100000,"description":"note"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["contract_id","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/labor_entries/add":{"post":{"operationId":"add_labor_entry","summary":"Add labor entry","description":"Log labor on a work order. Technicians log their own time, vendors their own crew; dispatchers may log for any user or vendor and are the only ones who may pass hourly_rate_cents. Hours from hours or started_at/ended_at. Rate: staff time uses the person's staff_labor_rates rate in effect on the work date (org time zone), else the property maintenance policy labor rate; vendor time uses vendors.hourly_rate_cents. Returns labor_entries.id. Redefined in 00034 from 00008.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Labor entries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},"hours":{"anyOf":[{"type":"number","description":"hours"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"started at"},{"type":"null"}]},"ended_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ended at"},{"type":"null"}]},"hourly_rate_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"hourly rate cents"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"is_billable":{"anyOf":[{"type":"boolean","description":"is billable"},{"type":"null"}]},"user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]}},"required":["work_order_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/loan_reserve_draws/add_bills":{"post":{"operationId":"add_loan_reserve_draw_bills","summary":"Add loan reserve draw bills","description":"Adds approved or paid bills to a draft draw, each for its lines at the draw's property. A bill already in another draw is refused. Returns the number of bills.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Loan reserve draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"},"bill_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"bill ids"}},"required":["draw_id","bill_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/material_entries/add":{"post":{"operationId":"add_material_entry","summary":"Add material entry","description":"Record parts/materials used on a work order. With an inventory item and location, also issues the stock (inventory_transactions type issue). Unit cost defaults to the item cost; materials are billed at cost (the maintenance markup is charged once, through management fees on the bill line). Vendors may only enter free-text materials. Returns material_entries.id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Material entries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},"quantity":{"type":"number","description":"quantity"},"inventory_item_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inventory item id"},{"type":"null"}]},"inventory_location_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inventory location id"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"unit_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"unit cost cents"},{"type":"null"}]},"is_billable":{"anyOf":[{"type":"boolean","description":"is billable"},{"type":"null"}]},"unit_of_measure":{"anyOf":[{"type":"string","maxLength":100000,"description":"unit of measure"},{"type":"null"}]}},"required":["work_order_id","quantity"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/mitchell_lama_waitlist_entries/add":{"post":{"operationId":"add_mitchell_lama_waitlist_entry","summary":"Add mitchell lama waitlist entry","description":"Adds an applicant from the supervising agency's waitlist with the agency's list position and log number, bedroom size and household size.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Mitchell lama waitlist entries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mitchell_lama_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"mitchell lama program id"},"applicant_name":{"type":"string","maxLength":100000,"description":"applicant name"},"external_list_position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"external list position"},"bedrooms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms"},"household_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},"agency_log_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency log number"},{"type":"null"}]},"applied_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"applied on"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["mitchell_lama_program_id","applicant_name","external_list_position","bedrooms","household_size"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/inspection_templates/add_nspire":{"post":{"operationId":"add_nspire_inspection_template","summary":"Add NSPIRE inspection template","description":"Adds the \"NSPIRE (HUD)\" inspection template (32 standards across outside, inside and unit areas, each with its severity guidance) to the org, or returns the existing one. Requires compliance.write or maintenance.dispatch.\n\nReturns { result }.\n\nNeeds one of: compliance.write, maintenance.dispatch.","tags":["Inspection templates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.dispatch"]}},"/v1/actions/add_nyc_compliance_checklist":{"post":{"operationId":"add_nyc_compliance_checklist","summary":"Add NYC compliance checklist","description":"Adds the standard New York City agency and building requirements (audits, MOR, NSPIRE, annual unit inspections, Local Laws 97/84/33/11/126/152, elevator category 1 and 5, boiler and DEP filings, window guards, stove knob covers, self-closing doors and FDNY fire safety tests) to one property, skipping names it already has, then creates their items. Returns the number added. Requires compliance.write at the property.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: compliance.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"}},"required":["property_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/actions/add_regulatory_obligation":{"post":{"operationId":"add_regulatory_obligation","summary":"Add regulatory obligation","description":"Adds a recurring report to a regulatory agreement, due on next_due_on and every cadence_months after. The due date is a compliance item, so the compliance deadlines job sends reminders. Returns the obligation id.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"regulatory_agreement_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"regulatory agreement id"},"kind":{"type":"string","enum":["annual_owner_certification","audited_financials","reserve_report","rent_roll","other"],"description":"kind"},"name":{"type":"string","maxLength":100000,"description":"name"},"next_due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"next due on"},"cadence_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cadence months"},{"type":"null"}]}},"required":["regulatory_agreement_id","kind","name","next_due_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/service_request_comments/add":{"post":{"operationId":"add_service_request_comment","summary":"Add service request comment","description":"Adds a message to a request's thread. A resident on the request (submitter or a tenant on its lease) writes as themselves and the assigned technician, primary manager and triager get a bell item; staff with maintenance.write who can see the request (or its assigned technician) reply and the residents get service_request_comment. Not on a canceled request. Returns the comment id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: maintenance.write.","tags":["Service request comments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},"body":{"type":"string","maxLength":100000,"description":"body"}},"required":["service_request_id","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/abandoned_home_cases/advance":{"post":{"operationId":"advance_abandoned_home_case","summary":"Advance abandoned home case","description":"Moves an abandoned home case to its next status (only pairs in abandoned_home_status_transitions), dated event_on (default: the org's business day), with the step's details: notice (method, mailing date, period or expiry; adds a task for the assigned user due on the expiry date), lien amount and reference, sale date, place, price and buyer. Updates the home: sold = the buyer owns it (resident), title_to_park = the park owns it, removed = removed, reclaimed or closed = no longer abandoned. Posts no money. Logs abandoned_home_case_events. Requires legal.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Abandoned home cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"case id"},"to_status":{"type":"string","enum":["open","notice_posted","waiting_period","lien_filed","sale_scheduled","sold","title_to_park","removed","reclaimed","closed"],"description":"to status"},"event_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"event on"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"notice_mailed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice mailed on"},{"type":"null"}]},"notice_method":{"anyOf":[{"type":"string","enum":["personal","substitute","posting_and_mailing","certified_mail","first_class_mail","email","portal","process_server","sheriff"],"description":"notice method"},{"type":"null"}]},"notice_period_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"notice period days"},{"type":"null"}]},"notice_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice expires on"},{"type":"null"}]},"lien_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"lien amount cents"},{"type":"null"}]},"lien_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"lien reference"},{"type":"null"}]},"sale_scheduled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"sale scheduled on"},{"type":"null"}]},"sale_location":{"anyOf":[{"type":"string","maxLength":100000,"description":"sale location"},{"type":"null"}]},"sale_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sale price cents"},{"type":"null"}]},"buyer_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"buyer contact id"},{"type":"null"}]},"close_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"close reason"},{"type":"null"}]}},"required":["case_id","to_status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/eviction_cases/advance":{"post":{"operationId":"advance_eviction_case","summary":"Advance eviction case","description":"Moves an eviction case to its next status (only transitions in eviction_status_transitions are allowed), stamping the date reached and recording court details, judgment amounts and settlement terms. Filing snapshots the tenant balance from the ledger. Logs eviction_case_events and emits eviction.status_changed.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: legal.write.","tags":["Eviction cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"case id"},"to_status":{"type":"string","enum":["pending","notice_served","filed","hearing_scheduled","judgment","writ","possession","dismissed","settled","closed"],"description":"to status"},"event_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"event on"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"case_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"case number"},{"type":"null"}]},"court_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"court name"},{"type":"null"}]},"court_county":{"anyOf":[{"type":"string","maxLength":100000,"description":"court county"},{"type":"null"}]},"amount_claimed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount claimed cents"},{"type":"null"}]},"judgment_for":{"anyOf":[{"type":"string","enum":["landlord","tenant","split"],"description":"judgment for"},{"type":"null"}]},"amount_awarded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount awarded cents"},{"type":"null"}]},"attorney_fees_awarded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"attorney fees awarded cents"},{"type":"null"}]},"court_costs_awarded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"court costs awarded cents"},{"type":"null"}]},"lockout_scheduled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"lockout scheduled on"},{"type":"null"}]},"settlement_terms":{"anyOf":[{"type":"string","maxLength":100000,"description":"settlement terms"},{"type":"null"}]},"close_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"close reason"},{"type":"null"}]}},"required":["case_id","to_status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/legal_referrals/advance":{"post":{"operationId":"advance_legal_referral","summary":"Advance legal referral","description":"Moves a referral one step: identified -> validated -> approved (by someone other than the validator) -> referred (freezes the packet: ledger to today, tenant and subsidy parts, lease, notices, payment plans, documents, and what is missing) -> tracking -> resolved; withdrawn from any open step. Sets the owner and next action. Staff with legal.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: legal.write.","tags":["Legal referrals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"referral_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"referral id"},"to_stage":{"type":"string","enum":["identified","validated","approved","referred","tracking","resolved","withdrawn"],"description":"to stage"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"attorney_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"attorney vendor id"},{"type":"null"}]},"recipient":{"anyOf":[{"type":"string","maxLength":100000,"description":"recipient"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"next_action":{"anyOf":[{"type":"string","maxLength":100000,"description":"next action"},{"type":"null"}]},"next_action_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"next action on"},{"type":"null"}]}},"required":["referral_id","to_stage"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/reports/affordable_compliance_findings":{"get":{"operationId":"affordable_compliance_findings","summary":"Affordable compliance findings","description":"Affordable housing compliance test as of a date, one row per finding: NO_CERTIFICATION (occupied set-aside unit without a certification), RECERT_OVERDUE / RECERT_DUE (within the program's notice window), OVER_INCOME_AT_MOVE_IN, OVER_INCOME_NEXT_AVAILABLE_UNIT (above over_income_pct at recertification), RENT_OVER_LIMIT (tenant rent + UA above the gross rent limit), STUDENT_HOUSEHOLD, UNVERIFIED_INCOME, HAP_CONTRACT_EXPIRING / HAP_CONTRACT_LAPSED, SET_ASIDE_SHORTFALL. Severity violation / warning / info. Requires affordable.read; limited to properties the caller can access.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: affordable.read.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/reports/ai_feature_config":{"get":{"operationId":"ai_feature_config","summary":"AI feature config","description":"Effective settings of an AI feature with defaults filled in: {autonomy, min_confidence, follow_up_after_hours, reminder_days_before_due, risk_alert_score, instructions, zero_data_retention}. zero_data_retention is the org's choice, else the feature's default (on for document-reading features); _shared/ai also forces it for the features in ZDR_FEATURES.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"feature","in":"query","required":true,"schema":{"type":"string","enum":["property_extraction","tenant_assistant","lead_follow_up","renewal_negotiation","delinquency_prediction","payment_reminders","maintenance_triage","vendor_scheduling","conversation_handling","invoice_extraction","transaction_categorization","owner_summary","bid_comparison","vendor_documents","compliance_tracking","document_audit","listing_writer","rent_recommendation","portfolio_assistant","automation_drafting","document_extraction","chart_matching","listing_photo_review","variance_explanation","ops_meeting_actions","portfolio_briefing","lockbox_matching"],"description":"feature"},"description":"feature"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/allocate_entity_income":{"post":{"operationId":"allocate_entity_income","summary":"Allocate entity income","description":"Allocates an investment entity's net income or loss for a period to its investors' capital accounts, pro rata to the capital each investor and class contributed by the period end (exact cents; a loss is allocated as negative amounts). net_income_cents defaults to the entity's share of its properties' accrual net income. Periods of live allocations cannot overlap. Requires investments.write. Returns the allocation id.\n\nReturns { result }.\n\nNeeds one of: investments.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"net_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"net income cents"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]}},"required":["entity_id","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/actions/amend_rent_to_own":{"post":{"operationId":"amend_rent_to_own","summary":"Amend rent to own","description":"Changes an active rent-to-own contract: the monthly equity payment from the first unbilled billing day on or after effective_on (the live recurring charge ends the day before and a new one starts, through the same end date), the price and the purchase deadline. Equity already paid stays. Logged as an amended event with the old and new terms in words.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"equity_payment_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"equity payment cents"},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"price cents"},"purchase_by":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"purchase by"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["contract_id","effective_on","equity_payment_cents","price_cents","purchase_by"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/amenities/busy_times":{"get":{"operationId":"amenity_busy_times","summary":"Amenity busy times","description":"Residents of the property and staff: the booked and requested times of an amenity in a range (at most 62 days), without who booked them; is_mine marks the caller's own.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Amenities"],"parameters":[{"name":"reservable_amenity_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"reservable amenity id"},"description":"reservable amenity id"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"from"},"description":"from"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"to"},"description":"to"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/apply_extracted_field":{"post":{"operationId":"apply_extracted_field","summary":"Apply extracted field","description":"Write one AI-extracted field (document_extraction, 00078) to the existing record it belongs to and mark it applied. value overrides the reading (one of its conflicting_values, or a correction) as JSON in the column's unit; target_id picks another property, vendor contract or vendor of the org. Needs documents.write and read access to the document, plus the target's own permission: properties.write and access to the property (through set_property_details, overwriting the current value), or contacts.write or payables.write for vendor contracts and vendors. Reference-only fields are refused. Returns the updated field.\n\nReturns { result }.\n\nNeeds one of: contacts.write, documents.write, payables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"field_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"field id"},"value":{"anyOf":[{"description":"value"},{"type":"null"}]},"target_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"target id"},{"type":"null"}]}},"required":["field_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","documents.write","payables.write"]}},"/v1/rent_escalation_steps/apply":{"post":{"operationId":"apply_rent_escalation_step","summary":"Apply rent escalation step","description":"Applies one escalation step: computes CPI steps from cpi_index_values (with floor/ceiling). Base rent (updates_lease_rent) is scheduled in lease_rent_schedules from the step date and the lease's RENT recurring charges are re-synced from it (one RENT recurring charge per schedule row, never a second one), and commercial_lease_terms.base_rent_per_sqft_year_cents is updated. Other charge types end the open recurring charge and start the new amount. Returns the recurring charge billing the new amount. applied_at stamps applied_at (default now). Idempotent.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: leasing.write.","tags":["Rent escalation steps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"step_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"step id"},"applied_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"applied at"},{"type":"null"}]}},"required":["step_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/deposits/apply_security_excess":{"post":{"operationId":"apply_security_deposit_excess","summary":"Apply security deposit excess","description":"Amount_cents defaults to the whole excess and may not exceed it. Idempotent per lease, date, held amount and amount. Returns the receipt id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Deposits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"applied_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"applied on"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/bills/{id}/approve":{"post":{"operationId":"approve_bill","summary":"Approve a bill","description":"Records the approval and posts the bill when the last step is approved and every required owner approval is in. Raises when only the owner approval is outstanding. do_not_use; archived) unless compliance_override_reason is given, which is recorded in vendor_compliance_overrides (action approve_bill; do_not_use needs org.admin). A bill that posts on submit (no approval rule applies) has no approval step; its vendor is checked when it is paid (pay_bills). Returns the bill status.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.approve.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"anyOf":[{"type":"string","maxLength":100000,"description":"comment"},{"type":"null"}]},"compliance_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"compliance override reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/budgets/{id}/approve":{"post":{"operationId":"approve_budget","summary":"Approve a budget","description":"Approve a budget version on approved_on (default today; stored in approved_on), making it the active one (archives any previously approved version for the same property, or the same books, and year). Requires owners.write or gl.write and access to the budget's property (organization-wide access for a books budget).\n\nReturns { ok: true }.\n\nNeeds one of: gl.write, owners.write.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The budget's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"approved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"approved on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/cam_reconciliations/{id}/approve":{"post":{"operationId":"approve_cam_reconciliation","summary":"Approve a cam reconciliation","description":"Approves a calculated reconciliation for posting and sets the true-up due date (default 30 days after approval). approved_at stamps approved_at for approvals entered after the fact (default now). Requires receivables.write.\n\nReturns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["CAM reconciliations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The cam reconciliation's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"true_up_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"true up due on"},{"type":"null"}]},"approved_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"approved at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/capital_projects/{id}/approve_budget":{"post":{"operationId":"approve_capital_project_budget","summary":"Approve capital project budget","description":"Approves and locks the original budget; later changes need change orders.\n\nReturns { ok: true }.\n\nNeeds one of: projects.approve.","tags":["Capital projects"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The capital project's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve"]}},"/v1/capital_project_draws/approve":{"post":{"operationId":"approve_capital_project_draw","summary":"Approve capital project draw","description":"Approves a submitted draw for the requested amount or less.\n\nReturns { result }.\n\nNeeds one of: projects.approve.","tags":["Capital project draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"},"approved_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"approved cents"},{"type":"null"}]}},"required":["draw_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve"]}},"/v1/actions/approve_change_order":{"post":{"operationId":"approve_change_order","summary":"Approve change order","description":"Approves a proposed change order; it now changes the revised budget (and the linked commitment).\n\nReturns { ok: true }.\n\nNeeds one of: projects.approve.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"change_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"change order id"}},"required":["change_order_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve"]}},"/v1/deposit_disposition_drafts/approve":{"post":{"operationId":"approve_deposit_disposition_draft","summary":"Approve deposit disposition draft","description":"Approves a deposit disposition draft. Every deduction needs an amount. The draft posts through dispose_security_deposit (interest worked out when not given, deductions as charges, the deposit applied to the open balance, the rest refunded by check or ACH, the return deadline marked met). Inspection findings staff took off the statement are recorded in removed_inspection_item_ids and are not charged; the inspection keeps the inspector's charge-backs. Returns the disposition id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Deposit disposition drafts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draft id"},"refund_method":{"anyOf":[{"type":"string","enum":["check","ach","card_refund","none","other"],"description":"refund method"},{"type":"null"}]},"refund_bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"refund bank account id"},{"type":"null"}]},"disposed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"disposed on"},{"type":"null"}]},"forwarding_address":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding address"},{"type":"null"}]},"interest_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"interest cents"},{"type":"null"}]},"refund_payment_method_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"refund payment method id"},{"type":"null"}]}},"required":["draft_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/hap_rent_schedules/approve":{"post":{"operationId":"approve_hap_rent_schedule","summary":"Approve HAP rent schedule","description":"Approves a draft rent schedule and writes its new contract rents to hap_contract_units from effective_on (the open rent row ends the day before and a new row starts). Certifications and HAP vouchers from that date use the new rents. Moves no money. Returns the number of units whose rent changed.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["HAP rent schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"}},"required":["schedule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/approve_journal_draft":{"post":{"operationId":"approve_journal_draft","summary":"Approve journal draft","description":"Approves and posts a draft or a pending journal entry, with its automatic reversal. When the approval rule applies or the author could not post, the approver must be another person than the author, the last editor and the submitter. Returns the journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draft id"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["draft_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/mail_batches/approve":{"post":{"operationId":"approve_mail_batch","summary":"Approve mail batch","description":"Approves a draft mail batch; its letters become ready to print. Returns the number approved.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Mail batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/outreach_batches/approve":{"post":{"operationId":"approve_outreach_batch","summary":"Approve outreach batch","description":"Approves a draft outreach batch as reviewed. Its included people are queued: calls go out from the outreach-calls job (9 am to 8 pm in the org's time zone, at most two attempts a day apart), texts from the outreach-sms job on their step days. Returns the number queued.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Outreach batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/property_reserve_transactions/approve":{"post":{"operationId":"approve_property_reserve_transaction","summary":"Approve property reserve transaction","description":"Approves a pending reserve deposit or draw and posts it in the property fund on effective_on (entry_type owner_reserve): deposit Dr OWNER_EQUITY / Cr OWNER_RESERVES_HELD, draw Dr OWNER_RESERVES_HELD / Cr OWNER_EQUITY. Takes the distribution locks first, then refuses when the reserve would go negative on any later day or (deposits) exceed the fund's trust cash net of deposits held and prepaid rent. Returns the journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.distribute.","tags":["Property reserve transactions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"transaction id"}},"required":["transaction_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute"]}},"/v1/purchase_orders/{id}/approve":{"post":{"operationId":"approve_purchase_order","summary":"Approve a purchase order","description":"Approve a PO. Refused while a required owner approval is missing, pending or rejected.\n\nReturns { ok: true }.\n\nNeeds one of: payables.approve.","tags":["Purchase orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The purchase order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/ti_disbursements/{id}/approve":{"post":{"operationId":"approve_ti_disbursement","summary":"Approve a ti disbursement","description":"Approves a TI draw and creates the payables bill to the payee coded to the allowance's GL account, property and unit (the bill then follows normal AP approval / payment). Enforces lien waivers. approved_at stamps approved_at (default now). Idempotent. Requires payables.approve.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.approve.","tags":["Ti disbursements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The ti disbursement's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"bill_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bill date"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"approved_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"approved at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/waterfall_runs/approve":{"post":{"operationId":"approve_waterfall_run","summary":"Approve waterfall run","description":"Approves a computed waterfall run for payment; approved_at stamps approved_at (default now, never before computed_at). Requires investments.distribute. When the run is at or above the entity's second_approval_threshold_cents, the approver must not be the person who computed it.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: investments.distribute.","tags":["Waterfall runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"},"approved_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"approved at"},{"type":"null"}]}},"required":["run_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/actions/assess_homeowner_late_fees":{"post":{"operationId":"assess_homeowner_late_fees","summary":"Assess homeowner late fees","description":"Charges the association's late fee (late_fee_cents + late_fee_pct of the overdue balance, capped at late_fee_max_cents) to each homeowner account with late-fee-eligible charges (assessments) still open more than late_fee_grace_days after their due date on as_of. At most one fee per account per calendar month (idempotent). Returns the number of fees posted. Requires associations.assess.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.assess.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},"required":["association_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/violation_fines/assess":{"post":{"operationId":"assess_violation_fine","summary":"Assess violation fine","description":"Fines a violation: amount given, or the type's first / repeat fine, capped by max_fine_cents; posts a VIOLATION_FINE charge on the homeowner account and marks the case fined. violation_hearing_id must be a hearing of this violation. Refused while a fine-pausing appeal waits. The owners hear of the fine (violation_fine_assessed). Requires associations.assess.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.assess.","tags":["Violation fines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation id"},"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"assessed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"assessed on"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]},"violation_hearing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation hearing id"},{"type":"null"}]}},"required":["violation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/conversations/{id}/assign":{"post":{"operationId":"assign_conversation","summary":"Assign a conversation","description":"Staff (communications.write with access to the thread's property) assign a conversation to a teammate, or unassign it with null. The assignee must be able to open it, else 22023. The 00013 trigger adds the assignee as a participant and sends them conversation_assigned (not when assigning yourself). Returns the conversation id.\n\nReturns { result }.\n\nNeeds one of: communications.write.","tags":["Conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The conversation's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/accounting_entities/{id}/assign_property":{"post":{"operationId":"assign_property_accounting_entity","summary":"Assign an property accounting entity","description":"Moves a property's books to another accounting entity from a date (gl.setup and access to the property). Prospective only: refused if the property has postings on or after the date.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.setup.","tags":["Accounting entities"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The accounting entity's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"effective_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["property_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/amenities/association_usage":{"get":{"operationId":"association_amenity_usage","summary":"Association amenity usage","description":"Directors of the association and staff with associations.read: per amenity, the bookings, hours, households, cancellations, fees and requests waiting in a date range (property local dates). No names.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: associations.read.","tags":["Amenities"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"description":"to"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/reports/association_election_results":{"get":{"operationId":"association_election_results","summary":"Association election results","description":"Tally per option (count and weighted), turnout and whether quorum was met. Staff with associations.read any time; homeowners once the office closed voting (results_release after_close) or certified it (after_certify), never by the date alone. A secret ballot's counts are null for everyone until the election is closed, and come from association_election_secret_choices.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: associations.read.","tags":["Reports"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The association election's id."},"description":"The association election's id."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/association_elections/{id}/roll":{"get":{"operationId":"association_election_roll","summary":"Association election roll","description":"Who voted (home, voter, when, weight, paper or online). Choices only for a roll-call (not secret) election; a secret ballot never shows them.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: associations.read.","tags":["Association elections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The association election's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/associations/{id}/reserve_status":{"get":{"operationId":"association_reserve_status","summary":"Association reserve status","description":"Reserve health from the current study: fully funded balance (sum of replacement cost x effective age / useful life, aged from the study date), actual reserve balance (RESERVE_CASH lines of the association's fund), percent funded (100 = 100%), and components due within 5 years. Staff with associations.read or current board members.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: associations.read.","tags":["Associations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The association's id."}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/architectural_requests/{id}/attach_documents":{"post":{"operationId":"attach_architectural_request_documents","summary":"Attach architectural request documents","description":"Adds files to an architectural request after it was sent: an owner or director attaches files they uploaded, staff with associations.write any document they can read. Returns how many were added.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Architectural requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The architectural request's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"document_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"document ids"}},"required":["document_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/documents/attach_lockbox":{"post":{"operationId":"attach_lockbox_document","summary":"Attach lockbox document","description":"Files an upload (bucket documents, <org_id>/<document_id>/<file>) on a lockbox batch: the transmission file (file), the bank's whole image file (images), or one item's check or stub image. Posting links each item's images to its receipts. Returns the document id.\n\nReturns { result }.\n\nNeeds one of: documents.write, receivables.write.","tags":["Documents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"kind":{"type":"string","maxLength":100000,"description":"kind"},"storage_path":{"type":"string","maxLength":100000,"description":"storage path"},"title":{"type":"string","maxLength":100000,"description":"title"},"mime_type":{"type":"string","maxLength":100000,"description":"mime type"},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"size bytes"},{"type":"null"}]}},"required":["batch_id","item_id","kind","storage_path","title","mime_type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write","receivables.write"]}},"/v1/actions/attach_maintenance_intake":{"post":{"operationId":"attach_maintenance_intake","summary":"Attach maintenance intake","description":"Resident: right after submit_service_request (within an hour, while submitted), attaches the photos uploaded on the form (their own, for that lease, unattached; at most 10) as service_request_photos rows pointing at the same files, and the photo intake suggestion they saw (recording what they actually submitted). A suggestion that was shown queues a Photo maintenance intake event run, which proposes it to staff on the request.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},"photo_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"photo ids"},{"type":"null"}]},"suggestion_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"suggestion id"},{"type":"null"}]}},"required":["service_request_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_onboardings/attach_envelope":{"post":{"operationId":"attach_owner_onboarding_envelope","summary":"Attach owner onboarding envelope","description":"Records the owner's signature request for the agreement on their open onboarding. The envelope must name the owner's contact as a signer.\n\nReturns { ok: true }.\n\nNeeds one of: owners.write.","tags":["Owner onboardings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"onboarding_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"onboarding id"},"envelope_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"envelope id"}},"required":["onboarding_id","envelope_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/property_loans/attach_document":{"post":{"operationId":"attach_property_loan_document","summary":"Attach property loan document","description":"Files a document already linked to the loan's property (register_document with a property_id link) on the loan.\n\nReturns { ok: true }.\n\nNeeds one of: documents.write, properties.write.","tags":["Property loans"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"loan_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"loan id"},"document_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"}},"required":["loan_id","document_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write","properties.write"]}},"/v1/ach_exports/{id}/authorize_download":{"get":{"operationId":"authorize_ach_export_download","summary":"Authorize ACH export download","description":"Raises 42501 unless the caller may download this NACHA file (access to its bank account and the right to release every payment in it), and 55000 once the file or any of its entries was marked rejected (its payments may be in a newer file).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["ACH exports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The ach export's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/auto_record_utility":{"post":{"operationId":"auto_record_utility_bill","summary":"Auto record utility bill","description":"Records an uploaded utility bill without a person when the organization has utility_auto_record on and every rule passes: no reading issues, model confidence at or above the invoice_extraction minimum, an open account with an expense account and a provider linked to a vendor, a service period, nothing past due or transferred, the total due equal to the new charges, and no other statement of this account from the same file or sharing 4 or more service days. Then it creates the payables bill with the bill image, submits it only when an approval rule or owner sign-off applies (a submit with no approver would post it), and records the statement on it. A statement that totals two or more services separately gets one bill line per service, on the expense account the property's accounts of that service use. Returns {recorded, reason} where reason is off, issues, low_confidence, closed_account, no_expense_account, no_vendor, no_service_period, totals_differ, duplicate or service_split (a service with no expense account at the property, or service amounts that do not add up). Requires payables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"document_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},"utility_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility account id"},"reading":{"description":"reading"},"issues":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":100000},"description":"issues"},{"type":"null"}]}},"required":["document_id","utility_account_id","reading"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/reports/availability_board":{"post":{"operationId":"availability_board","summary":"Availability board","description":"One row per residential unit with availability (occupied, notice, vacant), physical readiness (occupied, turn_not_started, turn_in_progress, turn_on_hold, rent_ready) and leasing stage (not_listed, listed, application_pending, approved, lease_sent, lease_signed) kept apart, the key dates, prior, asking and market rent, concession, agent, pending applications, days vacant, subsidy program designation, the open vacancy blocker with its owner and agency status, and is_at_risk when a signed lease starts before the turn is ready. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/vendor_rfps/award":{"post":{"operationId":"award_vendor_rfp","summary":"Award vendor rfp","description":"Awards a vendor RFP to the received bid invitation_id. The other open invitations become not_awarded (declines stay declined), and a draft vendor contract for the winner (fixed fee = the bid, starting on desired_start_on or today) covers the RFP's properties. Returns the contract id.\n\nReturns { result }.\n\nNeeds one of: contacts.write, payables.write.","tags":["Vendor rfps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invitation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"invitation id"}},"required":["invitation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","payables.write"]}},"/v1/properties/balance_sheet":{"post":{"operationId":"balance_sheet_by_property","summary":"Balance sheet by property","description":"Every column has every active account (include_zero), so rows line up by gl_account_id or by section, row kind and label.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"basis":{"anyOf":[{"type":"string","enum":["accrual","cash"],"description":"basis"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":["as_of"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/bank_match_candidates":{"get":{"operationId":"bank_match_candidates","summary":"Bank match candidates","description":"Banking: the book items (checks, deposits, payouts, electronic vendor payments, transfers, other journal entries that are not voided or a reversal) with the same amount as a bank line and not matched yet, within 30 days of it (checks at any date), nearest first, at most 25. Pass the chosen item to match_bank_transaction.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"bank_transaction_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank transaction id"},"description":"bank transaction id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bank_reconciliations/report_data":{"get":{"operationId":"bank_reconciliation_report_data","summary":"Bank reconciliation report data","description":"Banking (banking.read on the account): data of the reconciliation report PDF. A completed reconciliation returns the data frozen at completion; an open one the live figures.\n\nReturns { result }.\n\nNeeds one of: banking.read.","tags":["Bank reconciliations"],"parameters":[{"name":"rec_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rec id"},"description":"rec id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/bank_reconciliations/summary":{"get":{"operationId":"bank_reconciliation_summary","summary":"Bank reconciliation summary","description":"Reconciliation worksheet: beginning, cleared deposits/payments, cleared balance, statement balance, difference (must be 0 to complete), deposits in transit, outstanding checks/payments, book balance and adjusted bank balance (statement + in transit - outstanding, which equals book balance when everything is recorded). Requires banking.read.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read.","tags":["Bank reconciliations"],"parameters":[{"name":"rec_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rec id"},"description":"rec id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/checks/bill_flags":{"post":{"operationId":"bill_check_flags","summary":"Bill check flags","description":"Bill_ids null = every open bill (draft, pending approval, approved, partially paid); otherwise those bills (at most 500), any status but void. related_bill_* (and typical_cents, the other bill's total) name the other bill of a possible duplicate when the caller can see it (null otherwise). Price medians are one aggregate over all the vendor's posted bills in the org, so a property-scoped user gets the same flags as an org-wide one. Feeds the bill page, the bills list filter and the approval step.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.read.","tags":["Checks"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"bill_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"bill ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/work_orders/{id}/bill":{"post":{"operationId":"bill_from_work_order","summary":"Bill from a work order","description":"Turn a completed work order's costs into draft bills (submitted when submit). Outside vendor: its accepted estimate (estimate lines, else the lump sum), or without one its billable labor and material entries; skipped if the vendor already invoiced through the portal. In-house: staff labor and stock materials go on a bill from the internal vendor at cost with owner_markup_rate 0. Each estimate, labor and material entry is billed at most once across non-void bills (bill_lines.*_entry_id). Lines follow billing_responsibility (owner, tenant chargeback, management = company books). Returns the bill ids.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"bill_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bill date"},{"type":"null"}]},"bill_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"bill number"},{"type":"null"}]},"submit":{"anyOf":[{"type":"boolean","description":"submit"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/bills/{id}/insight":{"get":{"operationId":"bill_insight","summary":"Bill insight","description":"Explains a bill (runs as the caller): repeat_repairs = other bills in the 12 months before it for the same equipment, or the same unit and maintenance category (a prompt to review, not a conclusion); coverage = active service contracts with the vendor at the property and equipment still under warranty on the bill date (staff verify coverage, the bill is never rejected automatically); lifecycle = proposal approved, commitment, work completed, invoice received, approvals, posting and payments, in time order.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/percentage_rent":{"post":{"operationId":"bill_percentage_rent","summary":"Bill percentage rent","description":"Bills percentage rent for a verified sales report: year-to-date net sales in the lease year vs the (prorated by months elapsed, if configured) natural or artificial breakpoint, at rate_pct (and second tier), less percentage rent already billed this lease year; posts the positive difference as a charge. Returns the percentage rent billed for this report in cents: 0 (never null) when nothing is due. Idempotent. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"report_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"report id"},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]}},"required":["report_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/bills/awaiting_my_approval":{"get":{"operationId":"bills_awaiting_my_approval","summary":"Bills awaiting my approval","description":"The ids of the bills in the org that wait for the caller's approval now. A bill is listed when it is pending approval, its next step has a rule the caller matches and the caller has not approved an earlier step, as approve_bill requires; admins get every bill with a step left. The caller needs payables.approve on every property the bill is coded to. Empty for anyone else.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.approve.","tags":["Bills"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/reports/board_balance_sheet":{"get":{"operationId":"board_balance_sheet","summary":"Board balance sheet","description":"Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_cash_accounts":{"get":{"operationId":"board_cash_accounts","summary":"Board cash accounts","description":"Board financials: the association fund's cash on as_of (default today in the organization's time zone) per cash GL account (gl_accounts.is_cash: bank, reserve, undeposited funds, processor clearing), cash basis, with the bank account behind it. A shared trust account shows only this fund's share. is_reserve marks RESERVE_CASH. Accounts with no balance are left out. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_comparative_statement":{"get":{"operationId":"board_comparative_statement","summary":"Board comparative statement","description":"Board financials: comparative_statement for the association's property fund (accrual basis). to defaults to today in the organization's time zone and from to the start of the association's fiscal year that contains to. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"statement","in":"query","required":true,"schema":{"type":"string","maxLength":100000,"description":"statement"},"description":"statement"},{"name":"years","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"years"},{"type":"null"}]}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},{"type":"null"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_delinquency":{"get":{"operationId":"board_delinquency","summary":"Board delinquency","description":"Past_due_cents = the four past-due buckets; balance_cents also counts current charges, credits and prepaid money. owner_names is null unless associations.board_sees_owner_names is on (names_shown); the unit number always shows. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_financial_summary":{"get":{"operationId":"board_financial_summary","summary":"Board financial summary","description":"Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_income_statement":{"get":{"operationId":"board_income_statement","summary":"Board income statement","description":"Period_cents covers from..to (default: this month to today in the organization's time zone), ytd_cents the association's fiscal year start through to. otherwise they are null and has_budget is false. Income positive, expenses positive, as the staff report. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},{"type":"null"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_invoice_balances":{"get":{"operationId":"board_invoice_balances","summary":"Board invoice balances","description":"Board invoice approval: for each bill that waits on the board, the association's operating cash and reserve balance today (as board_financial_summary), the invoice's main account (largest amount on the association's lines) with the approved budget for the association's fiscal year, the accrual actual so far and what is left (null budget = no approved budget line), whether the invoice is already in the books, and the bank balance of the association's operating bank account: bank_status bank_feed (the newest feed balance), reconciliation (the newest completed reconciliation's statement ending balance; the newer of the two wins), shared (another property or the company books was ever assigned to the account or has a journal line on it, so no balance is shown) or none. Only balances dated on or after the association's first assignment to the account count. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_pending_invoices":{"get":{"operationId":"board_pending_invoices","summary":"Board pending invoices","description":"Board financials: bills put to the association's board (board_approvals subject bill) that wait on the vote, with the vendor, the bill's dates and amount (the approval's amount, else the bill total) and the newest invoice document filed on the bill, which a director can open (documents_board_invoice_select). Directors vote in the Board page. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/board_reserve_fund":{"get":{"operationId":"board_reserve_fund","summary":"Board reserve fund","description":"With no reserve study, one total row with the reserve balance only. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/violations/board_overview":{"get":{"operationId":"board_violations_overview","summary":"Board violations overview","description":"Counts only: no units or owners. Current directors only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Violations"],"parameters":[{"name":"association_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"description":"association id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/budget_forecasts/comparison":{"get":{"operationId":"budget_forecast_comparison","summary":"Budget forecast comparison","description":"Original budget vs forecast vs actual for one forecast, per account for the fiscal year: original_cents (the budget's twelve months), forecast_cents (the forecast's twelve months), actual_to_date_cents (accrual actuals through actuals_through_on; for a budgeted balance sheet account its activity, debit positive, without opening balances), change_cents = forecast - original, all in the natural direction. is_favorable: income up or expense (or outflow) down. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Budget forecasts"],"parameters":[{"name":"forecast_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"forecast id"},"description":"forecast id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/budgets/{id}/history_recommendations":{"get":{"operationId":"budget_history_recommendations","summary":"Budget history recommendations","description":"For a property budget: each expense account with vendor bills in the 12 months before the budget year (not draft or void, lines at the property), with the top vendor, the number of bills (visits) and average cost per visit leaving out lines flagged non-recurring, last year's total, the one-time total, a recommended annual amount (last year without one-time costs, plus inflation_pct, default 3), the top vendor's active contract at the property, and the amount budgeted now.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The budget's id."}},{"name":"inflation_pct","in":"query","required":false,"schema":{"anyOf":[{"type":"number","description":"inflation pct"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/budgets/{id}/months":{"get":{"operationId":"budget_months","summary":"Budget months","description":"The twelve first-of-month dates a budget covers: January to December of fiscal_year for a property budget; for an association budget the association's fiscal year that ends in fiscal_year (fiscal_year_start_month).\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The budget's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bill_lines/budget_unusual":{"get":{"operationId":"budget_unusual_bill_lines","summary":"Budget unusual bill lines","description":"Possible one-time costs for a property budget to review: expense bill lines at the property in the 12 months before the budget year, not yet marked non-recurring, of at least 1,000.00 and at least three times the typical (median) line on the same account over the two prior years, with at least three other lines to compare. Up to 25, largest first. A suggestion only: staff mark a line one-time with set_bill_line_non_recurring. SECURITY INVOKER.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Bill lines"],"parameters":[{"name":"budget_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"description":"budget id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/agent_proposals/bulk_decide":{"post":{"operationId":"bulk_decide_agent_proposals","summary":"Bulk decide agent proposals","description":"Approve or reject several proposals one by one, in the order given, through decide_agent_proposal; edits maps a proposal id to its edits (only the action's editable fields, e.g. {\"send\": true} on a message), applied when approving. One proposal's error doesn't stop the rest. Returns one result per id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Agent proposals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"proposal_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"proposal ids"},"decision":{"type":"string","maxLength":100000,"description":"decision"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]},"edits":{"anyOf":[{"description":"edits"},{"type":"null"}]}},"required":["proposal_ids","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/calculate_assessment_amounts":{"post":{"operationId":"calculate_assessment_amounts","summary":"Calculate assessment amounts","description":"Splits a draft assessment schedule's period_total_cents across the association's units by its allocation method (equal, allocation_pct, square_feet), keeping manual overrides, with largest-remainder rounding so the unit amounts sum exactly to the total. Returns the total (for a custom schedule, the sum of its entered unit amounts, unchanged). Schedules sent to the board, approved or active are not recalculated. Requires associations.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assessment_schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assessment schedule id"}},"required":["assessment_schedule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/cam_reconciliations/calculate":{"post":{"operationId":"calculate_cam_reconciliation","summary":"Calculate CAM reconciliation","description":"(Re)calculates the pool's reconciliation: per-account actuals from accrual-basis journal_lines for the property and period (excluding period_close year-end closing entries), gross-up of variable accounts to the pool's gross_up_pct when average_occupancy_pct is lower (manual adjustments kept), then per-tenant lines (exclusions, base amount, share, occupancy proration, admin fee, cap) against estimates billed. Since 00130 each line is split into cam_reconciliation_line_periods, one per set of terms in force (cam_participant_terms), and the line holds the sums; the share and base on the line are those in force at the end. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["CAM reconciliations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_pool_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam pool id"},"average_occupancy_pct":{"anyOf":[{"type":"number","description":"average occupancy pct"},{"type":"null"}]}},"required":["cam_pool_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/calculate_certification":{"post":{"operationId":"calculate_certification","summary":"Calculate certification","description":"Computes a certification from its members, income sources, assets and deductions: household size, dependents, elderly/disabled family, annual income (asset income imputed at the passbook rate above the threshold), deductions, adjusted income, TTP (greatest of 30% adjusted monthly, 10% gross monthly, minimum rent), contract rent and utility allowance, tenant rent and HAP (tenant rent + HAP = contract rent; HCV: HAP = min(payment standard, gross rent) - TTP; project-based: tenant rent = TTP - UA), utility reimbursement, income / rent limits, AMI percent, eligibility and next recertification date. Requires affordable.write.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"}},"required":["household_certification_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/utility_billing_runs/calculate":{"post":{"operationId":"calculate_utility_billing_run","summary":"Calculate utility billing run","description":"(Re)computes a draft run's allocations with the policy's method (RUBS, submeter or flat fee) and refreshes run totals so that allocated = allocatable, billed + absorbed = allocated and common_area + allocatable + unrecovered_bill = total_bill. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Utility billing runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"}},"required":["run_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/reports/cam_statement":{"get":{"operationId":"cam_statement","summary":"CAM statement","description":"Data of a CAM reconciliation statement PDF: letterhead, tenant, pool, expenses per account (actual, gross-up, adjustment, recoverable, excluded for this tenant), share and denominator, each part of the year with its terms (base, admin fee, cap math), the totals, estimates billed and the true-up. Staff with receivables.read on the property, or a tenant on the lease once the statement is sent.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Reports"],"parameters":[{"name":"cam_statement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam statement id"},"description":"cam statement id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/owners/can_download_packet":{"get":{"operationId":"can_download_owner_packet","summary":"Can download owner packet","description":"True when the caller may download the owner packet of the statement. The staff statement page hides the button otherwise.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Owners"],"parameters":[{"name":"statement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"statement id"},"description":"statement id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/amenity_reservations/{id}/cancel":{"post":{"operationId":"cancel_amenity_reservation","summary":"Cancel an amenity reservation","description":"Cancels a future booking (by the booker until the amenity's cancel_notice_hours before it starts, or by staff at any time; 00133) and reverses its fee and deposit charges (payments on them become unapplied credit).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: associations.write, leasing.write.","tags":["Amenity reservations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The amenity reservation's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write","leasing.write"]}},"/v1/capital_calls/{id}/cancel":{"post":{"operationId":"cancel_capital_call","summary":"Cancel a capital call","description":"Cancels a capital call that has no unreversed contributions (reverse them first with reverse_investor_contribution); its allocations stop counting as called. Requires investments.write.\n\nReturns { ok: true }.\n\nNeeds one of: investments.write.","tags":["Capital calls"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The capital call's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/home_purchase_contracts/cancel":{"post":{"operationId":"cancel_home_purchase_contract","summary":"Cancel home purchase contract","description":"Cancels a draft contract. Nothing was billed.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["contract_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/mail_batches/cancel":{"post":{"operationId":"cancel_mail_batch","summary":"Cancel mail batch","description":"Stops a mail batch. Letters the provider already accepted are not recalled.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Mail batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/outreach_batches/cancel":{"post":{"operationId":"cancel_outreach_batch","summary":"Cancel outreach batch","description":"Stops an outreach batch. Calls already ringing finish; nothing else goes out.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Outreach batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/payment_transactions/{id}/cancel":{"post":{"operationId":"cancel_payment_transaction","summary":"Cancel a payment transaction","description":"Payer (own payment, or an autopay or scheduled payment from their method) or staff with receivables.write and access to the payment's property: cancel a payment still in requires_action, or an inbound ACH payment still processing that the processor has not sent to the bank. When the processor already has the payment (external_payment_id), only payments-cancel-intent may cancel it, after the processor confirmed the cancel; a success the processor reports anyway still books (apply_payment_transaction_update).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Payment transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The payment transaction's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/cancel_rent_change":{"post":{"operationId":"cancel_rent_change","summary":"Cancel rent change","description":"Removes a scheduled rent change before it starts: the lease's latest rent period, effective after today in the org's time zone, not from an amendment and not yet charged. The delete trigger reopens the earlier period. Requires leasing.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_rent_schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease rent schedule id"}},"required":["lease_rent_schedule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/resale_requests/cancel":{"post":{"operationId":"cancel_resale_request","summary":"Cancel resale request","description":"Cancels an open resale request with a reason and tells the requester. A paid fee is refunded through the payment's refund screen.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Resale requests"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["request_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/resident_events/{id}/cancel":{"post":{"operationId":"cancel_resident_event","summary":"Cancel a resident event","description":"Cancels a scheduled event and tells everyone who answered going or maybe.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: residents.write.","tags":["Resident events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The resident event's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/service_requests/{id}/cancel":{"post":{"operationId":"cancel_service_request","summary":"Cancel a service request","description":"Withdraw a service request: the tenant who submitted it (while submitted) or staff (while submitted/triaged).\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.write.","tags":["Service requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The service request's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/tasks/{id}/cancel":{"post":{"operationId":"cancel_task","summary":"Cancel a task","description":"Cancels an open task (assignee, creator, or staff with access, as complete_task) and its scheduled reminders in one transaction. Returns false when the task was already completed or canceled.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Tasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The task's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/leads/capture":{"post":{"operationId":"capture_lead","summary":"Capture lead","description":"Records a prospect inquiry (website form, listing-channel feed, phone call). Finds or creates the contact, de-duplicates by channel lead id and by open lead at the same property (adding a web_inquiry event instead), attributes the lead source (explicit or by channel), and assigns the listing's or property's leasing agent. Returns the lead id.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"first name"},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"last name"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":100000,"description":"email"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},{"type":"null"}]},"lead_source_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead source id"},{"type":"null"}]},"source_channel":{"anyOf":[{"type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"],"description":"source channel"},{"type":"null"}]},"desired_move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"desired move in on"},{"type":"null"}]},"budget_max_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"budget max cents"},{"type":"null"}]},"bedrooms_min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms min"},{"type":"null"}]},"message":{"anyOf":[{"type":"string","maxLength":100000,"description":"message"},{"type":"null"}]},"external_lead_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"external lead id"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/reports/cash_forecast":{"get":{"operationId":"cash_forecast","summary":"Cash forecast","description":"Expected receipts = monthly recurring charges x the share of last month's lease charges that receipt allocations paid (between 0 and 1; 95% when there were none), in the week holding the 1st; bills due = what is still open on approved or pending bills by due date, this property's share of bills split across properties (overdue ones in the first week); debt service = loan payments and escrow in the week holding the 1st. A reserve balance is not operating cash and an expected reimbursement is not money received, so neither is counted. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"},{"name":"weeks","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"weeks"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/receipts/{id}/cash":{"get":{"operationId":"cash_receipt","summary":"Cash a receipt","description":"Data for the printed cash receipt (PDF) of a cash payment: receipt number, date, amount, organization, payer/tenant, property and unit, who took the cash, and what it was applied to (applied_to [{description, due_on, amount_cents}]). Staff with receivables.read on the property, or the lease's tenants; anyone else gets 42501 \"not found or not accessible\". Rendered to PDF by the web print route (apps/web /receipts/[id]/print, not built yet) and attached with attach_cash_receipt_document.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Receipts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The receipt's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/board_votes/cast":{"post":{"operationId":"cast_board_vote","summary":"Cast board vote","description":"Casts or changes a director's vote. Called by the director (board portal) with board_member_id null, or by staff with associations.write recording a meeting vote for board_member_id, optionally dated voted_at (the meeting time; minutes are often entered later). The deadline, the seat and the decision are judged at the vote time. Returns the approval status after tallying (pending / approved / rejected).\n\nReturns { result }.\n\nNeeds one of: associations.write.","tags":["Board votes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"board_approval_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"board approval id"},"vote":{"type":"string","enum":["yes","no","abstain","recused"],"description":"vote"},"comment":{"anyOf":[{"type":"string","maxLength":100000,"description":"comment"},{"type":"null"}]},"board_member_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"board member id"},{"type":"null"}]},"voted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"voted at"},{"type":"null"}]}},"required":["board_approval_id","vote"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/reports/certification_50059_data":{"get":{"operationId":"certification_50059_data","summary":"Certification 50059 data","description":"The figures of a completed certification laid out for form HUD-50059 (rendered as a PDF by the web route /api/certifications/<id>/hud-50059): project, unit, household members, income, assets, allowances, TTP, tenant rent and assistance payment. Requires affordable.read on the program's property.\n\nReturns { result }.\n\nNeeds one of: affordable.read.","tags":["Reports"],"parameters":[{"name":"household_certification_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"description":"household certification id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/reports/certification_missing_items":{"post":{"operationId":"certification_missing_items","summary":"Certification missing items","description":"What a HUD program certification still needs before HUD-50059 can be completed, for its type (MI and initial, AR, IR, UT): a head of household; each member's date of birth, last four SSN digits and citizenship code; a verification for each counted income; the program's income limit area (move-in); the interim or transfer reason (IR, UT); the HAP contract (Section 8 and PBV). section names where it is filled in. Non-HUD programs return nothing. Reads as the caller (row level security applies).\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"household certification ids"}},"required":["household_certification_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/{id}/claim":{"post":{"operationId":"claim_work_order","summary":"Claim a work order","description":"A technician takes an open work order that has no technician and no vendor, at a property they can access. It becomes assigned to the caller (new moves to assigned) with a timeline note. Assigning anyone else is assign_work_order.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/actions/clear_utility_exception":{"post":{"operationId":"clear_utility_exception","summary":"Clear utility exception","description":"Resolves a row of utility_bill_exceptions with a note. Clearing again replaces the note.\n\nReturns { result }.\n\nNeeds one of: payables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"exception_key":{"type":"string","maxLength":100000,"description":"exception key"},"note":{"type":"string","maxLength":100000,"description":"note"}},"required":["exception_key","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/reports/click_to_call_ready":{"get":{"operationId":"click_to_call_ready","summary":"Click to call ready","description":"Whether the caller can place a click-to-call (comms-calls) for this org and property: communications.write, a valid phone on their profile and a voice number for the org. The screens show a plain tel: link when false.\n\nReturns { result }.\n\nNeeds one of: communications.write.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/reports/close_checklist":{"post":{"operationId":"close_checklist","summary":"Close checklist","description":"The month-end close checklist for staff with gl.read: for the accounting period containing period_start, over the given properties (only ones the caller can access), else every property for org-wide staff and the caller's own properties otherwise. The records under each item are listed only with that record's read permission. live replays the ledger for the balance check instead of reading the nightly result (the soft-close applier passes it). The Close view shows it with the Month-end close agent's proposals as its exceptions; the soft-close applier re-runs it before closing.\n\nReturns { result }.\n\nNeeds one of: banking.read, gl.read, owners.read, payables.read, receivables.read.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"period_start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start"},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"live":{"anyOf":[{"type":"boolean","description":"live"},{"type":"null"}]}},"required":["period_start"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read","owners.read","payables.read","receivables.read"]}},"/v1/leases/{id}/close":{"post":{"operationId":"close_lease","summary":"Close a lease","description":"Closes an expired / terminated lease once it is settled: no security deposit held and a zero balance (owed or prepaid). Requires leasing.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"effective_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"effective at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/purchase_orders/{id}/close":{"post":{"operationId":"close_purchase_order","summary":"Close a purchase order","description":"Close an approved, partly billed or billed PO (no more bills expected), or void (void) a draft, pending or approved PO that no live bill references (pending owner approvals for it are canceled). Closed and void are final. Redefined in 00032 from 00010 to add the status checks.\n\nReturns { ok: true }.\n\nNeeds one of: payables.write.","tags":["Purchase orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The purchase order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"void":{"anyOf":[{"type":"boolean","description":"void"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/reports/close_signoff_checklist":{"get":{"operationId":"close_signoff_checklist","summary":"Close signoff checklist","description":"The close of a month with sign-offs: close_checklist (scoped to the caller's properties, records by permission) without its soft-close status item, plus the trust reconciliation and accruals steps, each with required (status not n/a) and its current sign-off (who, when, note, override note). Adds require_signoff (close_settings), required_count, signed_count, can_sign (gl.write and organization-wide access) and can_close.\n\nReturns { result }.\n\nNeeds one of: banking.read, gl.close_period, gl.read, gl.write.","tags":["Reports"],"parameters":[{"name":"period_start","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start"},"description":"period start"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.close_period","gl.read","gl.write"]}},"/v1/reports/comparative_statement":{"post":{"operationId":"comparative_statement","summary":"Comparative statement","description":"Year over year is years 2; a five-year trend is 5. Every column has every active account (include_zero), so rows line up by gl_account_id or by section, row kind and label; the app drops rows that are zero in every column and computes the variance.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statement":{"type":"string","maxLength":100000,"description":"statement"},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"years"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"basis":{"anyOf":[{"type":"string","enum":["accrual","cash"],"description":"basis"},{"type":"null"}]}},"required":["statement","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/complete_certification":{"post":{"operationId":"complete_certification","summary":"Complete certification","description":"Recalculates and completes (signed) a certification, supersedes the household's earlier ones under the program and optionally applies the new tenant rent / HAP split to the lease's recurring charges. Move-in / initial certifications over the income limit are rejected. Requires affordable.certify.\n\nReturns { result }.\n\nNeeds one of: affordable.certify.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"household_certification_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"household certification id"},"signed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"signed on"},{"type":"null"}]},"apply_rent":{"anyOf":[{"type":"boolean","description":"apply rent"},{"type":"null"}]}},"required":["household_certification_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.certify"]}},"/v1/home_purchase_contracts/complete":{"post":{"operationId":"complete_home_purchase_contract","summary":"Complete home purchase contract","description":"Closes a contract the buyer has paid in full: every contract charge settled, no principal left (financing) or the option exercised and the price paid (rent-to-own). The home becomes the resident's and title_transferred_on is recorded.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"title_transferred_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"title transferred on"},{"type":"null"}]}},"required":["contract_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/inspections/{id}/complete":{"post":{"operationId":"complete_inspection","summary":"Complete an inspection","description":"Finish an inspection: apply item results (items = [{\"id\" or \"area\"+\"item\", \"condition\", \"notes\", \"estimated_repair_cost_cents\", \"requires_repair\", \"is_chargeback_to_tenant\", \"chargeback_amount_cents\"}]), mark it completed, optionally create one repair work order per requires_repair item (tenant-billed for chargebacks, linked to the open unit turn), and link a move-out inspection to the unit turn. Returns the number of work orders created.\n\nReturns { result }.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The inspection's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"overall_condition":{"anyOf":[{"type":"string","enum":["excellent","good","fair","poor","damaged","missing","na"],"description":"overall condition"},{"type":"null"}]},"summary_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"summary notes"},{"type":"null"}]},"items":{"anyOf":[{"description":"items"},{"type":"null"}]},"create_work_orders":{"anyOf":[{"type":"boolean","description":"create work orders"},{"type":"null"}]},"is_passed":{"anyOf":[{"type":"boolean","description":"is passed"},{"type":"null"}]},"is_tenant_present":{"anyOf":[{"type":"boolean","description":"is tenant present"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/leads/{id}/complete_follow_up":{"post":{"operationId":"complete_lead_follow_up","summary":"Complete lead follow up","description":"Marks the lead's follow-up done, optionally scheduling the next one, and logs it. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lead's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"next_due_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"next due at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_critical_dates/complete":{"post":{"operationId":"complete_lease_critical_date","summary":"Complete lease critical date","description":"Marks a critical date completed (or dismissed). Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"critical_date_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"critical date id"},"dismiss":{"anyOf":[{"type":"boolean","description":"dismiss"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["critical_date_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/complete_regulatory_obligation":{"post":{"operationId":"complete_regulatory_obligation","summary":"Complete regulatory obligation","description":"Records that a regulatory report was filed on completed_on. Completes its compliance item and opens the next one cadence_months after the due date (none once the agreement has ended). Returns the next due date.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"obligation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"obligation id"},"completed_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"completed on"}},"required":["obligation_id","completed_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/work_orders/{id}/complete":{"post":{"operationId":"complete_work_order","summary":"Complete a work order","description":"Mark a work order completed (dispatcher, assigned technician or assigned vendor). tenant_visible_notes says what was done and is required when the work order is tied to a resident (a request or a lease): the resident sees it on the request and in the done email. resolution_notes is the staff-only note (defaults to the resident note). completed_at (default now) also stamps the status_changed event and work_order_status_history.changed_at. Closes the service request when all its work orders are done and ticks linked unit-turn tasks. Staff then verify via update_work_order_status(..., 'verified').\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resolution_notes":{"type":"string","maxLength":100000,"description":"resolution notes"},"tenant_visible_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"tenant visible notes"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"completed at"},{"type":"null"}]}},"required":["resolution_notes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/completed_work_awaiting_invoice":{"post":{"operationId":"completed_work_awaiting_invoice","summary":"Completed work awaiting invoice","description":"Accounting queue: vendor work orders completed or verified with no bill yet, oldest first, with days since completion and the approved amount (a possible accrual for work performed but not invoiced). In-house vendors are left out. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_tax_summaries/compute":{"post":{"operationId":"compute_owner_tax_summaries","summary":"Compute owner tax summaries","description":"Compute draft 1099-MISC owner summaries for a tax year. Requires owners.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.write.","tags":["Owner tax summaries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"}},"required":["tax_year"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/waterfall_runs/compute":{"post":{"operationId":"compute_waterfall_run","summary":"Compute waterfall run","description":"Runs the entity's active waterfall for a distribution and saves the result (waterfall_runs status computed + waterfall_allocations). computed_at stamps computed_at (default now). Then approve_waterfall_run and pay_waterfall_run. Requires investments.distribute and access to the paying property and bank account.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: investments.distribute.","tags":["Waterfall runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"distributable_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"distributable cents"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"computed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"computed at"},{"type":"null"}]}},"required":["entity_id","distributable_cents","property_id","bank_account_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/syndication_feeds/configure":{"post":{"operationId":"configure_syndication_feed","summary":"Configure syndication feed","description":"Creates or updates the organization's feed for a listing channel (zillow, apartments_com, rent_com, zumper, other) and returns its tokens. The feed URL is <functions>/syndication-feed/<feed_token>, the lead-delivery URL <functions>/syndication-leads/<lead_token>. On update, null arguments keep the current value and an empty string clears an override; a new feed is enabled unless is_enabled is false. Disabling marks the channel's live rows removed; re-enabling queues selected active listings again. rotate_tokens issues new tokens (old URLs stop working). Craigslist and facebook are refused: they have no feed.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { data, truncated } with at most 1000 rows.\n\nNeeds one of: marketing.write.","tags":["Syndication feeds"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"],"description":"channel"},"is_enabled":{"anyOf":[{"type":"boolean","description":"is enabled"},{"type":"null"}]},"channel_account_id":{"anyOf":[{"type":"string","maxLength":100000,"description":"channel account id"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"company name"},{"type":"null"}]},"contact_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"contact name"},{"type":"null"}]},"contact_email":{"anyOf":[{"type":"string","maxLength":100000,"description":"contact email"},{"type":"null"}]},"contact_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"contact phone"},{"type":"null"}]},"website_url":{"anyOf":[{"type":"string","maxLength":100000,"description":"website url"},{"type":"null"}]},"feed_format":{"anyOf":[{"type":"string","enum":["zillow_hotpads","mits_ils"],"description":"feed format"},{"type":"null"}]},"rotate_tokens":{"anyOf":[{"type":"boolean","description":"rotate tokens"},{"type":"null"}]}},"required":["channel"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/actions/confirm_utility_setup":{"post":{"operationId":"confirm_utility_setup","summary":"Confirm utility setup","description":"A resident on the lease (or staff with leasing.write) confirms a utility is in the resident's name for this lease, with an optional short note. Returns the lease_utility_setups id.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"resident_utility_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"resident utility id"},"account_note":{"anyOf":[{"type":"string","maxLength":100000,"description":"account note"},{"type":"null"}]}},"required":["lease_id","resident_utility_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/confirm_variance_note":{"post":{"operationId":"confirm_variance_note","summary":"Confirm variance note","description":"A person confirms a variance note (an AI suggestion or their own) as a verified fact or a manager statement, with the next action; an action with an owner and due date becomes a task in the action queue. Staff with gl.write on the budget's property.\n\nReturns { ok: true }.\n\nNeeds one of: gl.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"note id"},"note":{"type":"string","maxLength":100000,"description":"note"},"source_kind":{"type":"string","enum":["verified_fact","manager_statement","suggested"],"description":"source kind"},"action_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"action text"},{"type":"null"}]},"action_owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"action owner user id"},{"type":"null"}]},"action_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"action due on"},{"type":"null"}]}},"required":["note_id","note","source_kind"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/work_order_appointments/confirm":{"post":{"operationId":"confirm_work_order_appointment","summary":"Confirm work order appointment","description":"Confirm a proposed appointment as the tenant (portal), the assigned vendor, or staff on their behalf. Becomes confirmed once the vendor (if any) and the tenant (if required) have confirmed. Returns the new appointment status.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Work order appointments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appointment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"appointment id"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["appointment_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/contacts/channel_status":{"post":{"operationId":"contact_channel_status","summary":"Contact channel status","description":"Other contacts are left out.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: communications.write.","tags":["Contacts"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"contact ids"}},"required":["contact_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/leases/convert_application":{"post":{"operationId":"convert_application_to_lease","summary":"Convert application to lease","description":"Creates a draft lease from an approved application: term from the requested length, rent from the decision / quote / listing, deposit from the listing plus any extra deposit required by the decision, pet deposit per non-assistance pet; applicants become lease tenants (applicant → primary, co_applicant → co_tenant, guarantor, occupant). Since 00189: pets_allowed from pets_allowed, else true when the listing allows pets (a listed pet turns it on anyway); has_pets when the application lists any animal; the animals are copied to the primary applicant's pets. Marks the application converted. Next: e-sign, then activate_lease. Requires leasing.write.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"application_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"application id"},"start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"start on"},"end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"end on"},{"type":"null"}]},"rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent cents"},{"type":"null"}]},"deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deposit cents"},{"type":"null"}]},"lease_type":{"anyOf":[{"type":"string","enum":["fixed_term","month_to_month"],"description":"lease type"},{"type":"null"}]},"rent_due_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent due day"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"pets_allowed":{"anyOf":[{"type":"boolean","description":"pets allowed"},{"type":"null"}]}},"required":["application_id","start_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/correct_offline_payment":{"post":{"operationId":"correct_offline_payment","summary":"Correct offline payment","description":"Edit a recorded offline payment like QuickBooks. Same lease and tenant with allocations: re-applies it to other charges (reallocate_receipt). Another lease or tenant: voids the receipt (reopening what it paid) and records the same amount, method, date and reference on the new lease (allocations or FIFO), linked to the same instrument. If it was deposited, the replacement takes its place on the same deposit and the bank book is untouched; a deposited payment can only move within its property (fund). Returns the receipt now carrying the money. Amount or method changes: void_offline_payment and enter it again.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receipt_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"receipt id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"allocations":{"anyOf":[{"description":"allocations"},{"type":"null"}]}},"required":["receipt_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/correct_tax_form_1099":{"post":{"operationId":"correct_tax_form_1099","summary":"Correct tax form 1099","description":"File a corrected 1099 for a filed/accepted form: a new draft row pointing at it (corrects_tax_form_1099_id, with the reason and the corrected amounts, defaulting to the original's) and the original becomes corrected. The correction then goes final -> filed like any form. Returns the new form id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_form_1099_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tax form 1099 id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"nonemployee_compensation_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"nonemployee compensation cents"},{"type":"null"}]},"rents_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rents cents"},{"type":"null"}]},"other_income_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"other income cents"},{"type":"null"}]},"federal_withholding_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"federal withholding cents"},{"type":"null"}]}},"required":["tax_form_1099_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/count_awaiting_my_approval":{"get":{"operationId":"count_bills_awaiting_my_approval","summary":"Count bills awaiting my approval","description":"How many bills in the org wait for the caller's approval now (bills_awaiting_my_approval). Returns 0 for anyone else. Redefined in 00119 from 00094.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Bills"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/access_requests/create":{"post":{"operationId":"create_access_request","summary":"Create access request","description":"Asks the residents of up to 500 apartments at one property for access in a time window: records the request with each apartment (and the violation it is for), and sends an announcement to each apartment's tenants by email, text and the resident portal that asks them to confirm. violation_ids adds their apartments. Requires maintenance.write at the property and communications.broadcast. Returns the request id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: communications.broadcast, maintenance.write.","tags":["Access requests"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"unit ids"},"purpose":{"type":"string","enum":["repair","inspection","violation","extermination","other"],"description":"purpose"},"window_start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"window start"},"window_end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"window end"},"message":{"type":"string","maxLength":100000,"description":"message"},"channels":{"anyOf":[{"type":"array","items":{"type":"string","enum":["in_app","push","email","sms","voice"]},"description":"channels"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"violation_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"violation ids"},{"type":"null"}]}},"required":["property_id","unit_ids","purpose","window_start","window_end","message"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast","maintenance.write"]}},"/v1/accounting_entities/create":{"post":{"operationId":"create_accounting_entity","summary":"Create accounting entity","description":"Creates an accounting entity: owner (owner_id required, one per owner), association, investment_fund or other. Assign properties to it with assign_property_accounting_entity.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["Accounting entities"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["management_company","owner","association","investment_fund","other"],"description":"kind"},"name":{"type":"string","maxLength":100000,"description":"name"},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"legal_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"legal name"},{"type":"null"}]},"tax_id_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"tax id last4"},{"type":"null"}]},"code":{"anyOf":[{"type":"string","maxLength":100000,"description":"code"},{"type":"null"}]},"fiscal_year_start_month":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fiscal year start month"},{"type":"null"}]},"default_report_basis":{"anyOf":[{"type":"string","enum":["both","accrual","cash"],"description":"default report basis"},{"type":"null"}]},"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},{"type":"null"}]},"investment_entity_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investment entity id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["kind","name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/associations/create":{"post":{"operationId":"create_association","summary":"Create association","description":"Creates an association: a property of type association (its own fund) unless property_id is given, the associations row, an accounting entity of kind association that owns the property's books from management_started_on (default today; never before the day after the fund's last posted line), and optionally the primary property manager assignment from the same date (managers are per property, so each association can have its own). A new property's management_started_on is management_started_on. Requires associations.write and properties.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write, properties.write.","tags":["Associations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"legal_name":{"type":"string","maxLength":100000,"description":"legal name"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line1"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100000,"description":"city"},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":100000,"description":"region"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"postal code"},{"type":"null"}]},"association_type":{"anyOf":[{"type":"string","enum":["hoa","condo","coop","townhome","master","sub_association","commercial_condo"],"description":"association type"},{"type":"null"}]},"fiscal_year_start_month":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fiscal year start month"},{"type":"null"}]},"assessment_frequency":{"anyOf":[{"type":"string","enum":["monthly","quarterly","semiannual","annual","one_time"],"description":"assessment frequency"},{"type":"null"}]},"assessment_due_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"assessment due day"},{"type":"null"}]},"manager_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"manager user id"},{"type":"null"}]},"management_started_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"management started on"},{"type":"null"}]}},"required":["legal_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write","properties.write"]}},"/v1/association_elections/create":{"post":{"operationId":"create_association_election","summary":"Create association election","description":"A draft election with its candidates or choices (a measure without choices gets Yes and No), voting window, weight, quorum, secret ballot and when results show.\n\nReturns { result }.\n\nNeeds one of: associations.write.","tags":["Association elections"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"title":{"type":"string","maxLength":100000,"description":"title"},"election_type":{"type":"string","enum":["board_election","ballot_measure","recall","amendment"],"description":"election type"},"opens_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"opens at"},"closes_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"closes at"},"options":{"type":"array","items":{"type":"string","maxLength":100000},"description":"options"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"voting_basis":{"anyOf":[{"type":"string","enum":["one_per_unit","allocation_pct"],"description":"voting basis"},{"type":"null"}]},"seats_to_fill":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"seats to fill"},{"type":"null"}]},"max_choices_per_ballot":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max choices per ballot"},{"type":"null"}]},"quorum_pct":{"anyOf":[{"type":"number","description":"quorum pct"},{"type":"null"}]},"is_secret_ballot":{"anyOf":[{"type":"boolean","description":"is secret ballot"},{"type":"null"}]},"results_release":{"anyOf":[{"type":"string","maxLength":100000,"description":"results release"},{"type":"null"}]}},"required":["association_id","title","election_type","opens_at","closes_at","options"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/bills/create":{"post":{"operationId":"create_bill","summary":"Create bill","description":"Also used by AI invoice extraction with is_ai_extracted and a confidence; low confidence marks it needs_review). Returns the bill id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},"bill_number":{"type":"string","maxLength":100000,"description":"bill number"},"bill_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bill date"},"lines":{"description":"lines"},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"submit":{"anyOf":[{"type":"boolean","description":"submit"},{"type":"null"}]},"total_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"total cents"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"purchase_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"purchase order id"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["manual","email","upload","ai_extraction","vendor_portal","recurring","work_order","import"],"description":"source"},{"type":"null"}]},"is_ai_extracted":{"anyOf":[{"type":"boolean","description":"is ai extracted"},{"type":"null"}]},"ai_extraction_confidence":{"anyOf":[{"type":"number","description":"ai extraction confidence"},{"type":"null"}]},"source_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"source storage path"},{"type":"null"}]}},"required":["vendor_id","bill_number","bill_date","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/receipts/create_bill":{"post":{"operationId":"create_bill_from_receipt","summary":"Create bill from receipt","description":"A draft bill from a photographed receipt or bill, one line for the total coded to gl_account_id (else the vendor's default account), with the image attached. Without a number on the receipt, the bill number is \"Receipt\" and the date, made unique for the vendor. With a pending bill_draft suggestion of invoice extraction for the document (suggestion_id), the bill is created by accepting it with these values. Returns the bill id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Receipts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"document_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},"bill_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bill date"},"total_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"total cents"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"gl_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"gl account id"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"suggestion_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"suggestion id"},{"type":"null"}]},"bill_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"bill number"},{"type":"null"}]}},"required":["document_id","vendor_id","bill_date","total_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/budget_forecasts/create":{"post":{"operationId":"create_budget_forecast","summary":"Create budget forecast","description":"In the budget or with accrual actuals) gets twelve months, actuals for months through actuals_through_on (default the end of last month) and the budget after. Balance sheet actuals are their activity, debit positive, without opening balances. Staff with gl.write on the property. The original budget does not change.\n\nReturns { result }.\n\nNeeds one of: gl.write.","tags":["Budget forecasts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"name":{"type":"string","maxLength":100000,"description":"name"},"actuals_through_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"actuals through on"},{"type":"null"}]}},"required":["budget_id","name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/cam_estimates/create":{"post":{"operationId":"create_cam_estimate","summary":"Create CAM estimate","description":"Sets a tenant's monthly estimated recovery for a pool from effective_on: annual estimate given, or (default) share of the pool budget above the base amount plus admin fee (capped for fixed caps); monthly = round(annual/12) as a recurring charge of the pool's estimate charge type. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["CAM estimates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_pool_participant_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam pool participant id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"annual_estimate_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"annual estimate cents"},{"type":"null"}]},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]}},"required":["cam_pool_participant_id","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/inspections/create_common_area":{"post":{"operationId":"create_common_area_inspection","summary":"Create common area inspection","description":"Schedule an inspection of a property's common areas: the whole property, one building (building_id) or for the property's association (association_id; the property comes from the association when property_id is null). The checklist is inspection_template_id, else the org's default common-area template, else the built-in common-area list. Not for move-in or move-out. Requires maintenance.write or compliance.write and property access. Returns inspections.id.\n\nReturns { result }.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspections"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"building_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"building id"},{"type":"null"}]},"association_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},{"type":"null"}]},"inspection_type":{"anyOf":[{"type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"],"description":"inspection type"},{"type":"null"}]},"inspection_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection template id"},{"type":"null"}]},"scheduled_start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled start at"},{"type":"null"}]},"scheduled_end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled end at"},{"type":"null"}]},"inspector_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspector user id"},{"type":"null"}]},"inspector_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspector vendor id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/distribution_waterfalls/create":{"post":{"operationId":"create_distribution_waterfall","summary":"Create distribution waterfall","description":"Starts a new active distribution waterfall for an investment entity and retires the current one: return of capital, then an optional preferred return (pref_rate, 0.08 = 8%), then an optional promote split (promote_lp_pct to investors, the rest to the GP). requires investments.write in org_id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: investments.write.","tags":["Distribution waterfalls"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"name":{"type":"string","maxLength":100000,"description":"name"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"pref_rate":{"anyOf":[{"type":"number","description":"pref rate"},{"type":"null"}]},"promote_lp_pct":{"anyOf":[{"type":"number","description":"promote lp pct"},{"type":"null"}]}},"required":["entity_id","name","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/leases/create_draft":{"post":{"operationId":"create_draft_lease","summary":"Create draft lease","description":"New lease as a draft, in one transaction: the lease (no end date = month to month), its people, an internal note (lease_notes) and the pet rent (a monthly PET_RENT recurring charge). people is a JSON array, primary tenant first: each item is {\"contact_id\"} for an existing contact, or {\"first_name\", \"last_name\", \"email\", \"phone\"} for a new person, created with create_contact (contacts.write; refused when the email already belongs to a contact), plus optional \"role\" (default primary for the first, co_tenant after), \"relationship\" and \"is_financially_responsible\" (default: not for occupants). A new person typed twice is one contact. Pet deposit and pet rent need pets_allowed. pet_rent_cents needs receivables.write and access to the property; copy_pet_rent_from_lease_id instead carries that lease's pet rent (a unit transfer), which also needs receivables.write when there is pet rent to carry. A new person whose email belongs to a contact is refused; the message names that contact only when the caller can read it. Requires leasing.write on the unit's property. Returns leases.id.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"start on"},"rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent cents"},"people":{"description":"people"},"end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"end on"},{"type":"null"}]},"deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deposit cents"},{"type":"null"}]},"pets_allowed":{"anyOf":[{"type":"boolean","description":"pets allowed"},{"type":"null"}]},"pet_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pet deposit cents"},{"type":"null"}]},"pet_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pet rent cents"},{"type":"null"}]},"rent_due_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent due day"},{"type":"null"}]},"is_first_month_prorated":{"anyOf":[{"type":"boolean","description":"is first month prorated"},{"type":"null"}]},"notice_period_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"notice period days"},{"type":"null"}]},"rolls_to_month_to_month":{"anyOf":[{"type":"boolean","description":"rolls to month to month"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"copy_pet_rent_from_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"copy pet rent from lease id"},{"type":"null"}]}},"required":["unit_id","start_on","rent_cents","people"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/home_purchase_contracts/create":{"post":{"operationId":"create_home_purchase_contract","summary":"Create home purchase contract","description":"Writes a draft home purchase contract for a park-owned home on the buyer's lot lease. Rent-to-own takes the equity payment, option fee (default 0) and purchase-by date (default the end of the term); seller financing takes the down payment (default 0), rate and first payment date, and finances the rest of the price. Nothing is billed until activation. Returns the contract id.\n\nReturns { result }.\n\nNeeds one of: receivables.write.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"park_home_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"park home id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"buyer_contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"buyer contact id"},"kind":{"type":"string","enum":["rent_to_own","seller_financed"],"description":"kind"},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"price cents"},"contract_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"contract on"},"start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"start on"},"term_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"term months"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"equity_payment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"equity payment cents"},{"type":"null"}]},"option_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"option fee cents"},{"type":"null"}]},"purchase_by":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"purchase by"},{"type":"null"}]},"down_payment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"down payment cents"},{"type":"null"}]},"annual_rate":{"anyOf":[{"type":"number","description":"annual rate"},{"type":"null"}]},"first_payment_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"first payment on"},{"type":"null"}]}},"required":["park_home_id","lease_id","buyer_contact_id","kind","price_cents","contract_on","start_on","term_months"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/guest_passes/create_homeowner":{"post":{"operationId":"create_homeowner_guest_pass","summary":"Create homeowner guest pass","description":"An owner on the homeowner account, or staff with residents.write, issues a guest pass for the home: one visit (a day by default), recurring (30 days by default) or permanent. Returns the access code once; only its hash is stored.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: residents.write.","tags":["Guest passes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"homeowner_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"guest_name":{"type":"string","maxLength":100000,"description":"guest name"},"pass_type":{"anyOf":[{"type":"string","enum":["one_time","recurring","permanent","vendor","delivery"],"description":"pass type"},{"type":"null"}]},"valid_from":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"valid from"},{"type":"null"}]},"valid_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"valid until"},{"type":"null"}]},"vehicle_plate":{"anyOf":[{"type":"string","maxLength":100000,"description":"vehicle plate"},{"type":"null"}]},"guest_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"guest phone"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"max_uses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max uses"},{"type":"null"}]}},"required":["homeowner_account_id","guest_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/inspections/create":{"post":{"operationId":"create_inspection","summary":"Create inspection","description":"Schedule an inspection and copy the checklist from the template (default template for the type when not given). A move-out inspection is compared to the lease's completed move-in inspection automatically. Requires maintenance.write or compliance.write and property access. The lease and the compared inspection must be at the property (the lease on the unit when one is given), and the inspector must be active staff. Returns inspections.id.\n\nReturns { result }.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Inspections"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspection_type":{"type":"string","enum":["move_in","move_out","annual","quarterly","drive_by","safety","hud","insurance","custom"],"description":"inspection type"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"inspection_template_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection template id"},{"type":"null"}]},"scheduled_start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled start at"},{"type":"null"}]},"scheduled_end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled end at"},{"type":"null"}]},"inspector_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspector user id"},{"type":"null"}]},"inspector_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspector vendor id"},{"type":"null"}]},"compared_to_inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"compared to inspection id"},{"type":"null"}]}},"required":["inspection_type","property_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/investment_entities/create":{"post":{"operationId":"create_investment_entity","summary":"Create investment entity","description":"Creates an investment entity with default share classes \"Class A\" (limited_partner) and \"GP\" (general_partner), and its own books: an investment_fund accounting entity (move properties into it with assign_property_accounting_entity). Without owner_id it also creates the company contact and the owners row that represents the entity in property ownership and owner accounting. Requires investments.write.\n\nReturns { result }.\n\nNeeds one of: investments.write.","tags":["Investment entities"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"entity_type":{"type":"string","enum":["fund","syndication","llc","limited_partnership","joint_venture","tenancy_in_common","reit","other"],"description":"entity type"},"legal_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"legal name"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"sponsor_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"sponsor contact id"},{"type":"null"}]},"formation_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"formation region"},{"type":"null"}]},"formed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"formed on"},{"type":"null"}]}},"required":["name","entity_type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investors/create":{"post":{"operationId":"create_investor","summary":"Create investor","description":"Adds an investor (status prospect) with a new contact: a company contact when company_name is given (trusts, entities, family offices), else a person; optional primary email and phone (normalized, SMS off). For a person who is already a contact, insert into investors directly. Requires investments.write (not contacts.write, so the accountant role can onboard investors).\n\nReturns { result }.\n\nNeeds one of: investments.write.","tags":["Investors"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investor_kind":{"type":"string","enum":["individual","joint","trust","ira","entity","family_office","other"],"description":"investor kind"},"first_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"first name"},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"last name"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"company name"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":100000,"description":"email"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"source"},{"type":"null"}]},"target_investment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"target investment cents"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]}},"required":["investor_kind"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/loan_reserve_draws/create":{"post":{"operationId":"create_loan_reserve_draw","summary":"Create loan reserve draw","description":"Starts a draft replacement reserve draw request on a loan with the next draw number. Returns the draw id.\n\nReturns { result }.\n\nNeeds one of: owners.write, payables.read.","tags":["Loan reserve draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"loan_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"loan id"},"period_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start on"},{"type":"null"}]},"period_end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["loan_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write","payables.read"]}},"/v1/maintenance_intake_photos/create":{"post":{"operationId":"create_maintenance_intake_photo","summary":"Create maintenance intake photo","description":"Resident (a tenant on the current lease): reserves a photo for a new maintenance request before it is sent. Returns {id, bucket, path, content_type}; upload the downscaled JPEG to that path (storage policies allow only the uploader, while unattached). At most 40 a day per resident.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Maintenance intake photos"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/mitchell_lama_programs/create":{"post":{"operationId":"create_mitchell_lama_program","summary":"Create mitchell lama program","description":"Creates a housing program for a Mitchell-Lama development (state for HCR, local for HPD) and its Mitchell-Lama terms. Returns the mitchell_lama_programs id.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Mitchell lama programs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"name":{"type":"string","maxLength":100000,"description":"name"},"supervising_agency":{"type":"string","enum":["hpd","hcr"],"description":"supervising agency"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"agency_development_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency development number"},{"type":"null"}]},"income_limit_rent_multiple":{"anyOf":[{"type":"number","description":"income limit rent multiple"},{"type":"null"}]},"agency_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"agency contact id"},{"type":"null"}]}},"required":["property_id","name","supervising_agency","starts_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/create_ocaf_rent_schedule":{"post":{"operationId":"create_ocaf_rent_schedule","summary":"Create OCAF rent schedule","description":"Previews an annual OCAF rent adjustment for a project-based HAP contract as a draft rent schedule: each unit type (bedrooms and current contract rent on the anniversary) gets current rent x (1 + OCAF percent), rounded to the whole dollar. The state defaults to the property's. Changes no rents until approve_hap_rent_schedule. Returns the schedule id.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hap_contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},"ocaf_pct":{"type":"number","description":"ocaf pct"},"ocaf_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"ocaf year"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"ocaf_state":{"anyOf":[{"type":"string","maxLength":100000,"description":"ocaf state"},{"type":"null"}]}},"required":["hap_contract_id","ocaf_pct","ocaf_year","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/opening_balance_batches/create":{"post":{"operationId":"create_opening_balance_batch","summary":"Create opening balance batch","description":"Starts a draft opening balance batch as of as_of_on with its lines (set_opening_balance_lines). A null memo reads \"Opening balances as of <date>\". Requires imports.run and gl.write. Returns the batch id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.write, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"as_of_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of on"},"lines":{"anyOf":[{"description":"lines"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"data_import_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"data import id"},{"type":"null"}]}},"required":["as_of_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","imports.run"]}},"/v1/properties/create":{"post":{"operationId":"create_property","summary":"Create property","description":"Creates a property with its settings row and, in one transaction: units in bulk (units, same format as import_units; a single-family/condo/townhome/mobile home with no units gets one unit \"Main\"), 100% ownership by owner_id, the primary property manager assignment, and portfolio membership.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Properties"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"property_type":{"type":"string","enum":["single_family","multi_family","apartment_complex","condo","townhome","duplex","mobile_home","manufactured_home_community","student","senior","mixed_use","other","office","retail","shopping_center","industrial","flex","medical_office","self_storage","commercial_other","association"],"description":"property type"},"address_line1":{"type":"string","maxLength":100000,"description":"address line1"},"city":{"type":"string","maxLength":100000,"description":"city"},"region":{"type":"string","maxLength":100000,"description":"region"},"postal_code":{"type":"string","maxLength":100000,"description":"postal code"},"address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"address line2"},{"type":"null"}]},"country_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"country code"},{"type":"null"}]},"code":{"anyOf":[{"type":"string","maxLength":100000,"description":"code"},{"type":"null"}]},"year_built":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"year built"},{"type":"null"}]},"units":{"anyOf":[{"description":"units"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"manager_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"manager user id"},{"type":"null"}]},"management_started_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"management started on"},{"type":"null"}]},"portfolio_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"portfolio id"},{"type":"null"}]}},"required":["name","property_type","address_line1","city","region","postal_code"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/renewal_offers/create":{"post":{"operationId":"create_renewal_offer","summary":"Create renewal offer","description":"Creates (and by default sends) a renewal offer with term options, e.g. [{\"term_months\":12,\"rent_cents\":185000,\"concession_cents\":50000,\"is_recommended\":true},{\"lease_type\":\"month_to_month\",\"rent_cents\":195000}]. Sending checks every option's rent increase against the jurisdiction rules (notice days from today, rent control cap, increases per year). Default start = day after the current term ends (or the month after the notice period for month-to-month). Requires leasing.write.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Renewal offers"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"terms":{"description":"terms"},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"message":{"anyOf":[{"type":"string","maxLength":100000,"description":"message"},{"type":"null"}]},"proposed_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"proposed start on"},{"type":"null"}]},"send":{"anyOf":[{"type":"boolean","description":"send"},{"type":"null"}]},"is_ai_drafted":{"anyOf":[{"type":"boolean","description":"is ai drafted"},{"type":"null"}]},"pricing_recommendation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"pricing recommendation id"},{"type":"null"}]}},"required":["lease_id","terms"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/utility_billing_runs/create":{"post":{"operationId":"create_utility_billing_run","summary":"Create utility billing run","description":"Starts a draft utility billing run for a policy and service period, linking the provider bills to recover (given ids, or by default the property's unbilled statements for that utility ending in the period). Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Utility billing runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"utility_billing_policy_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility billing policy id"},"period_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start on"},"period_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end on"},"utility_bill_received_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"utility bill received ids"},{"type":"null"}]},"charge_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"charge due on"},{"type":"null"}]}},"required":["utility_billing_policy_id","period_start_on","period_end_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/vendor_rfps/create":{"post":{"operationId":"create_vendor_rfp","summary":"Create vendor rfp","description":"Creates a vendor RFP on property_ids (at least one) and invites vendor_ids. open true opens it for bids at once (needs at least one vendor); otherwise it stays a draft. Returns the RFP id.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch.","tags":["Vendor rfps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"vendor_trade_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor trade id"},"scope_of_work":{"type":"string","maxLength":100000,"description":"scope of work"},"property_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},"vendor_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"vendor ids"},"bid_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bid due on"},{"type":"null"}]},"desired_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"desired start on"},{"type":"null"}]},"open":{"anyOf":[{"type":"boolean","description":"open"},{"type":"null"}]}},"required":["title","vendor_trade_id","scope_of_work","property_ids","vendor_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/work_orders/create_violation":{"post":{"operationId":"create_violation_work_order","summary":"Create violation work order","description":"Creates a repair work order for a building violation (class C = emergency, high severity = high priority, due the day after the correct-by date) through create_work_order, which checks the maintenance permission, links it on the violation and moves an open violation to repair in progress. Returns the existing work order when one is linked. Requires compliance.write at the property.\n\nReturns { result }.\n\nNeeds one of: compliance.write.","tags":["Work orders"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation id"}},"required":["violation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/actions/create_violation_work_orders":{"post":{"operationId":"create_violation_work_orders","summary":"Create violation work orders","description":"Creates repair work orders for up to 200 building violations. combine false: one work order per violation through create_violation_work_order. combine true: one work order per property covering every chosen violation there that has none yet (the unit is set when all share one unit, the description lists each violation, priority follows the worst severity, due the day after the earliest correct-by date), linked on each violation, which moves from open to repair in progress. Returns each violation linked by this call with its work order; a violation that already had one is left as it is. Requires compliance.write at each property; create_work_order checks the maintenance permission.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: compliance.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"violation ids"},"combine":{"anyOf":[{"type":"boolean","description":"combine"},{"type":"null"}]}},"required":["violation_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/amenity_reservations/{id}/decide":{"post":{"operationId":"decide_amenity_reservation","summary":"Decide an amenity reservation","description":"Approves (posting fee and deposit charges) or denies a requested amenity booking.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: associations.write, leasing.write.","tags":["Amenity reservations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The amenity reservation's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"approve":{"type":"boolean","description":"approve"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["approve"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write","leasing.write"]}},"/v1/architectural_requests/{id}/decide":{"post":{"operationId":"decide_architectural_request","summary":"Decide an architectural request","description":"Committee / manager decision or status change on an architectural request, dated decided_at (default now), without a board vote (requests routed to the board are decided by cast_board_vote). Staff with associations.write, or a member of the association's architectural committee that may decide (can_decide, 00145). A decision or a request for more information replaces the note (and the conditions) with its own; the timeline keeps the earlier ones. The owners hear of it (architectural_request_decided).\n\nReturns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Architectural requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The architectural request's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","submitted","under_review","more_info_requested","approved","approved_with_conditions","denied","withdrawn","completed","expired"],"description":"status"},"decision_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"decision notes"},{"type":"null"}]},"conditions":{"anyOf":[{"type":"string","maxLength":100000,"description":"conditions"},{"type":"null"}]},"decided_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"decided at"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/violation_appeals/decide":{"post":{"operationId":"decide_violation_appeal","summary":"Decide violation appeal","description":"Decides a waiting appeal with a reason: upheld (fines stand), reduced (reduce_by_cents credited on the fines in scope, newest first, less than all of them) or waived (every unwaived fine in scope credited). Staff with associations.assess and the association decide, or record the board's decision when the association's rule is board; a current director decides when the rule is board, never on their own home. Waiving an appeal of the whole violation dismisses the violation, so no more notices or fines go out. The owners hear the outcome (violation_appeal_decided).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: associations.assess.","tags":["Violation appeals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appeal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"appeal id"},"outcome":{"type":"string","maxLength":100000,"description":"outcome"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"reduce_by_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"reduce by cents"},{"type":"null"}]}},"required":["appeal_id","outcome","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/work_orders/decide_scope_change":{"post":{"operationId":"decide_work_order_scope_change","summary":"Decide work order scope change","description":"Approves or rejects a pending scope change; approving raises the work order's not_to_exceed_cents, needs a work approval limit that covers the amount (when the organization set limits) and someone other than the requester. On an emergency approval it records the follow-up review (by someone other than the approver) instead. Staff with maintenance.dispatch.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.dispatch.","tags":["Work orders"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scope_change_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"scope change id"},"approve":{"type":"boolean","description":"approve"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["scope_change_id","approve"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/home_purchase_contracts/default":{"post":{"operationId":"default_home_purchase_contract","summary":"Default home purchase contract","description":"Ends an active contract the buyer did not keep: the equity recurring charge and the unbilled schedule stop, the home goes back to the park with no owner. Charges already billed stay owed; any refund goes through the existing credit and refund tools.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["contract_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/compliance_items/delete":{"post":{"operationId":"delete_compliance_item","summary":"Delete compliance item","description":"Deletes a one-off compliance item added by mistake (not one from a requirement or certification, not part of a renewal chain, not used by another record or an audit finding).\n\nReturns { ok: true }.\n\nNeeds one of: compliance.write.","tags":["Compliance items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"}},"required":["item_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/leases/{id}/delete_draft":{"post":{"operationId":"delete_draft_lease","summary":"Delete a draft lease","description":"Deletes a draft lease in one transaction: its recurring charges (never billed on a draft), internal notes, people and the lease. Refused for any other status, for a draft with posted charges and for a draft with a signing request (00157; its envelope keeps the lease for the record). Requires leasing.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/delete_journal_draft":{"post":{"operationId":"delete_journal_draft","summary":"Delete journal draft","description":"Deletes a journal entry draft that has not posted. Posted entries are reversed, never deleted.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: gl.audit, gl.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draft id"}},"required":["draft_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.audit","gl.write"]}},"/v1/opening_balance_batches/delete":{"post":{"operationId":"delete_opening_balance_batch","summary":"Delete opening balance batch","description":"Deletes a draft opening balance batch and its lines. Nothing was posted, so no journal entry changes. A posted batch is voided instead.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: gl.write, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","imports.run"]}},"/v1/owner_report_schedules/delete":{"post":{"operationId":"delete_owner_report_schedule","summary":"Delete owner report schedule","description":"Removes a scheduled owner report.\n\nReturns { ok: true }.\n\nNeeds one of: owners.write.","tags":["Owner report schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"}},"required":["schedule_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/packages/{id}/delete":{"post":{"operationId":"delete_package","summary":"Delete a package","description":"Front desk: deletes a waiting package that was logged by mistake (a duplicate, or never arrived). A package that was handed over, returned or marked lost stays as the record.\n\nReturns { ok: true }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/property_valuations/delete":{"post":{"operationId":"delete_property_valuation","summary":"Delete property valuation","description":"Removes a property value entered by mistake: staff with properties.write on the property, or the owner who entered it while they still own the property. The audit log keeps the row.\n\nReturns { ok: true }.\n\nNeeds one of: properties.write.","tags":["Property valuations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"valuation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"valuation id"}},"required":["valuation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/report_schedules/delete":{"post":{"operationId":"delete_report_schedule","summary":"Delete report schedule","description":"Stops the email schedule of one of your own saved reports.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Report schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"saved_report_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"saved report id"}},"required":["saved_report_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/deposits/disposition_draft":{"get":{"operationId":"deposit_disposition_draft","summary":"Deposit disposition draft","description":"The lease's open deposit disposition draft with its deductions, the deposit held, the open balance (negative = a credit) and its unpaid charges, and the statutory return deadline (the open \"Security deposit return\" compliance item). Null when there is no open draft.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Deposits"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposits/interest_defaults":{"get":{"operationId":"deposit_interest_defaults","summary":"Deposit interest defaults","description":"The built-in deposit interest rules by state, for the settings screen.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Deposits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/deposits/interest_quote":{"get":{"operationId":"deposit_interest_quote","summary":"Deposit interest quote","description":"The deposit interest owed on a lease up to a date (today in the org when null) and how it was worked out. The disposition dialog shows it.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Deposits"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/deposits/{id}/slip":{"get":{"operationId":"deposit_slip","summary":"Deposit slip","description":"The printable deposit slip of one deposit (staff with banking.read or receivables.read who can access every property in it): header (organization, bank and account last 4, date, method, slip and confirmation numbers, status), totals (currency_cents for cash, checks_cents, check_count, line_count, total_cents) and lines [{line_number, method, check_number, payer_name, drawer_bank_name, routing_number, amount_cents, receipt_ids, owner_contribution_ids}] from deposit_slip_lines (a split check is one line). A voided deposit shows the lines it had. Rendered by the web print route (apps/web /banking/deposits/[id]/slip, not built yet).\n\nReturns { result }.\n\nNeeds one of: banking.read, receivables.read.","tags":["Deposits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The deposit's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","receivables.read"]}},"/v1/reports/dhcr_registration_rows":{"get":{"operationId":"dhcr_registration_rows","summary":"DHCR registration rows","description":"Staff, under their own row access: one row per rent-stabilized or rent-controlled unit as of as_of (April 1 for the DHCR annual registration): legal rent on that date, the lease in force, its tenants, preferential rent, any SCRIE/DRIE benefit, and problems (no_registration_number, no_legal_rent, no_tenant_names, no_lease_end, rent_above_legal, preferential_not_below_legal).\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"as_of","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"description":"as of"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_distributions/discard_run":{"post":{"operationId":"discard_owner_distribution_run","summary":"Discard owner distribution run","description":"Discards a draft owner distribution run before anything posts. Voids every pending line with reason and marks the run voided, so its properties can go in a new run (run_owner_distributions skips properties in another draft). Requires owners.distribute and access to every property in the run. Returns the number of lines voided.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.distribute.","tags":["Owner distributions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["run_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute"]}},"/v1/actions/dismiss_ai_suggestion":{"post":{"operationId":"dismiss_ai_suggestion","summary":"Dismiss AI suggestion","description":"Reject a pending AI suggestion. Requires the type's permission.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"suggestion_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"suggestion id"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["suggestion_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/dismiss_utility_usage_spike":{"post":{"operationId":"dismiss_utility_usage_spike","summary":"Dismiss utility usage spike","description":"Clears a usage spike from utility_usage_spikes with a note. source is bill or meter_reading; dismissing again replaces the note. Returns the utility_usage_spike_reviews id.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":100000,"description":"source"},"source_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"source id"},"note":{"type":"string","maxLength":100000,"description":"note"}},"required":["source","source_id","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/fixed_assets/{id}/dispose":{"post":{"operationId":"dispose_fixed_asset","summary":"Dispose a fixed asset","description":"Accountant: disposes of an asset. Posts Dr accumulated depreciation (posted total) + Dr proceeds account / Cr asset cost, with the difference to GAIN_LOSS_ON_DISPOSAL (credit = gain). Remaining schedule rows are skipped. Depreciation must be posted through the month before disposal. Returns the disposal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.write.","tags":["Fixed assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The fixed asset's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"disposed_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"disposed on"},"disposal_type":{"type":"string","enum":["sale","retirement","casualty","transfer"],"description":"disposal type"},"proceeds_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"proceeds cents"},{"type":"null"}]},"proceeds_account":{"anyOf":[{"type":"string","maxLength":100000,"description":"proceeds account"},{"type":"null"}]}},"required":["disposed_on","disposal_type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/deposits/dispose_security":{"post":{"operationId":"dispose_security_deposit","summary":"Dispose security deposit","description":"Without a rule null means no interest. The period paid is recorded in deposit_interest_payments. Returns the disposition id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Deposits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"deductions":{"anyOf":[{"description":"deductions"},{"type":"null"}]},"refund_method":{"anyOf":[{"type":"string","enum":["check","ach","card_refund","none","other"],"description":"refund method"},{"type":"null"}]},"refund_bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"refund bank account id"},{"type":"null"}]},"disposed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"disposed on"},{"type":"null"}]},"forwarding_address":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding address"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},{"type":"null"}]},"interest_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"interest cents"},{"type":"null"}]},"refund_payment_method_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"refund payment method id"},{"type":"null"}]},"refund_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"refund contact id"},{"type":"null"}]}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/mail_batches/draft_collections":{"post":{"operationId":"draft_collections_mail_batch","summary":"Draft collections mail batch","description":"Drafts a mail batch of the sent arrears letters (collections_letters with a PDF; one run or all) not yet mailed, addressed to the tenants at their unit. Nothing is mailed until a person approves the batch.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Mail batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"},{"type":"null"}]},"mail_class":{"anyOf":[{"type":"string","maxLength":100000,"description":"mail class"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/draft_collections_outreach":{"post":{"operationId":"draft_collections_outreach","summary":"Draft collections outreach","description":"Drafts a batch of collections calls (voice) or a 3-step text sequence (sms) for the leases of the latest collections run that still owe at least min_balance_cents (every current lease when there is no run), one item per lease for its primary responsible tenant. Items that cannot be reached are listed as skipped with the reason: do not contact, no number, no consent to automated calls, not opted in to texts, suppressed, an open eviction case or an active payment plan. Nothing goes out until a person approves the batch.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: communications.write, receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["voice","sms"],"description":"channel"},"min_balance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min balance cents"},{"type":"null"}]}},"required":["channel"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write","receivables.write"]}},"/v1/actions/draft_entity_k1s":{"post":{"operationId":"draft_entity_k1s","summary":"Draft entity K1S","description":"Builds or refreshes the draft K-1 of every investor of an entity for a tax year from the books of the entity: share percents = the investor's share of capital contributed by year end; beginning capital = contributions before the year plus allocated income before the year less distributions paid before the year; contributed, allocated income (also box 2, net rental real estate income) and distributions (box 19 and withdrawals) in the year. Issued K-1s are left alone. Requires investments.write. Returns the number of drafts written.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: investments.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"}},"required":["entity_id","tax_year"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/leases/{id}/draft_terms_amendment":{"post":{"operationId":"draft_lease_terms_amendment","summary":"Draft lease terms amendment","description":"Records a draft amendment to a commercial lease that changes recovery and rent terms. changes is an array of lease_amendment_term_changes objects (change_kind plus its fields; effective_on defaults to effective_on). A CAM change dated in a year whose reconciliation is approved or posted is refused unless confirm_reconciled. Executing the amendment (execute_lease_amendment) applies the changes.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"title":{"type":"string","maxLength":100000,"description":"title"},"changes":{"description":"changes"},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"confirm_reconciled":{"anyOf":[{"type":"boolean","description":"confirm reconciled"},{"type":"null"}]}},"required":["effective_on","title","changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/vendors/draft_quote_calls":{"post":{"operationId":"draft_vendor_quote_calls","summary":"Draft vendor quote calls","description":"Drafts scripted calls asking the vendors invited to an open RFP (all that have not bid or declined, or the given invitations) for a quote by the bid due date. Nothing is called until a person approves the batch. Answers are logged on the item and the vendor's call log; the invitation itself changes only through the RFP screens.\n\nReturns { result }.\n\nNeeds one of: communications.write, maintenance.dispatch.","tags":["Vendors"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_rfp_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor rfp id"},"invitation_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"invitation ids"},{"type":"null"}]}},"required":["vendor_rfp_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write","maintenance.dispatch"]}},"/v1/compliance_items/end_waiver":{"post":{"operationId":"end_compliance_item_waiver","summary":"End compliance item waiver","description":"Ends a compliance item's waiver now, as a lapsed waiver ends in refresh_compliance_statuses, and recomputes its status.\n\nReturns { ok: true }.\n\nNeeds one of: compliance.write.","tags":["Compliance items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"}},"required":["item_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/esign_envelopes/detail":{"get":{"operationId":"esign_envelope_detail","summary":"Esign envelope detail","description":"Returns { result }.\n\nNeeds one of: org.admin.","tags":["Esign envelopes"],"parameters":[{"name":"envelope_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"envelope id"},"description":"envelope id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/execute_hap_renewal":{"post":{"operationId":"execute_hap_renewal","summary":"Execute HAP renewal","description":"Executes an approved renewal. Creates the new HAP contract (same program, authority and type, renewed_from_hap_contract_id = the expiring contract), copies each unit with its new contract rent from rents [{bedrooms, contract_rent_cents}] or, for a bedroom size not listed, its current rent, and records the rents as an approved renewal rent schedule. The expiring contract is marked renewed once it has ended. Moves no money. Returns the new contract id.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"renewal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renewal id"},"contract_number":{"type":"string","maxLength":100000,"description":"contract number"},"starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},"ends_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},"rents":{"anyOf":[{"description":"rents"},{"type":"null"}]}},"required":["renewal_id","contract_number","starts_on","ends_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/lease_amendments/{id}/execute":{"post":{"operationId":"execute_lease_amendment","summary":"Execute a lease amendment","description":"Applies a signed lease amendment: rent_change → new rent schedule period; term_extension / term_shortening → new end_on; add_tenant / remove_tenant → lease_tenants; remove_tenant also stops the removed tenant's autopay and scheduled payments on the lease from the removal date. Any amendment also applies its recovery and rent term changes (lease_amendment_term_changes, 00130) as new dated rows. Other types are recorded only. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Lease amendments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease amendment's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"signed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"signed at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/lease_options/{id}/exercise":{"post":{"operationId":"exercise_lease_option","summary":"Exercise a lease option","description":"Records the tenant exercising an option (before its notice deadline) and closes its critical dates. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Lease options"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease option's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"exercised_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"exercised on"},{"type":"null"}]},"resulting_lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"resulting lease id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/exercise_rent_to_own":{"post":{"operationId":"exercise_rent_to_own","summary":"Exercise rent to own","description":"The buyer exercises a rent-to-own option. Refused while contract charges are open. Equity is the paid amount of the equity and option fee charges; the equity recurring charge ends. cash: bills the price left after equity as a HOME_DOWN_PAYMENT charge (complete the contract once paid) and returns this contract. financing: marks this contract converted and creates and activates a seller-financed contract for the price left (less an optional down payment) at the given rate, term and first payment date; returns the new contract.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"method":{"type":"string","maxLength":100000,"description":"method"},"exercised_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"exercised on"},{"type":"null"}]},"down_payment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"down payment cents"},{"type":"null"}]},"annual_rate":{"anyOf":[{"type":"number","description":"annual rate"},{"type":"null"}]},"term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"term months"},{"type":"null"}]},"first_payment_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"first payment on"},{"type":"null"}]}},"required":["contract_id","method"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/association_elections/extend":{"post":{"operationId":"extend_association_election","summary":"Extend association election","description":"Sets the voting window of a draft or open election. The close must be in the future; once a home has voted, the opening stays and the close can only move later.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Association elections"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"election_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"election id"},"opens_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"opens at"},"closes_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"closes at"}},"required":["election_id","opens_at","closes_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/listing_holds/extend":{"post":{"operationId":"extend_listing_hold","summary":"Extend listing hold","description":"Moves an open hold's expiry to the end of until_on in the organization's time zone. Staff with leasing.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Listing holds"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hold_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hold id"},"until_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"until on"}},"required":["hold_id","until_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/documents/file_import_lease":{"post":{"operationId":"file_import_lease_document","summary":"File import lease document","description":"Files a migration lease PDF on its imported lease: the web copies the file into the documents bucket as the person (<org>/<document id>/<file name>), then this registers it (register_document: category lease, source import, linked to the lease) and records it on the file, so it is filed once. Needs imports.run, access to every property and documents.write.\n\nReturns { result }.\n\nNeeds one of: documents.write.","tags":["Documents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"file id"},"storage_path":{"type":"string","maxLength":100000,"description":"storage path"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"}},"required":["file_id","storage_path","lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/violation_appeals/file":{"post":{"operationId":"file_violation_appeal","summary":"File violation appeal","description":"An owner of the account the violation was opened against appeals it (or one of its fines, violation_fine_id) with a statement and files they uploaded. One waiting appeal per violation; not on a closed or dismissed violation. After a decision, a new appeal needs new files or 14 days since the decision, and pauses fines only once staff accept it (accept_violation_appeal). Tells the association's managers and, when the association's rule is board, its directors (violation_appeal_filed). Returns the appeal id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Violation appeals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation id"},"statement":{"type":"string","maxLength":100000,"description":"statement"},"violation_fine_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation fine id"},{"type":"null"}]},"document_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"document ids"},{"type":"null"}]}},"required":["violation_id","statement"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_statements/finalize":{"post":{"operationId":"finalize_owner_statement","summary":"Finalize owner statement","description":"Freeze a draft statement (owners can see it from now on). Requires owners.write and access to the owner.\n\nReturns { ok: true }.\n\nNeeds one of: owners.write.","tags":["Owner statements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statement_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"statement id"}},"required":["statement_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/checks/find_duplicate":{"get":{"operationId":"find_duplicate_checks","summary":"Find duplicate checks","description":"Recorded checks the caller can see that match a check about to be entered (same check number and bank account, or same lease when the bank account is unknown), one row per check (its first receipt, the face amount), for the \"possible duplicate\" warning on the Receive payment and Scan check screens. record_offline_payment enforces the same rule.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Checks"],"parameters":[{"name":"check_number","in":"query","required":true,"schema":{"type":"string","maxLength":100000,"description":"check number"},"description":"check number"},{"name":"routing_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"routing number"},{"type":"null"}]}},{"name":"account_last4","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"account last4"},{"type":"null"}]}},{"name":"lease_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]}},{"name":"account_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"account number"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/fixed_assets/{id}/tax_depreciation":{"get":{"operationId":"fixed_asset_tax_depreciation","summary":"Fixed asset tax depreciation","description":"Tax depreciation of a fixed asset per calendar year from its tax book: Section 179 and bonus in the first year, then the method on the basis left. The first year takes the convention's fraction (half_year 1/2, mid_quarter by the in-service quarter, mid_month and full_month by the in-service month); each later year takes the larger of declining balance and straight line over the life left, and the last year takes what is left. Years after the disposal year are left out; the disposal year shows in full. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Fixed assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The fixed asset's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/capital_project_draws/fund":{"post":{"operationId":"fund_capital_project_draw","summary":"Fund capital project draw","description":"Records the funder's money arriving for an approved draw, in the project property's fund: owner Dr bank / Cr OWNER_CONTRIBUTIONS; lender Dr bank / Cr CONSTRUCTION_LOAN_PAYABLE; reserve Dr bank / Cr reserve bank. Both bank accounts must be ones the property may use on the funding date. Reserve funding takes the disbursement locks and refuses a draw that would overdraw trust cash. Returns the journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: projects.approve.","tags":["Capital project draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"},"deposit_bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"deposit bank account id"},"funded_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"funded on"},{"type":"null"}]},"source_bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"source bank account id"},{"type":"null"}]}},"required":["draw_id","deposit_bank_account_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve"]}},"/v1/tax_forms_1099/furnish":{"post":{"operationId":"furnish_tax_forms_1099","summary":"Furnish tax forms 1099","description":"Delivers the recipient copies of final or filed 1099s. Sets furnished_at, so the recipient sees the form in their portal (tax_forms_1099_select), and emails them a link to their documents (tax_form_1099_ready; the PDF is never attached and shows the TIN as its last four digits). Sending again sends the email again. Returns forms delivered.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Tax forms 1099"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"form_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"form ids"}},"required":["form_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/gate_guest_list":{"get":{"operationId":"gate_guest_list","summary":"Gate guest list","description":"The gate list for a property and day (property local; today by default): active guest passes valid that day with uses left, with the home and host.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: residents.read.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"},{"name":"on","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.read"]}},"/v1/lease_critical_dates/generate":{"post":{"operationId":"generate_lease_critical_dates","summary":"Generate lease critical dates","description":"Creates missing critical dates for a lease from its terms: expiration, rent commencement, letter-of-credit / bond expiries, certificate-of-insurance expiries and TI allowance expiry (option deadlines are created by trigger). Returns rows added. Requires leasing.write.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Lease critical dates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/generate_ops_agenda":{"post":{"operationId":"generate_ops_agenda","summary":"Generate ops agenda","description":"Drafts (or redrafts) a call's agenda: open action items from the previous call first among equals, then what needs attention at the meeting's properties grouped into one topic per kind and property, critical issues first, with the change since the last call when the same topic was on it, and a closing topic listing what was completed since. Sensitive records follow the caller's permissions because it runs as the caller. Returns the number of topics.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"meeting_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"meeting id"}},"required":["meeting_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/owners/generate_1099_forms":{"post":{"operationId":"generate_owner_1099_forms","summary":"Generate owner 1099 forms","description":"Create or refresh draft 1099-MISC forms (tax_forms_1099, payer = the management company accounting entity) from owner_tax_summaries for owners whose year total reaches the threshold. Drafts are recomputed or voided; final/filed forms are left alone (correct_tax_form_1099). Run compute_owner_tax_summaries first. Returns forms written.\n\nReturns { result }.\n\nNeeds one of: owners.write.","tags":["Owners"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"}},"required":["tax_year"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/owner_statements/generate":{"post":{"operationId":"generate_owner_statement","summary":"Generate owner statement","description":"Build or rebuild a draft owner statement. Requires owners.write and access to the owner.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.write.","tags":["Owner statements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"owner_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"period_start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start"},"period_end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end"}},"required":["owner_id","period_start","period_end"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/rent_reporting_batches/generate":{"post":{"operationId":"generate_rent_reporting_batch","summary":"Generate rent reporting batch","description":"Rent reporting staff (receivables.rent_reporting, organization-wide): builds the furnishing batch for an ended month, or returns the month's existing batch. Returns the batch id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Rent reporting batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["esusu","experian_rentbureau","transunion_resident_credit","equifax","boom","rent_reporters","other"],"description":"provider"},"month_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month on"}},"required":["provider","month_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/generate_tracs_mat10":{"post":{"operationId":"generate_tracs_mat10","summary":"Generate TRACS mat10","description":"Builds a TRACS 2.0.3.A tenant file (MAT Guide Chapter 6 layouts) for a program: a TENHR header, then per completed certification that no unrejected file holds a MAT10 Section 1 header, Section 2 basic record, a Section 3 record per household member, a Section 4 record per counted income and a Section 5 record per counted asset; a MAT40 move-out per household TRACS knows whose lease records a physical move-out (not a unit transfer); and a TENND trailer. Record numbers run from 00001 (TENHR) through the TENND. Gross rent changes are not sent (they need a MAT70). software fills the OA software vendor field. Records it as a program_submissions row (status draft = generated) with the file text and links the certifications (record_type MAT10 or MAT40). Requires affordable.write on the program's property.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"software":{"anyOf":[{"type":"string","maxLength":100000,"description":"software"},{"type":"null"}]}},"required":["housing_program_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/generate_tracs_mat30":{"post":{"operationId":"generate_tracs_mat30","summary":"Generate TRACS mat30","description":"Builds a TRACS 2.0.3.A voucher file (MAT Guide Chapter 7 layouts) for one HAP contract and month: VCHHR header, MAT30 Section 1 header, Section 2 summary (HUD-52670 totals), a Section 3 line per contract unit (the household whose latest certification billable on this voucher under the Appendix B timing rules is in effect on the voucher date, or the unit as vacant or market), Section 4 adjustment lines (prior billing reversed and new billing at the Appendix B proration, through the move-out for a household that left; a full unit transfer bills as IR-I) for households with certifications effective before the voucher date that no earlier voucher billed, looking back twelve months, and a VCHND trailer. Records it as a program_submissions row (status draft = generated) with requested_amount_cents (the file's whole-dollar total) and links the certifications it bills (record_type MAT30); a generated (not yet sent) voucher for the same month is replaced. Requires affordable.write on the program's property.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hap_contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},"month":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month"},"software":{"anyOf":[{"type":"string","maxLength":100000,"description":"software"},{"type":"null"}]}},"required":["hap_contract_id","month"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/vendors/generate_1099_forms":{"post":{"operationId":"generate_vendor_1099_forms","summary":"Generate vendor 1099 forms","description":"Create or refresh draft 1099-NEC/MISC forms for a tax year, one per vendor and payer entity meeting that year's threshold (vendor_1099_payer_totals). Drafts are recomputed; final/filed forms are left alone (file a correction instead); drafts that no longer qualify are voided. Returns forms written.\n\nReturns { result }.\n\nNeeds one of: payables.write.","tags":["Vendors"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"}},"required":["tax_year"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/reports/get_adverse_action_notice":{"get":{"operationId":"get_adverse_action_notice","summary":"Get adverse action notice","description":"The adverse action notice for a denial or conditional approval, built per recipient (every adult: applicant, co-applicants, guarantors) from that person's own completed screenings only: recipients[] with notice_text and reasons (credit, eviction and criminal reasons only when the recipient's own screening supports them, others summarized as information about another adult; the written assessment behind a criminal_history reason only to the people it is about), the agencies that screened them (FCRA 615(a): name, address, phone, did not decide, free report within 60 days, dispute) when a cited reason came from a consumer report, their credit score disclosure (score, range, up to 4 key factors, date, source; the band when the agency gave no score) when a credit reason is cited, and the 615(b) paragraph when a reason came from a landlord, employer or other non-agency source. Top-level notice_text is application_applicant_id's notice, or the primary applicant's. Raises 22023 when an agency that screened a recipient has no disclosure row. Requires screening.run.\n\nReturns { result }.\n\nNeeds one of: screening.run.","tags":["Reports"],"parameters":[{"name":"decision_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"decision id"},"description":"decision id"},{"name":"application_applicant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"application applicant id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/packages/get_application":{"get":{"operationId":"get_application_package","summary":"Get application package","description":"The application package for staff review in one call: application, property, unit, listing, rent, lead, every person with contact, consents, income, employment, residences, documents and document checklist, pets, vehicles, fee and fee payments, decisions, status history, invitations, lease and completeness. Screening orders, the current risk assessment (with factors and the criteria version used) and the effective criteria are included only for staff with screening.run; document storage_path and ai_summary only for staff with documents.read (null otherwise). Requires leasing.read on the property.\n\nReturns { result }.\n\nNeeds one of: documents.read, leasing.read, leasing.write, screening.run.","tags":["Packages"],"parameters":[{"name":"application_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"application id"},"description":"application id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read","leasing.read","leasing.write","screening.run"]}},"/v1/documents/get_context":{"get":{"operationId":"get_document_context","summary":"Get document context","description":"Merge data for generating a document from a record, as JSON matching packages/documents contextSchemas[context_type] (every key present, null when unknown; money in cents, dates YYYY-MM-DD, instants ISO 8601). Security invoker: row-level security decides what the caller sees; the lease ledger is included only with receivables.read. 42501 a member without documents.read.\n\nReturns { result }.\n\nNeeds one of: documents.read.","tags":["Documents"],"parameters":[{"name":"context_type","in":"query","required":true,"schema":{"type":"string","enum":["lease","rental_application","service_request","work_order","inspection","bill","receipt","owner_statement","owner","vendor","contact","property"],"description":"context type"},"description":"context type"},{"name":"record_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"record id"},"description":"record id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.read"]}},"/v1/home_purchase_contracts/get":{"get":{"operationId":"get_home_purchase_contract","summary":"Get home purchase contract","description":"One contract with its home, buyer, derived balances, payoff quote for today (active financing), schedule, charges with what is paid, and history. Null when missing or not readable.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Home purchase contracts"],"parameters":[{"name":"contract_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"description":"contract id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/portfolios/get_assistant_thread":{"get":{"operationId":"get_portfolio_assistant_thread","summary":"Get portfolio assistant thread","description":"Portfolio assistant: the signed-in user's own thread with its latest messages (oldest first), including the SQL each query turn ran (sql_text). Another user's thread raises insufficient_privilege.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Portfolios"],"parameters":[{"name":"thread_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"thread id"},"description":"thread id"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/resale_requests/get_status":{"get":{"operationId":"get_resale_request_status","summary":"Get resale request status","description":"Anon, read only: the status page of a resale request by its bearer token: what was asked, the fee, the payment, the due date and when it was sent. Null for a wrong id or token.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Resale requests"],"parameters":[{"name":"request_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"},"description":"request id"},{"name":"access_token","in":"query","required":true,"schema":{"type":"string","maxLength":100000,"description":"access token"},"description":"access token"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/screening_criteria/get":{"get":{"operationId":"get_screening_criteria","summary":"Get screening criteria","description":"Effective screening criteria for a property (its override, else the org default) or, with no property, the org default. is_property_override says which. Requires leasing.read.\n\nReturns { result }.\n\nNeeds one of: leasing.read.","tags":["Screening criteria"],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/reports/get_trial_balance":{"get":{"operationId":"get_trial_balance","summary":"Get trial balance","description":"Trial balance for staff with gl.read (whole org needs org-wide access; otherwise one property fund).\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: gl.read.","tags":["Reports"],"parameters":[{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},{"name":"basis","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["both","accrual","cash"],"description":"basis"},{"type":"null"}]}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/actions/give_notice":{"post":{"operationId":"give_notice","summary":"Give notice","description":"Records a notice to vacate (received_on defaults to today in the property's time zone; a tenant's notice is always dated that day and moves out no earlier than the lease's notice period from it, 00164) (staff may pass effective_at, the time it was acknowledged, for backdated entry; tenants always use now) (by a financially responsible tenant from the portal, or by staff) or a landlord non-renewal / termination. reason is a coded move_out_reason (other needs reason_note). Computes the last day of responsibility (later of move-out, notice period and fixed-term end, unless staff override with lease_ends_on), sets leases.actual_end_on and status notice_given, schedules the move-out, closes open renewal offers and flags the unit as on notice. Returns the move_out_notices id.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"move_out_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move out on"},"notice_type":{"anyOf":[{"type":"string","enum":["tenant_notice_to_vacate","landlord_non_renewal","landlord_termination","mutual_termination","eviction"],"description":"notice type"},{"type":"null"}]},"received_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"received on"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","enum":["bought_home","job_relocation","moving_closer_to_family","school","military_orders","needs_more_space","needs_less_space","rent_too_high","financial_hardship","unhappy_with_unit","unhappy_with_management","unhappy_with_neighborhood","household_change","health","death","eviction","non_renewal_by_landlord","unit_transfer","other"],"description":"reason"},{"type":"null"}]},"delivery_method":{"anyOf":[{"type":"string","enum":["email","mail","portal","hand_delivered","posted"],"description":"delivery method"},{"type":"null"}]},"lease_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"lease ends on"},{"type":"null"}]},"forwarding_address_line1":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding address line1"},{"type":"null"}]},"forwarding_address_line2":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding address line2"},{"type":"null"}]},"forwarding_city":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding city"},{"type":"null"}]},"forwarding_region":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding region"},{"type":"null"}]},"forwarding_postal_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding postal code"},{"type":"null"}]},"reason_note":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason note"},{"type":"null"}]},"effective_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"effective at"},{"type":"null"}]}},"required":["lease_id","move_out_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/search/global":{"get":{"operationId":"global_search","summary":"Global search","description":"Staff top-bar search: up to per_kind (1-20, default 5) matches each of people (kind contact, with roles tenant/former_tenant/owner/vendor/applicant and the owner_id/vendor_id for their detail pages), properties, units, leases (title = tenant names), work orders, and money records: receipts (reference), bills (bill or invoice number), checks (check number), vendor payments not paid by printed check (check number or reference), deposits (slip or confirmation number) and journal entries (entry number or reference), plus documents (title, file name or description; not archived) and building violations (agency, number, description, property or unit; open ones first), each also by exact amount (\"1,250.00\", \"$1250\"). Money rows carry amount_cents and on_date; a check carries link_kind (vendor_payment, journal_entry or bank_account) and link_id for its page. Ordered by rank (0 = exact) within each kind. Case-insensitive contains; every word of a multi-word query must match. Queries under 2 characters return nothing; money records need a digit in the query.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Search"],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","maxLength":100000,"description":"query"},"description":"query"},{"name":"per_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"per kind"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/keys/hand_over_move":{"post":{"operationId":"hand_over_move_in_keys","summary":"Hand over move in keys","description":"Hands a resident on the lease keys from key control for this home (keys = [{key_id, quantity}]), logging key_checkouts and adding to the move-in's keys_count. Before or after the move-in is recorded. Master keys, lockboxes and property-wide common-area keys stay with staff and are refused. Returns the number of keys handed over.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Keys"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"keys":{"description":"keys"}},"required":["lease_id","contact_id","keys"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/home_purchase_contracts/candidates":{"get":{"operationId":"home_purchase_contract_candidates","summary":"Home purchase contract candidates","description":"Park-owned homes on a lot with an active lot lease and no active contract, with the lease's tenants, for the new contract form.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.write.","tags":["Home purchase contracts"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/reports/homeowner_assessments_ahead":{"get":{"operationId":"homeowner_assessments_ahead","summary":"Homeowner assessments ahead","description":"Homeowner portal and app: the account's assessments due from today for months months (1-36), posted (with what is still owed) or still to post. For the autopay preview and the upcoming list. An owner on the account or staff with associations.read.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"homeowner_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"description":"homeowner account id"},{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"months"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owners/homeowner_autopay_co":{"get":{"operationId":"homeowner_autopay_co_owners","summary":"Homeowner autopay co owners","description":"Homeowner portal and app: how many other owners of the home have autopay on (only one pays each charge). Owners cannot read each other's enrollments.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Owners"],"parameters":[{"name":"homeowner_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"description":"homeowner account id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/homeowner_special_assessments":{"get":{"operationId":"homeowner_special_assessments","summary":"Homeowner special assessments","description":"The special assessments of a homeowner account for the schedule card: total, paid, remaining (open installments plus the ones still to post), what is due now, the installments left with their dates and states (paid, due, upcoming). \"Pay off the rest\" pays remaining_cents through create_special_assessment_payoff_intent. An owner on the account or staff with associations.read.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"homeowner_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"description":"homeowner account id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/homeowner_statement":{"get":{"operationId":"homeowner_statement","summary":"Homeowner statement","description":"An owner on the account or staff with associations.read.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"homeowner_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"description":"homeowner account id"},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/legal_referrals/identify":{"post":{"operationId":"identify_legal_referrals","summary":"Identify legal referrals","description":"Creates an identified referral for each account the policy flags today with no hold and no open referral; returns how many. Staff with legal.write (only properties they can access).\n\nReturns { result }.\n\nNeeds one of: legal.write.","tags":["Legal referrals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"policy_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"policy id"}},"required":["policy_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/budget_lines/import":{"post":{"operationId":"import_budget_lines","summary":"Import budget lines","description":"Imports budget amounts into a draft budget from a CSV the web app parsed ([{account_number, month_on, amount_cents}]). amounts are not negative. The months of each account in the file replace that account's lines (zero amounts are left out); accounts not in the file keep theirs. All or nothing. Returns lines written.\n\nReturns { result }.\n\nNeeds one of: gl.write, owners.write.","tags":["Budget lines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"lines":{"description":"lines"}},"required":["budget_id","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/reports/import_eiv":{"post":{"operationId":"import_eiv_report","summary":"Import EIV report","description":"Imports a parsed HUD EIV report for a property (or one household with lease_id): Income Report, Existing Tenant Search or Multiple Subsidy. members is [{first_name, last_name, ssn_last4, date_of_birth?, detail?, incomes?: [{kind, source?, period_type quarter|month, period_end, amount_cents}]}]; only four SSN digits are accepted and SSN-shaped text is masked. Each person is matched to a member of a household's current certification at the property by last name and last four SSN digits. An Income Report compares each matched household's EIV income with its certification (a discrepancy at $200 a month or 10%); the other reports flag the matched households. Logs the review in eiv_report_reviews for the MOR checklist. Requires affordable.write on the property.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Reports"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"report_type":{"type":"string","enum":["existing_tenant_search","deceased_tenants","failed_verification","new_hires","multiple_subsidy","identity_verification","income_discrepancy","no_income","income_report"],"description":"report type"},"report_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"report date"},"file_name":{"type":"string","maxLength":100000,"description":"file name"},"members":{"description":"members"},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]}},"required":["property_id","report_type","report_date","file_name","members"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/documents/import_lease":{"get":{"operationId":"import_lease_documents","summary":"Import lease documents","description":"The lease PDFs of a Migration workspace with the imported lease each one belongs to: the lease the analysis matched it to, else the only imported lease whose property name and unit number are both in the file name; null when none. document_id is set once it is filed. Needs imports.run and access to every property.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Documents"],"parameters":[{"name":"import_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"import id"},"description":"import id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/lockbox_batches/import":{"post":{"operationId":"import_lockbox_batch","summary":"Import lockbox batch","description":"Imports one lockbox deposit the browser read from the bank's file. items [{amount_cents, check_number?, payer_name?, remitter_address?, payer_account_last4?, remittance_reference?, stub_amount_cents?, bank_batch_number?, bank_item_number?}] in file order; the batch total is their sum. A file fingerprint already imported (and not canceled) is refused. Moves no money. Returns the lockbox batch id.\n\nReturns { result }.\n\nNeeds one of: receivables.write.","tags":["Lockbox batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"file_format":{"type":"string","enum":["bai2","bai_lockbox","csv"],"description":"file format"},"file_name":{"type":"string","maxLength":100000,"description":"file name"},"file_fingerprint":{"type":"string","maxLength":100000,"description":"file fingerprint"},"deposit_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"deposit date"},"lockbox_number":{"type":"string","maxLength":100000,"description":"lockbox number"},"items":{"description":"items"}},"required":["bank_account_id","file_format","file_name","file_fingerprint","deposit_date","lockbox_number","items"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/reports/import_reconciliation":{"get":{"operationId":"import_reconciliation","summary":"Import reconciliation","description":"Before anything is imported the actual values are 0.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"import_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"import id"},"description":"import id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/import_reconciliation_detail":{"get":{"operationId":"import_reconciliation_detail","summary":"Import reconciliation detail","description":"The reconciliation staff review before approving a migration, as of its go-live date. Bank rows (every bank account): bank_balance (the old book balances mapped to its ledger account in import_account_map against the account's accrual balance). has_source is false when there is nothing to compare with, and then the difference is 0. Needs imports.run and access to every property.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"import_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"import id"},"description":"import id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/units/import":{"post":{"operationId":"import_units","summary":"Import units","description":"Bulk create or update units of a property. units: [{\"unit_number\": \"101\", \"building\": \"A\", \"floor_plan\": \"1x1\", \"floor_number\": 1, \"bedrooms\": 1, \"bathrooms\": 1, \"sqft\": 650, \"market_rent_cents\": 145000, \"status\": \"vacant\", \"space_use\": \"residential\"}]. building is a building code or name: an existing building matches by name first, then by code; status applies to new units only. A unit number two buildings share needs the building. Floor plans are created by name when missing. Returns rows processed.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Units"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"units":{"description":"units"}},"required":["property_id","units"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_accounts/import":{"post":{"operationId":"import_utility_accounts","summary":"Import utility accounts","description":"Creates or updates utility accounts in bulk from rows {property (code or name), unit, provider, utility_type, account_number, gl_account (number or name), service_address, opened_on, master_metered, autopay, auto_switch_on_move, notes}. A provider is created on first use and linked to the vendor of the same name. An account with the same provider and account number (or, without a number, the same property, unit and type) is updated. Unit accounts switch holders with the leases unless auto_switch_on_move is false. Each row succeeds or fails on its own; returns {created, updated, errors: [{row, error}]}.\n\nReturns { result }.\n\nNeeds one of: payables.write, properties.write.","tags":["Utility accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"description":"rows"}},"required":["rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write","properties.write"]}},"/v1/incidents/{id}/summary":{"get":{"operationId":"incident_summary","summary":"Incident summary","description":"Totals of an incident across vendors and invoices: open and total linked work orders, linked resident requests, approved amount of its work orders, invoiced cost (bill lines coded to it or to its work orders, not draft or voided) and the number of vendors billing. Runs as the caller.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Incidents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The incident's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/insurance_compliance":{"get":{"operationId":"insurance_compliance","summary":"Insurance compliance","description":"Certificate of insurance compliance per requirement: the requirement, the accepted certificate on file, a newer certificate waiting for review, the last rejection reason, the terms the certificate misses (gaps), days to expiry and one compliance word: waived, missing, pending_review, expired, insufficient, expiring (30 days or less) or compliant. Staff with leasing.read on the property, or a tenant on the lease.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.read.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/reports/insurance_premium_schedule":{"get":{"operationId":"insurance_premium_schedule","summary":"Insurance premium schedule","description":"Monthly recognition of a property insurance premium over its coverage period by days (accrual): recognized_cents per month (adding up to the premium), prepaid_after_cents left after the month, posted_to_expense_cents = the premium bill's lines on expense accounts (shown in the first month), is_misposted when more than half the premium went straight to expense instead of a prepaid account. An authorized accountant reviews and posts any correction. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"premium_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"premium id"},"description":"premium id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/assets/investor_entity":{"get":{"operationId":"investor_entity_assets","summary":"Investor entity assets","description":"Each property an investment entity holds on as_of, for its investors (or staff with investments.read): units and occupied units (a lease in force on the date), trailing-12-month net operating income (accrual income less operating expenses; debt service, capital, reserves and non-operating lines excluded), the latest valuation and its mortgage balance, each also at the entity's ownership_pct.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: investments.read.","tags":["Assets"],"parameters":[{"name":"entity_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"description":"entity id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/investors/profiles":{"get":{"operationId":"investor_profiles","summary":"Investor profiles","description":"The editable profile of each active investor in an organization: contact name, primary email and phone, source, target investment, payout method and notes. Requires investments.read; reads contacts without contacts.read because investors are managed on the investments screens.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: investments.read.","tags":["Investors"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.read"]}},"/v1/capital_calls/issue":{"post":{"operationId":"issue_capital_call","summary":"Issue capital call","description":"Creates a capital call for an entity (optionally one offering) and allocates total_cents across hard commitments pro rata to their uncalled amounts (commitment less earlier call allocations and less capital funded outside calls; exact cents). A call above the total uncalled amount is rejected. Issued immediately on issued_on (default today; notice event) unless issue_now = false (draft; issue later with issue_draft_capital_call). A call at or above the entity's second_approval_threshold_cents can only be saved as a draft.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: investments.write.","tags":["Capital calls"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"total_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"total cents"},"due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},"purpose":{"type":"string","maxLength":100000,"description":"purpose"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"offering_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"offering id"},{"type":"null"}]},"issue_now":{"anyOf":[{"type":"boolean","description":"issue now"},{"type":"null"}]},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]}},"required":["entity_id","total_cents","due_on","purpose","property_id","bank_account_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/capital_calls/{id}/issue_draft":{"post":{"operationId":"issue_draft_capital_call","summary":"Issue a draft capital call","description":"Issues a draft capital call dated issued_on (default today) and emits capital_call.issued. Requires investments.write. When the call is at or above the entity's second_approval_threshold_cents, the person who created the draft cannot issue it.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: investments.write.","tags":["Capital calls"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The capital call's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/actions/issue_interim_1099":{"post":{"operationId":"issue_interim_1099","summary":"Issue interim 1099","description":"No threshold: the office decides to issue. A draft from the batch is voided first; a final or filed form refuses (correct it instead). The forms are interim (is_interim), so generate_vendor_1099_forms and generate_owner_1099_forms leave them out at year end. Returns forms issued.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.write, payables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"through":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"through"},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]}},"required":["tax_year","through"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write","payables.write"]}},"/v1/actions/issue_variance_commentary":{"post":{"operationId":"issue_variance_commentary","summary":"Issue variance commentary","description":"Freezes the confirmed variance notes of a budget for a month (and its whole-year notes) as issued with a report. AI suggestions that nobody confirmed are left out. Staff with gl.write on the property.\n\nReturns { result }.\n\nNeeds one of: gl.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"month_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month on"},"title":{"type":"string","maxLength":100000,"description":"title"}},"required":["budget_id","month_on","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/documents/lead_attachable":{"get":{"operationId":"lead_attachable_documents","summary":"Lead attachable documents","description":"Library documents staff may attach to an email to this lead's prospect that the caller can read, newest first, at most 200, none over 10 MB. source groups them for the attach menu: property, application, lease or contact. Requires leasing.write.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.write.","tags":["Documents"],"parameters":[{"name":"lead_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},"description":"lead id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/units/lead_matches":{"get":{"operationId":"lead_unit_matches","summary":"Lead unit matches","description":"Open leads (not leased, lost, converted, merged or archived) that fit one listing or one unit: same property or no property, bedrooms within the lead's range and the asking rent (listing) or market rent (unit) within the lead's budget. Newest activity first, at most 200. can_text is false when the contact has no phone, asked not to be contacted, replied STOP or the number is suppressed. Requires leasing.read on the property.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.read.","tags":["Units"],"parameters":[{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},{"type":"null"}]}},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/leases/{id}/balance":{"get":{"operationId":"lease_balance","summary":"Lease balance","description":"Balance summary of a lease for staff, its tenants and its owners: balance (AR - prepaid, accrual), past due, open charges, unapplied payments/credits and deposit held, all in cents. Past due and open charges leave out housing-assistance charges (hap_contract_id set): the housing authority owes them, not the tenant.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/leases/compliance_coverage":{"post":{"operationId":"lease_compliance_coverage","summary":"Lease compliance coverage","description":"Per property, its location, jurisdictions and the coverage of every lease compliance check today: which checks have a rule on file and which say \"No rule on file for <city, state>: not checked\". Backs the Compliance view (Agents and Compliance).\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: compliance.read, leasing.read.","tags":["Leases"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.read","leasing.read"]}},"/v1/leases/{id}/effective_rent":{"get":{"operationId":"lease_effective_rent","summary":"Lease effective rent","description":"Contractual rent next to the concession-adjusted figure: monthly rent, term in months (12 when the lease has no end), contractual rent over the term, concession credits posted to the lease, net rent and the simple effective monthly rent (net / months). A $2,400 lease with one free month over 12 months is $2,200 effective. Analysis only; the billing schedule never changes. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/leases/{id}/import_summary":{"get":{"operationId":"lease_import_summary","summary":"Lease import summary","description":"For a lease brought over from a previous system: its go-live date, the balance it started with on that date (the opening balance) and how many history rows were imported. No row for a lease made in the app. Staff with receivables.read on its property and the lease's own tenants.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/leases/ledger_discrepancies":{"post":{"operationId":"lease_ledger_discrepancies","summary":"Lease ledger discrepancies","description":"Lease-to-ledger exceptions: current leases whose rent today (rent schedule in effect, else the lease rent) differs from the recurring rent charges billing it (tenant and subsidy portions together), or that have no rent charge; and accepted renewals whose new lease does not carry the agreed rent. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Leases"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/leases/{id}/pay_status":{"get":{"operationId":"lease_pay_status","summary":"Lease pay status","description":"For the pay screens, for a tenant on the lease or staff with receivables.read (no row for anyone else). can_pay and blocked_reason (null, lease_ended, online_off, returned_payment, certified_funds, office_hold, not_set_up); card_allowed, bank_allowed and bank_blocked_reason (returned_payment, certified_funds, office_hold, not_set_up) when only cards work; inbound payments still processing (sum, count, the latest date they are expected to clear: the processor's date, else 4 weekdays for ACH and 1 for a card); and, when the fixed-amount autopays of the lease together pay less than the rent in force or scheduled, the resident's own amount, the rent and its date, the total of all of them and the amount to raise theirs to (their share of the gap) for the \"Update to the new rent\" banner.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/leases/{id}/payment_rules":{"get":{"operationId":"lease_payment_rules","summary":"Lease payment rules","description":"0 = any amount). For a tenant on the lease or staff with receivables.read; anyone else reads true and 0.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/lease_rent_shares/status":{"get":{"operationId":"lease_rent_share_status","summary":"Lease rent share status","description":"Is_covered: the roommates' shares are paid or will be paid by a usable rent_share autopay (seen from the caller; full payments only). method is null when no shares are set. can_edit: the caller may change (staff) or propose (a share holder while unlocked) shares on a current lease. proposal_*: a pending proposal, each holder's proposed share and whether they confirmed it. For a tenant on the lease or staff with leasing.read or receivables.read; no rows for anyone else.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.read, leasing.write, receivables.read, receivables.write.","tags":["Lease rent shares"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","leasing.write","receivables.read","receivables.write"]}},"/v1/leases/{id}/requires_certified_funds":{"get":{"operationId":"lease_requires_certified_funds","summary":"Lease requires certified funds","description":"Personal checks and ACH (manual or online) are then refused.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/leases/{id}/resident_utilities":{"get":{"operationId":"lease_resident_utilities","summary":"Lease resident utilities","description":"The utilities residents set up at a lease's property, with the linked provider's name, phone and start-service link (else the details on the row), and whether this lease confirmed each. Staff with leasing.read or a resident on the lease.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/charges/lease_utility_breakdowns":{"get":{"operationId":"lease_utility_charge_breakdowns","summary":"Lease utility charge breakdowns","description":"Run totals (provider bill, common-area share, amount split, units sharing), the split method and RUBS factor, the resident's occupied days and share, or meter readings and usage with the unit of measure, then the cap reduction, amount billed and admin fee. charge_id and admin_fee_charge_id match receivables charges. Empty for any other lease.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Charges"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/leases/{id}/wallet_allowed":{"get":{"operationId":"lease_wallet_allowed","summary":"Lease wallet allowed","description":"For the pay screens, for a tenant who can pay the lease or staff with receivables.read: true when Apple Pay and Google Pay can be offered (online payments on, a processor account for the lease takes wallets, no hold on cards). False for anyone else.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/actions/lift_payment_acceptance_restriction":{"post":{"operationId":"lift_payment_acceptance_restriction","summary":"Lift payment acceptance restriction","description":"Ends a payment acceptance restriction from today (one that has not started yet is removed). The audit log keeps who applied and lifted it. Needs legal.write and receivables.write on the property.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: legal.write, receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"restriction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"restriction id"}},"required":["restriction_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write","receivables.write"]}},"/v1/buildings/lihtc_fractions":{"get":{"operationId":"lihtc_building_fractions","summary":"LIHTC building fractions","description":"The LIHTC applicable fraction of each building (units without a building are one group per property) on a date: low-income units over total units, low-income floor space over total floor space, and the applicable fraction (the lesser of the two). Excludes manager, employee, model and non-revenue units. target_fraction is the program's required set-aside percent. Requires affordable.read; limited to properties the caller can access.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: affordable.read.","tags":["Buildings"],"parameters":[{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/owners/lihtc_certification":{"get":{"operationId":"lihtc_owner_certification","summary":"LIHTC owner certification","description":"The unit-by-unit schedule of a LIHTC program's annual owner certification to the state agency on a date: unit, status (low_income, vacant, uncertified, market, excluded), the household's latest certified income against its limit, tenant rent, utility allowance and gross rent against the rent limit, and the over-income (next available unit rule) and rent-over-limit flags. Requires affordable.read; limited to properties the caller can access.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: affordable.read.","tags":["Owners"],"parameters":[{"name":"housing_program_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"description":"housing program id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/reports/lihtc_set_aside_tests":{"get":{"operationId":"lihtc_set_aside_tests","summary":"LIHTC set aside tests","description":"The LIHTC minimum set-aside test of each program on a date: 20-50 (at least 20% of units low-income at 50% AMI or less), 40-60 (40% at 60% or less) or income averaging (40% low-income at 80% or less with a designated average of 60% or less). passes is null for an \"other\" election. Requires affordable.read; limited to properties the caller can access.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: affordable.read.","tags":["Reports"],"parameters":[{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/documents/{id}/link_bill_invoice":{"post":{"operationId":"link_bill_invoice_document","summary":"Link a bill invoice document","description":"Files an invoice document the caller uploaded, and that is not yet linked to any record, on a bill (B14: the file read by invoice extraction on New bill, linked once the bill is saved).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.write.","tags":["Documents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The document's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bill_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bill id"}},"required":["bill_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/entity_properties/link":{"post":{"operationId":"link_entity_property","summary":"Link entity property","description":"Records that an investment entity holds a property (percentage, acquisition date and economics). Legal ownership for owner accounting is set separately with set_property_ownership() using the entity's owner_id.\n\nReturns { result }.\n\nNeeds one of: investments.write.","tags":["Entity properties"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"ownership_pct":{"type":"number","description":"ownership pct"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"acquisition_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"acquisition price cents"},{"type":"null"}]},"acquisition_costs_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"acquisition costs cents"},{"type":"null"}]},"loan_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"loan amount cents"},{"type":"null"}]}},"required":["entity_id","property_id","ownership_pct","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/incidents/{id}/link_record":{"post":{"operationId":"link_incident_record","summary":"Link incident record","description":"Links (or with unlink removes) one work order or resident request to an incident at the same property. Staff with maintenance.write.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.write.","tags":["Incidents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The incident's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"service_request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},{"type":"null"}]},"unlink":{"anyOf":[{"type":"boolean","description":"unlink"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/actions/link_self_help_outcome":{"post":{"operationId":"link_self_help_outcome","summary":"Link self help outcome","description":"Resident: links the tips they saw (\"I still need help\") to the request they then sent, so staff see them on the request.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"outcome id"},"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"}},"required":["outcome_id","service_request_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/{id}/link_service_request":{"post":{"operationId":"link_service_request_to_work_order","summary":"Link service request to a work order","description":"Attaches a submitted or triaged service request to an existing open work order at the same property (a duplicate report; not one that is completed, verified or canceled): sets linked_work_order_id, moves the request to converted (the requester is notified through service_requests_notify_status), points the work order at the request when it has none, and notes it on the work order's timeline. Requires maintenance.write and property access.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["service_request_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/reports/list_undeposited_funds":{"get":{"operationId":"list_undeposited_funds","summary":"List undeposited funds","description":"A split check's receipts must be deposited together), photo, batch, the property's current operating bank account (suggested_bank_account_id), whether it can go on a remote (mobile/scanner) deposit (cash cannot), and whether it came back from a voided deposit. Filter by bank_account_id (properties whose operating account it is) and/or property_id. Needs receivables.read or banking.read.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read, receivables.read.","tags":["Reports"],"parameters":[{"name":"bank_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},{"type":"null"}]}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","receivables.read"]}},"/v1/buildings/ll97_emissions":{"get":{"operationId":"ll97_building_emissions","summary":"LL97 building emissions","description":"Local Law 97 per building year at a property: emissions in metric tons CO2e (electricity kWh, natural gas therms x 100 kBtu, No. 2 oil gallons x 138.6 kBtu and steam Mlb x 1,194 kBtu times the period's coefficients), the limit (gross floor area x the occupancy group's limit), the excess and the estimated penalty at $268 per ton over, in cents. has_limit is false for a year outside every loaded compliance period. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Buildings"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/lockbox_match_context":{"post":{"operationId":"lockbox_match_context","summary":"Lockbox match context","description":"What the lockbox matcher compares against: the batch's items (or item_ids), and every current lease (and ended lease with an open balance) at the properties the bank account takes rent for, with tenant code, property, address, unit, tenant names, tenant balance and monthly tenant rent, and each subsidy contract with its payer type, monthly amount and open subsidy. Read only.\n\nReturns { result }.\n\nNeeds one of: receivables.read, receivables.write.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"item_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"item ids"},{"type":"null"}]}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/packages/log":{"post":{"operationId":"log_package","summary":"Log package","description":"Front desk: logs a received package, matching it to the unit's current lease and primary tenant when not given. unit_id must be at the property. With requires_pickup_code a one-time pickup code is generated and returned once (only its hash is stored) for the notification.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"recipient_name":{"type":"string","maxLength":100000,"description":"recipient name"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"recipient_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"recipient contact id"},{"type":"null"}]},"carrier":{"anyOf":[{"type":"string","enum":["usps","ups","fedex","dhl","amazon","ontrac","lasership","courier","other"],"description":"carrier"},{"type":"null"}]},"tracking_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"tracking number"},{"type":"null"}]},"size":{"anyOf":[{"type":"string","enum":["envelope","small","medium","large","oversized"],"description":"size"},{"type":"null"}]},"storage_location":{"anyOf":[{"type":"string","maxLength":100000,"description":"storage location"},{"type":"null"}]},"locker_compartment":{"anyOf":[{"type":"string","maxLength":100000,"description":"locker compartment"},{"type":"null"}]},"is_perishable":{"anyOf":[{"type":"boolean","description":"is perishable"},{"type":"null"}]},"requires_pickup_code":{"anyOf":[{"type":"boolean","description":"requires pickup code"},{"type":"null"}]}},"required":["property_id","recipient_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/reports/maintenance_emergency_phone":{"get":{"operationId":"maintenance_emergency_phone","summary":"Maintenance emergency phone","description":"The emergency number for a lease's property, for a tenant on the lease or staff with maintenance.read there; null otherwise or when none is set. The resident's maintenance page shows it.\n\nReturns { result }.\n\nNeeds one of: maintenance.read.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/reports/maintenance_goal_summary":{"post":{"operationId":"maintenance_goal_summary","summary":"Maintenance goal summary","description":"Maintenance overview goals card: over the last days (default 30, at most 366), work orders whose response was due or given (responseDecided) and how many responded by response_due_at (responseOnTime); work orders finished in the window or open past a due_at in the window (completionDecided) and how many finished by due_at (completionOnTime); and open work orders past a goal now (openLate, as is_overdue). Canceled work orders never count. property_ids narrows to a portfolio scope.\n\nReturns { result }.\n\nNeeds one of: maintenance.read.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"days"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/reports/maintenance_intake_safety":{"get":{"operationId":"maintenance_intake_safety","summary":"Maintenance intake safety","description":"The deterministic emergency safety notice for a maintenance report in progress: what was typed, the category and the urgency chosen give {is_emergency, kind, reason: keyword | category | urgency, keyword, message, emergency_phone, call_line}. For a resident of the current lease or staff with maintenance.read on the property. Works with AI off; never model text.\n\nReturns { result }.\n\nNeeds one of: maintenance.read.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"},{"name":"text","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"text"},{"type":"null"}]}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/conversations/{id}/mark_read":{"post":{"operationId":"mark_conversation_read","summary":"Mark conversation read","description":"Marks messages up to up_to as read by the caller's participant row (read receipts in message_reads, watermark on the participant) and clears related in-app notifications. Returns the number of newly read messages.\n\nReturns { result }.\n\nNeeds one of: communications.read.","tags":["Conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The conversation's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"up_to":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"up to"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.read"]}},"/v1/mail_batches/mark_mailed":{"post":{"operationId":"mark_mail_batch_mailed","summary":"Mark mail batch mailed","description":"Marks every ready letter of an approved mail batch as mailed on mailed_on and closes the batch. Returns the number marked.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Mail batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"mailed_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"mailed on"}},"required":["batch_id","mailed_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/mail_pieces/mark_returned":{"post":{"operationId":"mark_mail_piece_returned","summary":"Mark mail piece returned","description":"Records that a mailed letter came back to the sender.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Mail pieces"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"piece_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"piece id"}},"required":["piece_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/mark_move_in_plan_sent":{"post":{"operationId":"mark_move_in_plan_sent","summary":"Mark move in plan sent","description":"Records that the move-in plan was sent to the residents (the web server sends move_in_plan).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_distribution_lines/mark_paid":{"post":{"operationId":"mark_owner_distribution_line_paid","summary":"Mark owner distribution line paid","description":"RPC / Edge Function: mark a posted or sent_to_bank (NACHA) distribution line paid (ACH settled), linking its payment transaction when there is one. Requires owners.distribute and access to the line's property; a linked transaction must be a succeeded ACH owner payout with the same organization, owner, property and amount, and an existing link cannot be replaced.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: owners.distribute.","tags":["Owner distribution lines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"line_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"line id"},"payment_transaction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"payment transaction id"},{"type":"null"}]}},"required":["line_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute"]}},"/v1/owner_statements/mark_sent":{"post":{"operationId":"mark_owner_statement_sent","summary":"Mark owner statement sent","description":"Record that a final statement was delivered (optionally attaching its rendered PDF document). Requires owners.write and access to the owner.\n\nReturns { ok: true }.\n\nNeeds one of: owners.write.","tags":["Owner statements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statement_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"statement id"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["statement_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/packages/{id}/mark_found":{"post":{"operationId":"mark_package_found","summary":"Mark package found","description":"Front desk: a package marked lost turned up. Back to waiting (status notified, optional new storage place); tells the resident.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"storage_location":{"anyOf":[{"type":"string","maxLength":100000,"description":"storage location"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/packages/{id}/mark_lost":{"post":{"operationId":"mark_package_lost","summary":"Mark package lost","description":"Front desk: a waiting package can't be found. Status lost (lost_at, the note added to notes); tells the resident unless notify is false.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"notify":{"anyOf":[{"type":"boolean","description":"notify"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/packages/mark_notified":{"post":{"operationId":"mark_packages_notified","summary":"Mark packages notified","description":"Notification worker or front desk: marks packages whose resident has been notified.\n\nReturns { result }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"package_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"package ids"}},"required":["package_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/rent_reporting_batches/mark_submitted":{"post":{"operationId":"mark_rent_reporting_batch_submitted","summary":"Mark rent reporting batch submitted","description":"00137: refuses until the file was downloaded, and when the file built now differs from the download (a resident opted out since).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Rent reporting batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"file_storage_path":{"type":"string","maxLength":100000,"description":"file storage path"}},"required":["batch_id","file_storage_path"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/material_plan":{"post":{"operationId":"material_plan","summary":"Material plan","description":"The materials one unit turn or work order needs, one row per catalog product, quantities rounded up to whole units. Lists: list_ids, else the unit turn lists (or the work order category's lists) of the property, else of the organization. missing = sqft / bedrooms / bathrooms when the unit lacks the size a rule needs; such rows have quantity 0 and are not ordered.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: maintenance.read.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_turn_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit turn id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"list_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"list ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/reports/mor_readiness":{"get":{"operationId":"mor_readiness","summary":"MOR readiness","description":"A property's HUD Management and Occupancy Review checklist on a date, from data already kept: recertifications (overdue or missing on occupied set-aside units), tenant files (latest certification lacks the 50059/TIC, an income verification or the signature page), waiting list (anyone waiting), EIV reviews (monthly and quarterly reports current; HUD multifamily programs only), EIV findings (open income discrepancies from each household's latest Income Report import and open Multiple Subsidy or Existing Tenant Search flags; record_id is the EIV import), work orders open more than 30 days, units without a completed inspection in 12 months, and HAP payments for the last three months received and applied. status is pass, attention or not_applicable; record_id points at the first record to fix where there is one. Requires affordable.read and access to the property.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: affordable.read.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/leases/{id}/move_charge":{"post":{"operationId":"move_charge_to_lease","summary":"Move charge to a lease","description":"Moves a charge posted to the wrong lease (wrong unit, roommate). Reverses it on its lease (payments on it pay that lease's other charges or stay prepaid there) and posts the same type, amount, description and reference on lease_id dated moved_on (default the org's today), applying that lease's unapplied money. Not for deposit charges, charges on a payment plan, carried-over or written-off charges. Returns the new charge id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"charge_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"charge id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"moved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"moved on"},{"type":"null"}]}},"required":["charge_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/leases/{id}/move_credit":{"post":{"operationId":"move_credit_to_lease","summary":"Move credit to a lease","description":"Moves a credit posted to the wrong lease. Reverses it on its lease (the charges it paid reopen) and posts the same kind, account, amount and description on lease_id dated moved_on (default the org's today), where it pays open charges or stays as a credit balance. Returns the new credit id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"credit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"credit id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"moved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"moved on"},{"type":"null"}]}},"required":["credit_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/reports/move_in_plan_lines":{"get":{"operationId":"move_in_plan_lines","summary":"Move in plan lines","description":"The move-in plan's sentences for notices: home_name, move_in_line (day and window in the org's time zone), keys_line, todo_lines (the resident's open items), portal_url (the portal Move-in page route) and office_line. Staff with leasing.read or a resident on the lease.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/move_in_readiness":{"get":{"operationId":"move_in_readiness","summary":"Move in readiness","description":"A lease's move-in at a glance: the key handoff (window, place, notes), plan sent, and each checklist item with its state (done, todo, not_needed) read from the facts (lease in force, move-in charges paid, renter's insurance on file when required, every resident utility confirmed, move-in inspection completed, keys handed to a resident, a resident portal account, autopay) or ticked by hand, plus required_done / required_total. For staff with leasing.read at the property or a resident on the lease.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/leases/{id}/move_payment":{"post":{"operationId":"move_payment_to_lease","summary":"Move payment to a lease","description":"Moves a payment recorded on the wrong lease to another lease at the same property without touching the processor or the bank: unapplies it (its charges reopen), carries its unapplied money to lease_id as a lease_transfer receipt (Dr PREPAID_RENT old lease / Cr PREPAID_RENT new lease, receipt_refunds.transfer_receipt_id on the original) and applies it there FIFO. A later return, chargeback or refund of the original follows the money. Returns the receipt now holding the money.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receipt_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"receipt id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"moved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"moved on"},{"type":"null"}]}},"required":["receipt_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/reports/needs_attention":{"post":{"operationId":"needs_attention","summary":"Needs attention","description":"The actionable exceptions across properties, each with a kind, severity (critical, high, normal), property, title, detail, owner, due date and the record to open: open incidents, overdue work orders (grouped), waiting work orders due for follow-up, scope changes and emergency reviews, bills awaiting approval (grouped), move-ins within 14 days with an unfinished turn, payment exceptions and overdue restriction reviews, referrals awaiting approval or overdue, violations due within 14 days, open abatements, critical onboarding cards and escalated tasks. Informational updates are left out. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/recurring_journal_lines/non_ids":{"get":{"operationId":"non_recurring_journal_line_ids","summary":"Non recurring journal line IDS","description":"Ids of the journal lines of an organization dated from..to (null = open) that post a one-time (non-recurring) cost, for the caller's organization or the properties it owns or governs. Ids only: reports join them to the journal lines the caller can read.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Recurring journal lines"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},{"type":"null"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/nspire_readiness":{"get":{"operationId":"nspire_readiness","summary":"NSPIRE readiness","description":"Open NSPIRE deficiencies at a property by severity, with how many are past their correction deadline.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/units/{id}/offer_mitchell_lama":{"post":{"operationId":"offer_mitchell_lama_unit","summary":"Offer a mitchell lama unit","description":"Offers a unit of the development to a waiting applicant, to answer by a date. The entry becomes offered.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The unit's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"waitlist_entry_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"waitlist entry id"},"offered_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"offered on"},"respond_by":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"respond by"}},"required":["waitlist_entry_id","offered_on","respond_by"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/on_call/calendar":{"get":{"operationId":"on_call_calendar","summary":"On call calendar","description":"Who is primary and backup on each on-call day of every active schedule, with names and whether an override decided it.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: maintenance.read, settings.write.","tags":["On call"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"days"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]}},"/v1/reports/on_call_now":{"get":{"operationId":"on_call_now","summary":"On call now","description":"The primary and backup of every active schedule right now.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: maintenance.read, settings.write.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read","settings.write"]}},"/v1/abandoned_home_cases/open":{"post":{"operationId":"open_abandoned_home_case","summary":"Open abandoned home case","description":"Opens an abandoned home case for a park home on its lot (one open case per home), with the evidence checklist, snapshots the owner, the latest lot lease and its balance, logs the opening event and marks the home abandoned. The assignee defaults to the caller. Requires legal.write on the property.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: legal.write.","tags":["Abandoned home cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"park_home_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"park home id"},"opened_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opened on"},{"type":"null"}]},"rent_unpaid":{"anyOf":[{"type":"boolean","description":"rent unpaid"},{"type":"null"}]},"utilities_off":{"anyOf":[{"type":"boolean","description":"utilities off"},{"type":"null"}]},"owner_unreachable":{"anyOf":[{"type":"boolean","description":"owner unreachable"},{"type":"null"}]},"belongings_removed":{"anyOf":[{"type":"boolean","description":"belongings removed"},{"type":"null"}]},"mail_accumulating":{"anyOf":[{"type":"boolean","description":"mail accumulating"},{"type":"null"}]},"evidence_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"evidence notes"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]}},"required":["park_home_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/association_elections/open":{"post":{"operationId":"open_association_election","summary":"Open association election","description":"Opens a draft election and tells every voting member (association_election_opened). Returns how many were told.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Association elections"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"election_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"election id"}},"required":["election_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/eviction_cases/open":{"post":{"operationId":"open_eviction_case","summary":"Open eviction case","description":"Opens an eviction case (status pending) on opened_on (also the date of its first eviction_case_events row) for a lease, names every lease tenant as a defendant and emits eviction.status_changed. Requires legal.write on the property.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: legal.write.","tags":["Eviction cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"reason":{"type":"string","enum":["nonpayment","holdover","breach","nuisance","illegal_activity","no_fault","other"],"description":"reason"},"reason_details":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason details"},{"type":"null"}]},"attorney_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"attorney contact id"},{"type":"null"}]},"attorney_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"attorney vendor id"},{"type":"null"}]},"amount_claimed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount claimed cents"},{"type":"null"}]},"opened_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"opened on"},{"type":"null"}]}},"required":["lease_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/homeowner_accounts/open":{"post":{"operationId":"open_homeowner_account","summary":"Open homeowner account","description":"Opens a homeowner account (homeowner ledger) for an association unit with its owner contacts (first = primary). Ownership periods of a unit cannot overlap. Requires associations.write.\n\nReturns { result }.\n\nNeeds one of: associations.write.","tags":["Homeowner accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"owner_contact_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"owner contact ids"},"ownership_starts_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ownership starts on"},"account_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"account number"},{"type":"null"}]},"statement_delivery":{"anyOf":[{"type":"string","enum":["email","mail","email_and_mail","portal_only"],"description":"statement delivery"},{"type":"null"}]},"is_owner_occupied":{"anyOf":[{"type":"boolean","description":"is owner occupied"},{"type":"null"}]},"mailing_address_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"mailing address id"},{"type":"null"}]},"previous_homeowner_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"previous homeowner account id"},{"type":"null"}]}},"required":["unit_id","owner_contact_ids","ownership_starts_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/listing_holds/open":{"get":{"operationId":"open_listing_holds","summary":"Open listing holds","description":"Open unit holds of the organization with their unit and expiry. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Listing holds"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/vendor_rfps/open":{"post":{"operationId":"open_vendor_rfp","summary":"Open vendor rfp","description":"Opens a draft vendor RFP for bids, or reopens a closed one. Needs at least one invited vendor.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Vendor rfps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rfp_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rfp id"}},"required":["rfp_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/operational_performance":{"post":{"operationId":"operational_performance","summary":"Operational performance","description":"Property and unit scope is applied before aggregation; association lists use their record scope.\n\nReturns { result }.\n\nNeeds one of: gl.read, receivables.read.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"area":{"type":"string","maxLength":100000,"description":"area"},"filters":{"anyOf":[{"description":"filters"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"unit_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"unit ids"},{"type":"null"}]},"record_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"record id"},{"type":"null"}]},"today":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"today"},{"type":"null"}]},"building_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"building ids"},{"type":"null"}]},"building_property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"building property ids"},{"type":"null"}]}},"required":["area"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read","receivables.read"]}},"/v1/actions/order_turn_materials":{"post":{"operationId":"order_turn_materials","summary":"Order turn materials","description":"Orders the materials of open unit turns, one purchase order per supplier per turn, submitted to the payables approval rules unless submit is false. Skips turns that are closed or already have a purchase order that is not void. Returns {orders, turns, skipped, empty} where empty counts turns with nothing to order.\n\nReturns { result }.\n\nNeeds one of: maintenance.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_turn_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"unit turn ids"},"submit":{"anyOf":[{"type":"boolean","description":"submit"},{"type":"null"}]}},"required":["unit_turn_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/work_orders/{id}/order_materials":{"post":{"operationId":"order_work_order_materials","summary":"Order work order materials","description":"Orders a work order's materials from list_ids, or from its category's lists when null: one purchase order per supplier, linked to the work order and submitted unless submit is false. Refuses a completed, verified or canceled work order. Returns how many purchase orders it made.\n\nReturns { result }.\n\nNeeds one of: maintenance.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"list_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"list ids"},{"type":"null"}]},"submit":{"anyOf":[{"type":"boolean","description":"submit"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/reports/org_rent_share_status":{"get":{"operationId":"org_rent_share_status","summary":"Org rent share status","description":"Every share holder on the current leases with rent shares, with their share this month, what they paid, what is left, the due date and whether it passed, and whether the shares need an update (is_valid false: a tenant without a share, or amounts that no longer add up to the rent). For the receivables page and the bell.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/reports/outside_payment_queue":{"get":{"operationId":"outside_payment_queue","summary":"Outside payment queue","description":"Approved, unpaid bills not on hold that the outside payment system pays, with the last payment file each went out in. Read only.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.read.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/owner_distributions/tracking":{"get":{"operationId":"owner_distribution_tracking","summary":"Owner distribution tracking","description":"Owner portal and staff: one row per distribution run, property and owner (newest first, at most limit), including owners whose share was held or zero. Returns the run's cash calculation (property figures at 100%), the configured reserve, the property's cash-basis money in, expenses and management fees since its previous posted run, the owner's statement for that month, the hold row, and the owner's line with its latest NACHA entry and check. Staff with owners.read see every owner of properties they can access (draft and discarded runs included); an owner sees only their own rows of runs that were posted. Staff-only fields (property_held_cents, owner_hold_note, line_void_reason) are null for owners.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: owners.read.","tags":["Owner distributions"],"parameters":[{"name":"distribution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"distribution id"},{"type":"null"}]}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},{"type":"null"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},{"type":"null"}]}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/owners/leasing_overview":{"get":{"operationId":"owner_leasing_overview","summary":"Owner leasing overview","description":"Owner portal: for each vacant, make-ready or on-notice unit (or unit with a live listing or a hold) of the properties the caller owns today in the org: the unit, its current listing (status, rent, required monthly fees, days on market, channels with their state, asking rent history since the ownership started), leads in the last 7 and 30 days, upcoming and completed showings, and submitted applications counted by status, all counted only from the start of the current ownership. Counts only: no applicant names, contact details or screening, whatever can_view_tenant_details says. Floor-plan listings count every unit of the floor plan. Empty for anyone who owns nothing there.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Owners"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owners/month_to_date":{"get":{"operationId":"owner_month_to_date","summary":"Owner month to date","description":"Owner home \"this month so far\": one row per property the caller owns today. month_start_on and today_on are in the property's time zone (properties.timezone, else the organization's). rent_due_cents and rent_collected_cents use the same definition as the staff dashboard: each lease's rent charges due this month, or its scheduled rent before the charge posts, and what was paid toward it. past_due_lease_count and past_due_cents come from owner_report_delinquency today. open_work_order_count counts work orders not completed, verified or canceled that owner_work_orders shows the caller; awaiting_owner_count those with a pending approval asked of the caller. vacant_unit_count = rentable active units without a lease in force today (reports D10). leases_ending_count = active or notice-given leases ending in the next 60 days. Whole-property counts and totals, never tenant names.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Owners"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_onboardings/checklist":{"get":{"operationId":"owner_onboarding_checklist","summary":"Owner onboarding checklist","description":"The owner's latest setup that was not canceled, with each step's state, the address invited, who invited and when the last reminder went out. Null when the owner was never invited.\n\nReturns { result }.\n\nNeeds one of: owners.read.","tags":["Owner onboardings"],"parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"description":"owner id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/portfolios/owner":{"get":{"operationId":"owner_portfolio","summary":"Owner portfolio","description":"Owner -> property -> primary manager view for one owner on a date: each property they own, their share, unit and occupied-unit counts (leases in force on as_of) and the primary property manager. The owner sees their own portfolio (dates they owned it); staff with owners.read see only the properties in their property scope.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: owners.read.","tags":["Portfolios"],"parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"description":"owner id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read"]}},"/v1/property_loans/owner":{"get":{"operationId":"owner_property_loans","summary":"Owner property loans","description":"Owner portal: the loans on the properties the caller owns today (whole-property amounts): lender, lien, rate, maturity, the original amount and the scheduled balance today from the terms (loan_schedule; the original amount before the first payment is due or without dates). No escrows, covenants or notes.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Property loans"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/property_valuations/owner":{"get":{"operationId":"owner_property_valuations","summary":"Owner property valuations","description":"Owner portal: the value rows of the properties the caller owns today, newest first, with the value, source, date and mortgage balance only. The note and who entered a row stay hidden from co-owners; entered_by_me says the caller entered it, so they can remove it.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Property valuations"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/owner_cash_flow":{"post":{"operationId":"owner_report_cash_flow","summary":"Owner report cash flow","description":"Owner portal cash flow: per property one of the caller's ownership periods overlaps (current or former owner; optionally only property_ids), the owner statement's cash summary for from..to cut to the dates the caller owned it: from_on is the later of from and the first day owned, to_on the earlier of to and the last day owned. beginning_cash_cents and ending_cash_cents are the property's trust cash at 100%; income, expenses and management fees are the property's totals; contribution_cents and distribution_cents are the caller's own (owner-tagged lines in full, untagged lines at the share in force on the line's date), never a co-owner's; other_cash_activity_cents = ending - (beginning + income - expenses - fees + contributions - distributions), which holds deposits, co-owners' flows and timing. ownership_pct is the share on to_on. For a statement period the row equals the statement's property row.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":["from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/owner_delinquency":{"post":{"operationId":"owner_report_delinquency","summary":"Owner report delinquency","description":"Owner portal delinquency summary: per property the caller owned on the date (current or former owner; optionally only property_ids), the staff Delinquency report on that date summed per property: lease_count = leases and accounts with delinquent_cents > 0, delinquent_cents = past due net of prepaid money, and the past-due amount by days late (1-30, 31-60, 61-90, over 90). The date is as_of, capped at today in the property's time zone and at the last day the caller owned the property; a date before they owned it shows nothing. Totals only: no tenant names or ledgers, so owners without tenant details can see it.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/properties/owner_report":{"get":{"operationId":"owner_report_properties","summary":"Owner report properties","description":"Owner portal reports: every ownership period (current or past) of the caller's owner records in the organization, with the property name and the share in force for that period. The reports page offers each property whose periods overlap the chosen range and states the share per period. Properties the caller never owned do not appear.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_statement_lines/details":{"get":{"operationId":"owner_statement_line_details","summary":"Owner statement line details","description":"Per owner statement line: the unit number, the tenant who paid (income, only when owners.can_view_tenant_details) or the vendor (expenses), and for management fee lines the management_fee_items components that produced the fee. For the statement's owner (not draft) or staff who may read the statement; staff get only the lines of properties they can access.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Owner statement lines"],"parameters":[{"name":"statement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"statement id"},"description":"statement id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_statements/other_cash_lines":{"get":{"operationId":"owner_statement_other_cash_lines","summary":"Owner statement other cash lines","description":"The journal lines behind an owner statement's \"Other cash activity\", per property at 100%: cash-basis lines in the period on balance sheet accounts other than trust cash (security deposits, prepaid rent, undeposited funds and processor clearing, transfers, reserves, payables), summed per date and account (the description when one line) and signed as their effect on trust cash. Owner contributions and distributions are not other activity. Every entry balances within the property, so these lines add up to the property's figure; a row with no date carries any remainder. Same access as the statement.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Owner statements"],"parameters":[{"name":"statement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"statement id"},"description":"statement id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_statements/packet":{"get":{"operationId":"owner_statement_packet","summary":"Owner statement packet","description":"For the statement's owner (not draft) or staff who can access every property on it; otherwise raises P0002 (cannot read the statement) or 42501 (can read only part of it).\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Owner statements"],"parameters":[{"name":"statement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"statement id"},"description":"statement id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/packages/owner_tax_header":{"get":{"operationId":"owner_tax_package_header","summary":"Owner tax package header","description":"The owner or staff with owners.read.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Packages"],"parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"description":"owner id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/packages/owner_tax_lines":{"get":{"operationId":"owner_tax_package_lines","summary":"Owner tax package lines","description":"Amount_cents is the whole property's amount and share_cents the owner's: the ownership_pct on the line's date (rounded per line), or the full amount of the owner's own contributions and distributions. Both are signed toward the owner (income and contributions positive). mapping is set on income, expense and management fee lines, and so is schedule_e_line, except for income with no category and gain or loss on disposal (null). description is the account name on income lines and any line with a lease, so no tenant name appears. Co-owners' contributions and distributions are left out.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Packages"],"parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"description":"owner id"},{"name":"tax_year","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"description":"tax year"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/properties/owner_tax_package":{"get":{"operationId":"owner_tax_package_properties","summary":"Owner tax package properties","description":"Owned_from_on and owned_to_on are the first and last day owned in the year so far; ownership_pct is the share on owned_to_on; periods lists each ownership period in the year with its share.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"description":"owner id"},{"name":"tax_year","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},"description":"tax year"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/packages/owner_tax_years":{"get":{"operationId":"owner_tax_package_years","summary":"Owner tax package years","description":"Tax years owner owner_id owned any property in the organization, newest first, up to this year (organization time zone). For the year picker of the tax package; the owner or staff with owners.read.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Packages"],"parameters":[{"name":"owner_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"description":"owner id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/packages/{id}/notice_target":{"get":{"operationId":"package_notice_target","summary":"Package notice target","description":"Front desk (residents.write at the package's property): the details a package_received notice needs, only while the package is waiting.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/bills/pay":{"post":{"operationId":"pay_bills","summary":"Pay bills","description":"Pay a vendor's approved bills [{bill_id, amount_cents}] from a bank account. A vendor failing the compliance check (do_not_use, archived, missing/expired W-9 or COI) is refused unless compliance_override_reason is given (recorded in vendor_compliance_overrides; do_not_use needs org.admin). A vendor or bank account paid in an outside system (pays_outside) is refused, except from record_outside_bill_payments and record_bill_payment_from_bank_line. Returns the vendor payment id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: banking.write, payables.pay.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},"bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"method":{"type":"string","enum":["ach","check","card","echeck","cash","wire","other"],"description":"method"},"allocations":{"description":"allocations"},"paid_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"paid on"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"check_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"check number"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]},"compliance_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"compliance override reason"},{"type":"null"}]}},"required":["vendor_id","bank_account_id","method","allocations"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.write","payables.pay"]}},"/v1/home_purchase_contracts/pay_off":{"post":{"operationId":"pay_off_home_purchase_contract","summary":"Pay off home purchase contract","description":"Bills the payoff of a seller-financed contract on on (default today): the principal not yet billed and the interest accrued on it since the last billed due date, and removes the remaining schedule rows. Complete the contract once the buyer has paid. Returns the amount billed.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["contract_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/waterfall_runs/pay":{"post":{"operationId":"pay_waterfall_run","summary":"Pay waterfall run","description":"Pays an approved waterfall run: posts one owner_distribution entry (Dr OWNER_DISTRIBUTIONS per investor with owner_id = entity owner and contact_id = investor; Cr the run's bank account) from the property fund, blocks trust overdrafts, and creates investor_distributions (pending ACH/check/wire payouts, or reinvested/held per investor election). Returns the journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: investments.distribute.","tags":["Waterfall runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"},"paid_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"paid on"},{"type":"null"}]}},"required":["run_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/reports/payables_summary":{"post":{"operationId":"payables_summary","summary":"Payables summary","description":"Complete AP summary over authorized bill lines matching whole properties, selected units or complete building membership, aged on the organization local date. Payments and credits follow the posted line allocations.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.read.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"unit_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"unit ids"},{"type":"null"}]},"building_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"building ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/contacts/payout_bank_locked":{"post":{"operationId":"payout_bank_locked_contacts","summary":"Payout bank locked contacts","description":"Staff-visible lock flags for requested payees only, including historical and pending bank enrollments; never returns bank credentials.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: owners.read, payables.read.","tags":["Contacts"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"contact ids"}},"required":["contact_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/fixed_assets/{id}/place_in_service":{"post":{"operationId":"place_fixed_asset_in_service","summary":"Place fixed asset in service","description":"Accountant: starts depreciation of a draft asset and generates its schedule. Returns schedule rows created.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.write.","tags":["Fixed assets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The fixed asset's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"placed_in_service_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"placed in service on"}},"required":["placed_in_service_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/portfolios/assistant_query":{"post":{"operationId":"portfolio_assistant_query","summary":"Portfolio assistant query","description":"Other organizations nothing). Staff with ai.use in org_id; at most 200 rows. Returns {columns, rows, row_count, truncated, elapsed_ms}.\n\nReturns { result }.\n\nNeeds one of: ai.use.","tags":["Portfolios"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sql":{"type":"string","maxLength":100000,"description":"sql"},"max_rows":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max rows"},{"type":"null"}]}},"required":["sql"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["ai.use"]}},"/v1/properties/portfolio_comparison":{"post":{"operationId":"portfolio_property_comparison","summary":"Portfolio property comparison","description":"One row per property for the month of month_on (default: the org's current month): units and occupied units (models, down and off-market units excluded from the denominator), charges due in the month and what receipt allocations collected on them (current-period collection; prior-period recoveries are not counted), tenant arrears and subsidy receivable apart as of the org's today, NOI actual vs approved budget for the month (accrual), overdue work orders and the top needs-attention kind. Portfolio percentages must be computed from the totals, never by averaging these rows. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"month_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/positive_pay_file":{"get":{"operationId":"positive_pay_file","summary":"Positive pay file","description":"Banking (banking.read, org-wide): the data of one positive pay issue file: the batch, its checks (issue and void records) and the bank account's CSV layout. The web renders the CSV from it.\n\nReturns { result }.\n\nNeeds one of: banking.read.","tags":["Reports"],"parameters":[{"name":"batch_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"description":"batch id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/assessment_runs/post":{"post":{"operationId":"post_assessment_run","summary":"Post assessment run","description":"Posts the assessment charges of one due date of an approved schedule to every homeowner account (idempotent). Returns the assessment_runs id. Requires associations.assess.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.assess.","tags":["Assessment runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assessment_schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assessment schedule id"},"due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},"charge_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"charge date"},{"type":"null"}]}},"required":["assessment_schedule_id","due_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/cam_reconciliations/{id}/post":{"post":{"operationId":"post_cam_reconciliation","summary":"Post a cam reconciliation","description":"Posts an approved reconciliation: per tenant, a receivables charge for a positive true-up or a credit for a negative one (charge type = pool reconciliation type), dated true_up_due_on, idempotent by line. posted_at stamps posted_at (default now). Returns documents posted. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["CAM reconciliations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The cam reconciliation's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"posted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"posted at"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/charges/post":{"post":{"operationId":"post_charge","summary":"Post charge","description":"Add a one-off charge to a lease. reference is free text (invoice or bill number); source tags where it came from: manual (default), utility_billing, bill_chargeback or import. Tells the lease's tenants (charge_posted, 00100) unless it is an import. Returns the charge id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Charges"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"charge type id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"charge_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"charge date"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["manual","recurring","late_fee","nsf_fee","deposit_deduction","bill_chargeback","utility_billing","import","system","move_in","lease_transfer","cam_reconciliation","percentage_rent"],"description":"source"},{"type":"null"}]}},"required":["lease_id","charge_type_id","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/charges/post_homeowner":{"post":{"operationId":"post_homeowner_charge","summary":"Post homeowner charge","description":"Manual one-off charge on a homeowner account (late fee, legal fee, chargeback). Requires associations.assess.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.assess.","tags":["Charges"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"homeowner_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"charge type id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"charge_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"charge date"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["homeowner_account_id","charge_type_id","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/actions/post_mitchell_lama_surcharges":{"post":{"operationId":"post_mitchell_lama_surcharges","summary":"Post mitchell lama surcharges","description":"Posts the month's surcharge charge (type ML_SURCHARGE, created on the rent income account when missing) to every lease of the program whose latest received affidavit carries a surcharge starting by that month. A lease already charged for the month (from any affidavit) is skipped. Returns the number of charges posted.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mitchell_lama_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"mitchell lama program id"},"month":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month"}},"required":["mitchell_lama_program_id","month"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/opening_balance_batches/post":{"post":{"operationId":"post_opening_balance_batch","summary":"Post opening balance batch","description":"Posts a draft opening balance batch as one journal entry (entry_type opening_balance, basis both) after checking it balances in total and per property fund. Requires imports.run and gl.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.write, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","imports.run"]}},"/v1/owner_distributions/post":{"post":{"operationId":"post_owner_distributions","summary":"Post owner distributions","description":"Post a draft distribution run to the ledger. Requires owners.distribute and access to every property in the run.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.distribute.","tags":["Owner distributions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"}},"required":["run_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute"]}},"/v1/cam_statements/prepare":{"post":{"operationId":"prepare_cam_statements","summary":"Prepare CAM statements","description":"Prepares a draft statement for each tenant of an approved or posted reconciliation. Returns the statements added.\n\nReturns { result }.\n\nNeeds one of: receivables.write.","tags":["CAM statements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_reconciliation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam reconciliation id"}},"required":["cam_reconciliation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/announcement_recipients/preview":{"post":{"operationId":"preview_announcement_recipients","summary":"Preview announcement recipients","description":"Who an announcement with these audiences (announcement_audiences rows as JSON, without contacts) and channels would reach, before it is created. One row per recipient with the outside channels it would go out on (delivers_on: email, sms, voice, or push to a registered device) and, for each other channel, why not (not_sent: [{channel, reason}], reason preferred_other = the person's preferred channel replaces it, preference_off, no_address, opted_out, suppressed or no_device). Everyone also gets the in-app notice.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: communications.broadcast.","tags":["Announcement recipients"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audiences":{"description":"audiences"},"channels":{"type":"array","items":{"type":"string","enum":["in_app","push","email","sms","voice"]},"description":"channels"},"priority":{"anyOf":[{"type":"string","enum":["low","normal","high","urgent"],"description":"priority"},{"type":"null"}]}},"required":["audiences","channels"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]}},"/v1/reports/preview_rent_changes":{"post":{"operationId":"preview_rent_changes","summary":"Preview rent changes","description":"Preview of a bulk rent change (leases list, 00106). For each lease (in the order given, at most 500): the rent in effect the day before effective_on, the new rent (mode percent: value percent up or down; amount: value cents up or down; set: value cents) rounded to the dollar or the cent (a raise down, a decrease up), and skip_reason when the lease is left out: no_access (no leasing.write on its property, or no such lease), not_current, starts_after (skip_on = start), ends_before (skip_on = last day), already_done (this exact change is on file), already_scheduled (skip_on = the change on or after the date), not_positive, no_change, wrong_direction (rounding moves the rent the other way), notice (skip_limit = days needed, skip_on = earliest date), rent_control (skip_limit = cap percent), per_year (skip_limit = increases allowed) or rule. The apply step calls schedule_rent_change for each row without a skip_reason.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.write.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"lease ids"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"mode":{"type":"string","maxLength":100000,"description":"mode"},"value":{"type":"number","description":"value"},"round_to_dollar":{"anyOf":[{"type":"boolean","description":"round to dollar"},{"type":"null"}]}},"required":["lease_ids","effective_on","mode","value"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/workflow_automations/preview":{"get":{"operationId":"preview_workflow_automation","summary":"Preview workflow automation","description":"Who a date-anchored automation would hit on on (default today): each current lease whose anchor date matches (with repeats), whether it would start (off, overridden, or stopped by its leading conditions, with the reason). Balances appear in reasons only for staff with receivables.read on the property. Read only. Empty for event triggers.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.read, receivables.read.","tags":["Workflow automations"],"parameters":[{"name":"automation_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"automation id"},"description":"automation id"},{"name":"on","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read","receivables.read"]}},"/v1/vendor_payments/print_checks":{"post":{"operationId":"print_vendor_payment_checks","summary":"Print vendor payment checks","description":"Requires payables.pay or banking.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: banking.write, payables.pay.","tags":["Vendor payments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.write","payables.pay"]}},"/v1/assets/property_repairs":{"get":{"operationId":"property_asset_repairs","summary":"Property asset repairs","description":"Asset_repair_history for every piece of equipment at a property in one call (asset_id on each row), so the Equipment tab reads once instead of once per asset. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Assets"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"},{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"months"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/properties/{id}/is_nyc":{"get":{"operationId":"property_is_nyc","summary":"Property is NYC","description":"True when the property (as the caller sees it) is in New York City: a five-borough address or NYC ids on it or one of its buildings. Shows the HPD tab and the unit's HPD section.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The property's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/property_open":{"get":{"operationId":"property_open_bills","summary":"Property open bills","description":"Unpaid bills at one property by due date with this property's share of what is still open (a bill split across properties counts its lines here), at most 200. The same amounts cash_forecast counts. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Bills"],"parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"description":"property id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/properties/{id}/readiness":{"get":{"operationId":"property_readiness","summary":"Property readiness","description":"Readiness of one property by function, so the site team can start on work orders while accounting finishes conversion: profile (units exist, no \"I don't know yet\" fields), documents (unclassified or unextracted files and open review cards), maintenance (staff assignment and preferred vendors), leasing (lease-to-ledger discrepancies), accounting (cutoff date, posted opening balance lines for this property, a completed bank reconciliation, open accountant cards), payments (an active routing rule to an active processor account for this property or the whole organization). status: ready, review_needed, blocked or not_activated; detail is a key the app words. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The property's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/property_tax_benefits/status":{"get":{"operationId":"property_tax_benefit_status","summary":"Property tax benefit status","description":"Each NYC property tax benefit on a date: the benefit percent and amount this year (full years at 100%, then even phase-out steps), the year-by-year schedule, and a status: not_started, active, phasing_out, expiring (ends within 24 months) or expired. Requires affordable.read; limited to properties the caller can access.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: affordable.read.","tags":["Property tax benefits"],"parameters":[{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.read"]}},"/v1/properties/{id}/team":{"get":{"operationId":"property_team","summary":"Property team","description":"Staff working on a property on a date (default today) with names and contact details, primary first. Usable by staff who can access the property, by its current owners (owner portal: \"who manages my property\") and by tenants on a current lease there (tenant portal: \"who manages my building\"). Portal users see today's team only; superseded assignments are never listed.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The property's id."}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/prorate_cents":{"get":{"operationId":"prorate_cents","summary":"Prorate cents","description":"Prorated amount for a partial period: none = full amount; daily_actual = amount x covered days / days in period; daily_30 = amount / 30 x covered days (capped at the amount). Rounded to the cent.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"amount_cents","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"description":"amount cents"},{"name":"coverage_start","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"coverage start"},"description":"coverage start"},{"name":"coverage_end","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"coverage end"},"description":"coverage end"},{"name":"period_start","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start"},"description":"period start"},{"name":"period_end","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end"},"description":"period end"},{"name":"rule","in":"query","required":true,"schema":{"type":"string","enum":["none","daily_actual","daily_30"],"description":"rule"},"description":"rule"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/document_template_versions/publish":{"post":{"operationId":"publish_document_template_version","summary":"Publish document template version","description":"Publishes a draft version (immutable from now on) and makes it the template's current version. documents.write.\n\nReturns { ok: true }.\n\nNeeds one of: documents.write.","tags":["Document template versions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"version id"}},"required":["version_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/loan_reserve_draws/pull_bills":{"post":{"operationId":"pull_loan_reserve_draw_bills","summary":"Pull loan reserve draw bills","description":"Adds to a draft draw every paid bill dated in its period with lines at its property on the loan's eligible accounts (property_loan_reserve_accounts) that is in no other draw, each for those lines only. Returns the number of bills added.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Loan reserve draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"}},"required":["draw_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/purchase_orders/awaiting_my_approval":{"get":{"operationId":"purchase_orders_awaiting_my_approval","summary":"Purchase orders awaiting my approval","description":"The ids of the purchase orders in the org that the caller can approve now: pending approval, payables.approve on the PO's property, and every required owner approval in, as approve_purchase_order requires. Empty for anyone else.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.approve.","tags":["Purchase orders"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/receipts/{id}/reallocate":{"post":{"operationId":"reallocate_receipt","summary":"Reallocate a receipt","description":"Move a receipt's money to different charges ([{charge_id, amount_cents}]; null = FIFO).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Receipts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The receipt's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allocations":{"description":"allocations"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["allocations"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/packages/{id}/reassign":{"post":{"operationId":"reassign_package","summary":"Reassign a package","description":"Front desk: a package logged to the wrong unit or person, or to nobody. Moves it to a unit at the same property (its current primary tenant unless a contact is given; a name alone drops the old lease) and back to not yet notified, and replaces the old pickup code with an unknown one, so the new resident can be told and sent their own. Returns the matched contact id, or null when nobody lives there.\n\nReturns { result }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"recipient_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"recipient contact id"},{"type":"null"}]},"recipient_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"recipient name"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/bills/rebill_utility_shares":{"post":{"operationId":"rebill_utility_bill_shares","summary":"Rebill utility bill shares","description":"Charges each lease its prorated share of a unit utility statement (utility_bill_lease_shares not yet billed), one charge per lease, idempotent per share. Marks the statement rebilled when every share is charged. Returns the number of charges posted. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"utility_bill_received_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility bill received id"},"charge_type_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"charge type id"},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]}},"required":["utility_bill_received_id","charge_type_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/work_order_ratings/recent":{"get":{"operationId":"recent_work_order_ratings","summary":"Recent work order ratings","description":"The latest resident ratings (newest first, at most 50) of one vendor's or one technician's work orders, with the comment and the work order. Only work orders the caller can see. The resident is not named.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: maintenance.read.","tags":["Work order ratings"],"parameters":[{"name":"vendor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"user id"},{"type":"null"}]}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/application_decisions/record":{"post":{"operationId":"record_application_decision","summary":"Record application decision","description":"Records an approve / conditionally approve / deny decision (superseding any previous one) and sets the application status. Denials and conditional approvals require reasons and are adverse actions: send the notice and call record_adverse_action_notice. Requires screening.run.\n\nReturns { result }.\n\nNeeds one of: screening.run.","tags":["Application decisions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"application_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"application id"},"decision":{"type":"string","enum":["approved","conditionally_approved","denied"],"description":"decision"},"reasons":{"anyOf":[{"type":"array","items":{"type":"string","enum":["credit_history","insufficient_credit_history","insufficient_income","unverifiable_income","rental_history","eviction_history","criminal_history","incomplete_application","unverifiable_information","occupancy_limit","other"]},"description":"reasons"},{"type":"null"}]},"reasons_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"reasons text"},{"type":"null"}]},"conditions_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"conditions text"},{"type":"null"}]},"additional_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"additional deposit cents"},{"type":"null"}]},"requires_guarantor":{"anyOf":[{"type":"boolean","description":"requires guarantor"},{"type":"null"}]},"approved_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"approved rent cents"},{"type":"null"}]},"screening_request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"screening request id"},{"type":"null"}]},"consumer_reporting_agency":{"anyOf":[{"type":"string","maxLength":100000,"description":"consumer reporting agency"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["application_id","decision"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/reports/record_collections_credit":{"post":{"operationId":"record_collections_credit_report","summary":"Record collections credit report","description":"Records that the agency reported the debt to the credit bureaus (first report date kept) and the agency's account number for it. Requires receivables.write on the property.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Reports"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collections_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"collections account id"},"reported_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reported on"},{"type":"null"}]},"agency_account_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency account number"},{"type":"null"}]}},"required":["collections_account_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/collections_recoveries/record":{"post":{"operationId":"record_collections_recovery","summary":"Record collections recovery","description":"Logs an amount a collection agency recovered on a collections account: gross, commission and the receipt that put the money on the tenant ledger. Keeps collections_accounts.recovered_cents in sync and marks it paid_in_full once recoveries reach the placed amount. Place accounts with send_to_collections.\n\nReturns { result }.\n\nNeeds one of: receivables.write.","tags":["Collections recoveries"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collections_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"collections account id"},"gross_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"gross amount cents"},"commission_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"commission cents"},{"type":"null"}]},"recovered_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"recovered on"},{"type":"null"}]},"receipt_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"receipt id"},{"type":"null"}]},"is_remitted_by_agency":{"anyOf":[{"type":"boolean","description":"is remitted by agency"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["collections_account_id","gross_amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/record_eviction_defendant_service":{"post":{"operationId":"record_eviction_defendant_service","summary":"Record eviction defendant service","description":"Records that the summons was served on an eviction defendant (served_on, method). Requires legal.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: legal.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"defendant_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"defendant id"},"served_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"served on"},{"type":"null"}]},"service_method":{"anyOf":[{"type":"string","maxLength":100000,"description":"service method"},{"type":"null"}]}},"required":["defendant_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/actions/record_extra_principal":{"post":{"operationId":"record_extra_principal","summary":"Record extra principal","description":"Bills an extra principal payment now (a HOME_LOAN_PRINCIPAL charge the buyer pays like any charge) and re-amortizes the schedule rows not yet billed over the same remaining months, so the payment drops and the term stays. Refused above the principal not yet billed. Returns the charge id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["contract_id","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/hap_payments/record":{"post":{"operationId":"record_hap_payment","summary":"Record HAP payment","description":"Records a housing authority HAP payment itemized by lease: items [{lease_id, amount_cents, household_certification_id?, description?}] must total amount_cents (the net cash). Positive items post a receipt (payer = housing authority) applied only to that lease's open subsidy charges of this contract (Cr AR_SUBSIDY, 00152); any excess is a separate lease-less receipt of the housing authority, never the tenant's money; Negative items (recoveries) are processed after the positive ones: they take back the housing-authority payments of that lease's newest subsidy charges (a receipt_refunds row on the earlier receipt whose cash side is this payment's undeposited funds / processor clearing, never the bank account an earlier deposit put it in; the netted total is recorded on this payment's receipts in receipts.netted_recovery_cents so they are deposited net, and the payment must net above zero, 00043) and credit the subsidy charges they had paid (Dr SUBSIDY_RENT_INCOME / Cr AR_SUBSIDY), recorded in hap_payment_item_recoveries; only an unmatched rest posts Dr SUBSIDY_RENT_INCOME / Cr cash. Requires receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["HAP payments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hap_contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},"period_month":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period month"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"items":{"description":"items"},"received_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"received on"},{"type":"null"}]},"method":{"anyOf":[{"type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"],"description":"method"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]}},"required":["hap_contract_id","period_month","amount_cents","items"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/record_homeowner_payment":{"post":{"operationId":"record_homeowner_payment","summary":"Record homeowner payment","description":"Staff entries require receivables.write and an offline method with no processor transaction. Sets account and unit dimensions before posting.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"homeowner_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"method":{"type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"],"description":"method"},"received_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"received on"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"payment_transaction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"payment transaction id"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]}},"required":["homeowner_account_id","amount_cents","method"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/inventory_transactions/record":{"post":{"operationId":"record_inventory_transaction","summary":"Record inventory transaction","description":"Record a stock receipt, return, signed adjustment, or a transfer between locations (pass transfer_out/transfer_in with to_inventory_location_id; both rows are written). Requires maintenance.write. Returns the (first) inventory_transactions.id.\n\nReturns { result }.\n\nNeeds one of: maintenance.write.","tags":["Inventory transactions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inventory_item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inventory item id"},"inventory_location_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inventory location id"},"transaction_type":{"type":"string","enum":["receipt","issue","return","adjustment","transfer_in","transfer_out"],"description":"transaction type"},"quantity":{"type":"number","description":"quantity"},"unit_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"unit cost cents"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"to_inventory_location_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"to inventory location id"},{"type":"null"}]}},"required":["inventory_item_id","inventory_location_id","transaction_type","quantity"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/investor_commitments/record":{"post":{"operationId":"record_investor_commitment","summary":"Record investor commitment","description":"Adds an investor to an offering's pipeline (indicated, soft or hard). Checks offering status, minimum investment, max raise and accreditation as of the commitment date (via trigger). Units default to amount / unit price. on dates the status reached (indicated_on / soft_committed_on / hard_committed_on; default today).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: investments.write.","tags":["Investor commitments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offering_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"offering id"},"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"status":{"anyOf":[{"type":"string","enum":["indicated","soft","hard","funded","withdrawn","rejected"],"description":"status"},{"type":"null"}]},"units":{"anyOf":[{"type":"number","description":"units"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["offering_id","investor_id","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/investor_contributions/record":{"post":{"operationId":"record_investor_contribution","summary":"Record investor contribution","description":"Records capital received from an investor, against a capital call allocation (property and bank come from the call) or directly (share_class_id, property_id, bank_account_id). Posts Dr bank / Cr OWNER_CONTRIBUTIONS (owner_id = entity owner, contact_id = investor) in the property fund, credits units to investor_positions, updates allocation / call / commitment status. source = opening_balance records converted history without a journal entry. Requires investments.distribute.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: investments.distribute.","tags":["Investor contributions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"contributed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"contributed on"},{"type":"null"}]},"capital_call_allocation_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"capital call allocation id"},{"type":"null"}]},"share_class_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"share class id"},{"type":"null"}]},"commitment_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"commitment id"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["capital_call","direct","opening_balance","transfer_in"],"description":"source"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"payment_transaction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"payment transaction id"},{"type":"null"}]}},"required":["investor_id","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/actions/record_legal_rent":{"post":{"operationId":"record_legal_rent","summary":"Record legal rent","description":"Adds a dated legal regulated rent with its reason (rgb_renewal, vacancy, iai, mci, registration, other) and updates the unit's legal rent to the newest row.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"legal_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"legal rent cents"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]}},"required":["unit_id","effective_on","legal_rent_cents","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/receipts/record_manual":{"post":{"operationId":"record_manual_receipt","summary":"Record manual receipt","description":"Record a check, money order, cash or manual ACH payment on a lease. Refuses methods blocked by a lease_payment_restrictions row, and personal checks / ACH when certified funds are required. Applied FIFO unless allocations [{charge_id, amount_cents}] is given; the rest is prepaid. Goes to undeposited funds until a bank deposit is recorded. Returns the receipt id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Receipts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"method":{"type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"],"description":"method"},"received_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"received on"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"payer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"payer name"},{"type":"null"}]},"allocations":{"anyOf":[{"description":"allocations"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]}},"required":["lease_id","amount_cents","method"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/mitchell_lama_affidavits/record":{"post":{"operationId":"record_mitchell_lama_affidavit","summary":"Record mitchell lama affidavit","description":"Records a received income affidavit (date, household size, household income) and calculates the surcharge: the limit is the lease rent x 12 x the program multiple, the excess over it in percent picks the band of the schedule in force on the date received, and the monthly surcharge is that band's percent of rent, from the next month. Refused once a surcharge is charged on it.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Mitchell lama affidavits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"affidavit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"affidavit id"},"received_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"received on"},"household_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household size"},"household_income_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"household income cents"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["affidavit_id","received_on","household_size","household_income_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/record_mitchell_lama_offer_response":{"post":{"operationId":"record_mitchell_lama_offer_response","summary":"Record mitchell lama offer response","description":"Records the applicant's answer to an offer. Accepted makes the applicant housed, declined marks the entry declined (it can get another offer), expired puts the applicant back to waiting.\n\nReturns { ok: true }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offer_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"offer id"},"outcome":{"type":"string","enum":["pending","accepted","declined","expired"],"description":"outcome"},"responded_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"responded on"}},"required":["offer_id","outcome","responded_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/record_move_in":{"post":{"operationId":"record_move_in","summary":"Record move in","description":"Records the physical move-in: lease and tenant move-in dates, completes the move_in event and marks the unit occupied. The move-in date can't be before the lease start. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move in on"},{"type":"null"}]},"keys_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"keys count"},{"type":"null"}]}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/record_move_out":{"post":{"operationId":"record_move_out","summary":"Record move out","description":"Records the physical move-out: lease and tenant move-out dates, completes the move_out event and notice, and ends the lease (terminated with termination_reason for early ends such as eviction, abandonment or buyout; expired otherwise once its end date has passed), stamped at effective_at. rows with proration_rule none keep the full period. A fixed-term lease that moves out early without a termination stays billed to its end. notes is kept as a staff-only lease note. Puts the unit into make_ready and records the deposit return deadline (move-out + the jurisdiction's deposit_return_days) as a lease compliance item. Security deposit disposition and final charges are handled by receivables. Requires leasing.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"move_out_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move out on"},{"type":"null"}]},"termination_reason":{"anyOf":[{"type":"string","enum":["early_termination","eviction","mutual_agreement","abandonment","death","military_orders","domestic_violence","landlord_sale","unit_transfer","other"],"description":"termination reason"},{"type":"null"}]},"keys_returned":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"keys returned"},{"type":"null"}]},"forwarding_address_text":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding address text"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"effective_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"effective at"},{"type":"null"}]}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/record_nspire_deficiencies":{"post":{"operationId":"record_nspire_deficiencies","summary":"Record NSPIRE deficiencies","description":"Records NSPIRE deficiency severity and correction on items of an inspection, before or after it is completed: items = [{\"id\", \"severity\" (life_threatening, severe, moderate, low; null clears), \"corrected\" (true sets corrected_at now, false clears it)}]. The correction deadline follows the severity (trigger). Requires compliance.write or maintenance.write at the property. Returns the number of items changed.\n\nReturns { result }.\n\nNeeds one of: compliance.write, maintenance.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inspection_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},"items":{"description":"items"}},"required":["inspection_id","items"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write","maintenance.write"]}},"/v1/actions/record_offline_payment":{"post":{"operationId":"record_offline_payment","summary":"Record offline payment","description":"Staff \"Receive payment\" for an offline instrument (receivables.write on every lease's property): check, cash, money_order or cashiers_check. In one transaction: saves the instrument details (check number, dated on, payer, drawer bank, routing, account number -> last 4 + fingerprint only, MICR line -> masked, memo line, front/back photos by storage path <org_id>/checks/<file> that the caller uploaded, or a readable document id), runs the duplicate-check guard (23505 unless duplicate_override_reason), refuses a personal check when a lease requires certified funds (unless certified_funds_override_reason), and records one receipt per lease through record_manual_receipt (UNDEPOSITED_FUNDS; FIFO or allocations [{charge_id, amount_cents}]); cash gets the next cash receipt number. One lease: lease_id (+ allocations, contact_id). One check paying several leases: lease_id null and splits [{lease_id, amount_cents, allocations?, contact_id?, memo?}] adding up to amount_cents. Pass instrument_id to confirm an existing draft (a payment batch line); the retired ocr_* columns are never used for posting (decision 6.4, 00041). Idempotent by idempotency_key for matching instrument and split details, with permission rechecked on every split. Returns (receipt_id of the first split, instrument_id, cash_receipt_number, receipt_ids).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"method":{"type":"string","enum":["ach","card","check","cash","money_order","cashiers_check","cash_barcode","wallet","security_deposit","other"],"description":"method"},"received_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"received on"},{"type":"null"}]},"check_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"check number"},{"type":"null"}]},"check_dated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"check dated on"},{"type":"null"}]},"payer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"payer name"},{"type":"null"}]},"drawer_bank_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"drawer bank name"},{"type":"null"}]},"routing_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"routing number"},{"type":"null"}]},"account_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"account number"},{"type":"null"}]},"account_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"account last4"},{"type":"null"}]},"micr_line":{"anyOf":[{"type":"string","maxLength":100000,"description":"micr line"},{"type":"null"}]},"memo_line":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo line"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"allocations":{"anyOf":[{"description":"allocations"},{"type":"null"}]},"instrument_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"instrument id"},{"type":"null"}]},"front_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"front storage path"},{"type":"null"}]},"back_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"back storage path"},{"type":"null"}]},"front_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"front document id"},{"type":"null"}]},"back_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"back document id"},{"type":"null"}]},"capture_method":{"anyOf":[{"type":"string","enum":["manual","photo","scanner"],"description":"capture method"},{"type":"null"}]},"payee_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"payee name"},{"type":"null"}]},"duplicate_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"duplicate override reason"},{"type":"null"}]},"certified_funds_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"certified funds override reason"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]},"splits":{"anyOf":[{"description":"splits"},{"type":"null"}]}},"required":["lease_id","amount_cents","method"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/record_outreach_outcome":{"post":{"operationId":"record_outreach_outcome","summary":"Record outreach outcome","description":"Records or corrects the outcome of an outreach call or text (for example after the tenant called back).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"outcome":{"type":"string","enum":["promise_to_pay","already_paid","callback_requested","will_quote","declined","no_response","voicemail","opted_out"],"description":"outcome"},"promise_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"promise amount cents"},{"type":"null"}]},"promise_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"promise on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["item_id","outcome"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/record_outside_payments":{"post":{"operationId":"record_outside_bill_payments","summary":"Record outside bill payments","description":"Records payments the outside payment system made, from its paid invoices file. rows [{row, invoice_number, vendor_code? (outside vendor id), vendor_name?, amount_cents, paid_on, payment_number (check or ACH number), method?}]. Each row finds the vendor's approved bill with that invoice number; rows with the same vendor, payment number, date and method become one vendor payment from bank_account_id through pay_bills (idempotent: the same file twice records nothing new). A group that fails (more than the open amount, a closed month) is reported and the rest still post. Returns [{row, status posted|already_recorded|not_found|invalid|error, bill_id?, vendor_payment_id?, message?}].\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.pay.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"rows":{"description":"rows"}},"required":["bank_account_id","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.pay"]}},"/v1/properties/{id}/record_insurance":{"post":{"operationId":"record_property_insurance","summary":"Record property insurance","description":"Records a property insurance policy (hazard, dwelling fire, liability, umbrella, flood...) entered from a declarations page or certificate as verified, links the document (the caller needs documents.write and read access to it), satisfies the property's insurance compliance items, and raises findings when liability coverage is below the requirement or a required additional insured is missing. Returns insurance_policies.id.\n\nReturns { result }.\n\nNeeds one of: compliance.write.","tags":["Properties"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The property's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["property_hazard","landlord_dwelling_fire","general_liability","umbrella","flood","earthquake","wind_hail","builders_risk","renters","liability_only_renters"],"description":"kind"},"carrier_name":{"type":"string","maxLength":100000,"description":"carrier name"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"expires_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},"policy_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"policy number"},{"type":"null"}]},"dwelling_coverage_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"dwelling coverage cents"},{"type":"null"}]},"liability_coverage_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"liability coverage cents"},{"type":"null"}]},"deductible_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deductible cents"},{"type":"null"}]},"premium_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"premium cents"},{"type":"null"}]},"is_additional_insured_listed":{"anyOf":[{"type":"boolean","description":"is additional insured listed"},{"type":"null"}]},"additional_insured_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"additional insured name"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["kind","carrier_name","effective_on","expires_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/property_valuations/record":{"post":{"operationId":"record_property_valuation","summary":"Record property valuation","description":"Records the value of a whole property on a date, its source and, optionally, the mortgage balance, the method (valuation_method, cap_rate_pct, noi_basis_cents), the appraiser and the appraisal document (staff only). Staff with properties.write on the property, or an owner who owns it today (entered_by_owner_id is then that owner record). The date cannot be in the future.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Property valuations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"valued_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"valued on"},"value_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"value cents"},"source":{"type":"string","enum":["estimate","appraisal","purchase_price"],"description":"source"},"mortgage_balance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"mortgage balance cents"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"valuation_method":{"anyOf":[{"type":"string","maxLength":100000,"description":"valuation method"},{"type":"null"}]},"cap_rate_pct":{"anyOf":[{"type":"number","description":"cap rate pct"},{"type":"null"}]},"noi_basis_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"noi basis cents"},{"type":"null"}]},"appraiser_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"appraiser name"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["property_id","valued_on","value_cents","source"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/actions/record_property_valuations":{"post":{"operationId":"record_property_valuations","summary":"Record property valuations","description":"A quarter-end mark, one value row per property on valued_on from [{property_id, value_cents, source, valuation_method, cap_rate_pct, noi_basis_cents, appraiser_name, note}]. Rows without a value above zero are skipped. Returns how many values were recorded.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"valued_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"valued on"},"rows":{"description":"rows"}},"required":["valued_on","rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/renovation_notices/record":{"post":{"operationId":"record_renovation_notice","summary":"Record renovation notice","description":"Records a notice given to the household of a renovation unit (kind, date sent, delivery: hand, mail, email or posted).\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Renovation notices"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"renovation_unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renovation unit id"},"notice_type":{"type":"string","enum":["advance","access","relocation","return","other"],"description":"notice type"},"sent_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"sent on"},"delivery":{"anyOf":[{"type":"string","maxLength":100000,"description":"delivery"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["renovation_unit_id","notice_type","sent_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/rent_comparability_studies/record":{"post":{"operationId":"record_rent_comparability_study","summary":"Record rent comparability study","description":"Records a rent comparability study with its date, appraiser and market rents [{bedrooms, market_rent_cents}], and links it to the property's open renewals (or only the given contract's). Returns the study id.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Rent comparability studies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"appraiser_name":{"type":"string","maxLength":100000,"description":"appraiser name"},"rents":{"description":"rents"},"appraiser_firm":{"anyOf":[{"type":"string","maxLength":100000,"description":"appraiser firm"},{"type":"null"}]},"hap_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["property_id","effective_on","appraiser_name","rents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/record_rent_reporting_result":{"post":{"operationId":"record_rent_reporting_result","summary":"Record rent reporting result","description":"Rent reporting staff (receivables.rent_reporting, organization-wide): records the provider's answer to a sent batch: the listed enrollments were rejected with the reason, everyone else accepted.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"rejected_enrollment_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"rejected enrollment ids"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/record_resale_certificate":{"post":{"operationId":"record_resale_certificate","summary":"Record resale certificate","description":"Stores the built certificate (the PDF under <org>/resale/<request>/ in the documents bucket and the data it shows) and the bundle documents; the request is ready for review. Building again replaces it until it is sent.\n\nReturns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"},"as_of":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"storage_path":{"type":"string","maxLength":100000,"description":"storage path"},"data":{"description":"data"},"document_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"document ids"},{"type":"null"}]},"staff_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"staff notes"},{"type":"null"}]}},"required":["request_id","as_of","storage_path","data"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/actions/record_self_help_outcome":{"post":{"operationId":"record_self_help_outcome","summary":"Record self help outcome","description":"Resident (own lease, 00137): records \"This fixed it\" (fixed) or \"I still need help\" (needs_help) with the tips they saw. Returns the outcome id the request form links later.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"category_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},"outcome":{"type":"string","maxLength":100000,"description":"outcome"},"tips":{"anyOf":[{"description":"tips"},{"type":"null"}]}},"required":["lease_id","category_id","outcome"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/tax_form_1099_file_downloads/record":{"post":{"operationId":"record_tax_form_1099_file_download","summary":"Record tax form 1099 file download","description":"Final or filed forms only), writes the download row (tax_form_1099_file_downloads, audited) and returns its id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Tax form 1099 file downloads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_form_1099_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"tax form 1099 ids"}},"required":["tax_form_1099_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/trust_audit_packages/record_download":{"post":{"operationId":"record_trust_audit_package_download","summary":"Record trust audit package download","description":"The web app then signs a short link as the same person.\n\nReturns { result }.\n\nNeeds one of: banking.read, gl.read.","tags":["Trust audit packages"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"package_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"package id"}},"required":["package_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read"]}},"/v1/bills/record_utility_received":{"post":{"operationId":"record_utility_bill_received","summary":"Record utility bill received","description":"Records a provider statement for a utility account. With create_bill it creates the payables bill for the current charges (else the total): vendor = the provider's vendor, coded to the account's expense account, property and unit, with the bill image filed on it. Past dues and transferred balances are kept on the statement as exceptions, never paid automatically. A trigger splits unit statements between leases and the owner. Requires payables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"utility_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility account id"},"statement_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"statement on"},"service_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"service start on"},"service_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"service end on"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"usage_quantity":{"anyOf":[{"type":"number","description":"usage quantity"},{"type":"null"}]},"usage_unit":{"anyOf":[{"type":"string","maxLength":100000,"description":"usage unit"},{"type":"null"}]},"bill_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bill id"},{"type":"null"}]},"create_bill":{"anyOf":[{"type":"boolean","description":"create bill"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"source"},{"type":"null"}]},"previous_balance_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"previous balance cents"},{"type":"null"}]},"payments_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"payments cents"},{"type":"null"}]},"past_due_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"past due cents"},{"type":"null"}]},"transferred_in_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"transferred in cents"},{"type":"null"}]},"current_charges_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"current charges cents"},{"type":"null"}]}},"required":["utility_account_id","statement_on","service_start_on","service_end_on","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/vendor_rfps/record_bid":{"post":{"operationId":"record_vendor_rfp_bid","summary":"Record vendor rfp bid","description":"Records a vendor's bid (amount in minor units and notes) on a vendor RFP invitation, or declined true when the vendor will not bid. A later call replaces the earlier bid. Not allowed once the RFP is awarded or canceled.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Vendor rfps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"invitation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"invitation id"},"bid_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bid amount cents"},{"type":"null"}]},"bid_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"bid notes"},{"type":"null"}]},"declined":{"anyOf":[{"type":"boolean","description":"declined"},{"type":"null"}]}},"required":["invitation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/violation_hearings/{id}/record_outcome":{"post":{"operationId":"record_violation_hearing_outcome","summary":"Record violation hearing outcome","description":"Records the board's hearing decision, dated decided_at (default the hearing's scheduled time); dismissed closes the case on that date. Requires associations.write.\n\nReturns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Violation hearings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The violation hearing's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["pending","upheld","modified","dismissed","continued","no_show"],"description":"outcome"},"decision_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"decision notes"},{"type":"null"}]},"homeowner_attended":{"anyOf":[{"type":"boolean","description":"homeowner attended"},{"type":"null"}]},"decided_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"decided at"},{"type":"null"}]}},"required":["outcome"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/reports/recurring_repairs":{"post":{"operationId":"recurring_repairs","summary":"Recurring repairs","description":"Recurring repairs as of as_of (default today, org time): work orders of one issue type (maintenance category) opened in the last window_months (preventive work orders and canceled ones excluded), grouped by equipment (asset), by unit (no asset), and by building (only when they are in more than one place), where the work orders or the vendor invoices for them (bills linked directly or by line, not draft or void) number at least min_count. Defaults from recurring_repair_settings (3 in 3 months). total_cost_cents = the invoice lines for those work orders. vendor_names = vendors of the work orders and invoices.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"min_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min count"},{"type":"null"}]},"window_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"window months"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/referral_balance_changes":{"get":{"operationId":"referral_balance_changes","summary":"Referral balance changes","description":"The live ledger next to the referral snapshot: the packet balance, payments, new charges and other adjustments posted after the ledger cutoff, today's balance, and the counsel-confirmed case amount, which never changes to match the ledger. Flags a payment received after referral and an adjustment that may affect a referred charge. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"referral_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"referral id"},"description":"referral id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/referral_policy_matches":{"get":{"operationId":"referral_policy_matches","summary":"Referral policy matches","description":"Subsidy shown apart and never counted), unpaid periods, days late of the oldest charge, which thresholds each meets, and a hold_reason (already_with_counsel, payment_plan, open_dispute, referral_open) for accounts that need no new referral. Runs as the caller; the policy page shows counts before activation.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"policy_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"policy id"},"description":"policy id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/refresh_intake_review_items":{"post":{"operationId":"refresh_intake_review_items","summary":"Refresh intake review items","description":"Adds the onboarding review cards a property needs now (never duplicating an open card): conflicting or uncertain document readings, missing deposit support, no current insurance, loans with no statement, unassigned and duplicate documents, a resident receivables vs control account difference, units to confirm and the accounting start date. Returns how many were added. Staff with properties.write.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"}},"required":["property_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/receipts/{id}/refund":{"post":{"operationId":"refund_receipt","summary":"Refund a receipt","description":"Refund part of a manual receipt (e.g. an overpayment returned by check). Returns the journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payments.refund.","tags":["Receipts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The receipt's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"refund_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"refund date"},{"type":"null"}]}},"required":["amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payments.refund"]}},"/v1/refunds/rent_to_own_equity":{"post":{"operationId":"refund_rent_to_own_equity","summary":"Refund rent to own equity","description":"Gives rent-to-own equity back to the buyer, up to the equity paid, as a credit on the lot lease (Dr RTO_EQUITY_INCOME, Cr tenant AR). The credit pays what the buyer owes first; the rest is a credit balance that staff pay out with the existing refund tools. The refunded amount no longer counts toward the price.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Refunds"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["contract_id","amount_cents","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/documents/register":{"post":{"operationId":"register_document","summary":"Register document","description":"Registers a file already uploaded to Storage as a document, with links ([{\"lease_id\": \"...\"}, {\"bill_id\": \"...\"}]), optionally queueing AI extraction. The file must be in bucket documents at <org_id>/<document_id>/<file name> with a new document id (the caller picks it before uploading; it becomes documents.id), and must already be uploaded there by the caller (storage.objects.owner). Sources generated and signed are refused (record_generated_document and esign_complete_envelope only). Staff need documents.write. Tenants, owners and vendors may upload proof documents (insurance, W-9, invoices, IDs, pay stubs...) linked only to their own lease/contact/owner/vendor/application/request; visibility is set to their role. An archived owner or an archived or do-not-use vendor cannot upload. Returns documents.id.\n\nReturns { result }.\n\nNeeds one of: documents.write.","tags":["Documents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"storage_path":{"type":"string","maxLength":100000,"description":"storage path"},"title":{"type":"string","maxLength":100000,"description":"title"},"category":{"type":"string","enum":["lease","addendum","notice","statement","invoice","receipt","w9","insurance_certificate","license","permit","certificate","inspection_report","photo","id","application","disclosure","contract","management_agreement","move_in_checklist","move_out_checklist","pay_stub","bank_statement","tax_form","legal","correspondence","floor_plan","appraisal","other","check_image","deposit_slip","offering_memorandum","property_condition_assessment","rent_roll","purchase_order"],"description":"category"},"mime_type":{"type":"string","maxLength":100000,"description":"mime type"},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"size bytes"},{"type":"null"}]},"sha256":{"anyOf":[{"type":"string","maxLength":100000,"description":"sha256"},{"type":"null"}]},"visibility":{"anyOf":[{"type":"string","enum":["internal","shared_with_tenant","shared_with_owner","shared_with_vendor","shared_with_all_parties"],"description":"visibility"},{"type":"null"}]},"links":{"anyOf":[{"description":"links"},{"type":"null"}]},"request_extraction":{"anyOf":[{"type":"boolean","description":"request extraction"},{"type":"null"}]},"storage_bucket":{"anyOf":[{"type":"string","maxLength":100000,"description":"storage bucket"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["upload","generated","signed","scanned","email","sms","import","integration"],"description":"source"},{"type":"null"}]}},"required":["storage_path","title","category","mime_type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/actions/reinstate_rent_to_own":{"post":{"operationId":"reinstate_rent_to_own","summary":"Reinstate rent to own","description":"Restarts a defaulted rent-to-own contract when the home is still the park's: a new monthly equity charge from the first unbilled billing day on or after on through the original end, the home back to rent_to_own with the buyer as owner. Equity paid before the default still counts, less any refunds; equity charges posted while it was defaulted do not.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["contract_id","on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/packages/{id}/reissue_pickup_code":{"post":{"operationId":"reissue_package_pickup_code","summary":"Reissue package pickup code","description":"Front desk: the resident lost their pickup code. Replaces it (the old one stops working) and returns the new one once, for the notice; the package goes back to not yet notified.\n\nReturns { result }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/bills/{id}/reject":{"post":{"operationId":"reject_bill","summary":"Reject a bill","description":"Reject a pending bill; it returns to draft for correction and resubmission.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.approve.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string","maxLength":100000,"description":"comment"}},"required":["comment"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/capital_project_draws/reject":{"post":{"operationId":"reject_capital_project_draw","summary":"Reject capital project draw","description":"Rejects a submitted or approved (unfunded) draw.\n\nReturns { ok: true }.\n\nNeeds one of: projects.approve.","tags":["Capital project draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["draw_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve"]}},"/v1/actions/reject_change_order":{"post":{"operationId":"reject_change_order","summary":"Reject change order","description":"Rejects a proposed change order.\n\nReturns { ok: true }.\n\nNeeds one of: projects.approve.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"change_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"change order id"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["change_order_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve"]}},"/v1/actions/reject_journal_draft":{"post":{"operationId":"reject_journal_draft","summary":"Reject journal draft","description":"Sends a pending journal entry back to its author with a reason. The author can change it and submit it again.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: gl.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draft id"},"note":{"type":"string","maxLength":100000,"description":"note"}},"required":["draft_id","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/property_reserve_transactions/reject":{"post":{"operationId":"reject_property_reserve_transaction","summary":"Reject property reserve transaction","description":"Rejects a pending reserve deposit or draw (owners.distribute on the property), or withdraws it (its requester, with owners.write). Nothing was posted, so nothing is reversed.\n\nReturns { ok: true }.\n\nNeeds one of: owners.distribute, owners.write.","tags":["Property reserve transactions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"transaction id"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["transaction_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute","owners.write"]}},"/v1/purchase_orders/{id}/reject":{"post":{"operationId":"reject_purchase_order","summary":"Reject a purchase order","description":"Reject a purchase order that waits for approval, with a reason. Refused while an owner approval is still pending. The purchase order goes back to draft for correction and resubmission, the rejection is recorded in purchase_order_rejections, and the submitter is told the reason.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.approve.","tags":["Purchase orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The purchase order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/ti_disbursements/{id}/reject":{"post":{"operationId":"reject_ti_disbursement","summary":"Reject a ti disbursement","description":"Rejects a pending TI draw, releasing its amount back to the allowance. Requires payables.approve.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.approve.","tags":["Ti disbursements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The ti disbursement's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/work_order_estimates/reject":{"post":{"operationId":"reject_work_order_estimate","summary":"Reject work order estimate","description":"Reject a requested/submitted vendor bid.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.dispatch.","tags":["Work order estimates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"estimate_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"estimate id"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["estimate_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/packages/{id}/release":{"post":{"operationId":"release_package","summary":"Release a package","description":"Front desk: hands a package over, checking the pickup code when one was issued.\n\nReturns { ok: true }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"picked_up_by_name":{"type":"string","maxLength":100000,"description":"picked up by name"},"pickup_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"pickup code"},{"type":"null"}]}},"required":["picked_up_by_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/listings/{id}/relist":{"post":{"operationId":"relist_listing","summary":"Relist a listing","description":"Puts a pending listing back on the market, usually after the approval was canceled. Ends only the holds whose application is no longer approved, keeps the others, and refuses while no unit is left. Sets the listing active, which queues every selected channel again. The applications are not changed.\n\nReturns { ok: true }.\n\nNeeds one of: marketing.write.","tags":["Listings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The listing's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/owner_onboardings/remind":{"post":{"operationId":"remind_owner_onboarding","summary":"Remind owner onboarding","description":"Reminds the owner to finish setting up, at most once an hour. Before the owner has a login, a new invitation replaces the old one and its id and one-time token are returned for the caller to email as a notification secret. After that, emails the steps still to do (owner_onboarding_reminder) with a link to the portal setup page and returns no row.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { data, truncated } with at most 1000 rows.\n\nNeeds one of: owners.write.","tags":["Owner onboardings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"onboarding_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"onboarding id"},"expires_in":{"anyOf":[{"type":"string","maxLength":100000,"description":"expires in"},{"type":"null"}]}},"required":["onboarding_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/payment_methods/{id}/remove":{"post":{"operationId":"remove_payment_method","summary":"Remove a payment method","description":"Payer (or staff with receivables.write and org-wide access or a payer at one of their properties, 00148): remove a saved method for future use. Refused when the payer would have no other saved method that can pay now (active and verified). Autopay that uses it, tenant or homeowner, must move to autopay_payment_method_id, a saved method of the same payer (active, verified, allowed by the lease); removing never turns autopay off. Scheduled payments that use it are canceled. Payments from it that are still processing are not touched and finish as usual; the result reports them: {autopay_moved, in_flight_count, in_flight_cents}.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Payment methods"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The payment method's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"autopay_payment_method_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"autopay payment method id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/compliance_items/renew":{"post":{"operationId":"renew_compliance_item","summary":"Renew compliance item","description":"Records new evidence (document, dates, inspection, policy) for a compliance item. A missing item is filled in place; otherwise a new item supersedes the old one (renewal history). The AI audit is queued when a document is attached. Returns the current item id.\n\nReturns { result }.\n\nNeeds one of: compliance.write.","tags":["Compliance items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"completed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"completed on"},{"type":"null"}]},"reference_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference number"},{"type":"null"}]},"issuer":{"anyOf":[{"type":"string","maxLength":100000,"description":"issuer"},{"type":"null"}]},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},{"type":"null"}]},"insurance_policy_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"insurance policy id"},{"type":"null"}]},"vendor_insurance_policy_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor insurance policy id"},{"type":"null"}]}},"required":["item_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/renovation_relocations/costs":{"get":{"operationId":"renovation_relocation_costs","summary":"Renovation relocation costs","description":"Relocation nights and cost by property, project and month between from and to. A night is each date from move-out to the night before the return: the actual return, else the planned one, else today when the household is still away past it. is_actual is true for nights before the return or before as_of (the database date by default); later nights are forecast. room_cents sums the nightly cost and per_diem_cents the per diem owed.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Renovation relocations"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"description":"to"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/credits/rent_freeze":{"get":{"operationId":"rent_freeze_credits","summary":"Rent freeze credits","description":"Staff, under their own row access: the SCRIE/DRIE tax abatement credit per benefit and month from from to through: the lease rent in force on the 1st (legal or preferential, from the rent schedule) minus the frozen rent, never below zero. Months follow the tenancy through renewals of the benefit's lease. Owners match it to the Department of Finance credits.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Credits"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"},{"name":"through","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"through"},"description":"through"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/rent_reporting_batches/file":{"post":{"operationId":"rent_reporting_batch_file","summary":"Rent reporting batch file","description":"Rent reporting staff (receivables.rent_reporting, organization-wide; 00137): builds the batch's file now (nothing is stored) and, while the batch is unsent, records its SHA-256 so mark_rent_reporting_batch_submitted can check the file sent is the file built now.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Rent reporting batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/rent_status_this_month":{"get":{"operationId":"rent_status_this_month","summary":"Rent status this month","description":"Returns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Reports"],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/reports/rent_variance_drivers":{"get":{"operationId":"rent_variance_drivers","summary":"Rent variance drivers","description":"Rental income against budget for one month at the budget's property, split into drivers with no double counting: vacancy (occupied units against budgeted occupancy, at budgeted rent), rate (average rent in force mid-month on the occupied units against the budgeted average rent: achieved rents and scheduled increases that slipped), concessions (concession credits against the budgeted amount) and timing_and_other (the rest: late postings, prorations, other rental charges). Rows budget and actual come first. Without occupancy and average-rent assumptions it returns no_assumptions with the actual drivers. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"budget_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"budget id"},"description":"budget id"},{"name":"month_on","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"month on"},"description":"month on"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/gl_accounts/renumber":{"post":{"operationId":"renumber_gl_accounts","summary":"Renumber GL accounts","description":"Gives GL accounts new numbers in one step ([{gl_account_id, number}]); accounts may swap numbers. Journal lines refer to the account id, so posted history keeps its accounts and only the number shown changes. Returns accounts renumbered.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["GL accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"numbers":{"description":"numbers"}},"required":["numbers"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/loan_reserve_draws/reopen":{"post":{"operationId":"reopen_loan_reserve_draw","summary":"Reopen loan reserve draw","description":"Returns a submitted, unfunded draw to draft so its bills and period can change again.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Loan reserve draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"}},"required":["draw_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/{id}/reopen":{"post":{"operationId":"reopen_work_order","summary":"Reopen a work order","description":"Reopen a completed, verified or canceled work order with a reason (required). Dispatchers (maintenance.dispatch + property access) reopen any of them, by default as assigned when someone is assigned, else new (status may ask for new, assigned, scheduled with a visit window, or in_progress; a canceled one only as new or assigned). The assigned technician or vendor may reopen only their completed work, as in_progress. Clears the completion and verification stamps (the status history keeps who verified and when), counts the reopen (reopen_count, last_reopened_at, last_reopen_reason), writes the reason to the timeline and status history as \"Reopened: <reason>\", moves its service request from closed back to converted (the resident sees it in progress again) and reopens a unit turn task the work order had ticked off. The reason appears on the resident's request timeline, and the residents get a \"Reopened\" notice with it instead of a status notice for the request. Returns the new status.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"},"status":{"anyOf":[{"type":"string","enum":["new","assigned","scheduled","in_progress","on_hold","awaiting_parts","awaiting_approval","completed","verified","canceled"],"description":"status"},{"type":"null"}]}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/integration_external_accounts/replace":{"post":{"operationId":"replace_integration_external_accounts","summary":"Replace integration external accounts","description":"Replaces the other system's chart of accounts of a file export integration with accounts ([{name, type, number}], names unique, first one kept). Existing mappings keep their stored codes and names. Returns accounts stored.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["Integration external accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integration_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"integration id"},"accounts":{"description":"accounts"}},"required":["integration_id","accounts"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/actions/replace_pm_checklist":{"post":{"operationId":"replace_pm_checklist","summary":"Replace PM checklist","description":"Replaces a preventive maintenance schedule's checklist in one transaction: [{label, reading_unit?, requires_photo?}] in order, at most 60, every label non-empty (else nothing changes). Work orders already generated keep their copy. Staff with maintenance.dispatch on the property.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},"steps":{"description":"steps"}},"required":["schedule_id","steps"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/reports/request_not_fixed":{"post":{"operationId":"report_request_not_fixed","summary":"Report request not fixed","description":"Never another unit's work order the request was linked to; assigned when someone is on it, else new; counted in reopen_count with the comment as last_reopen_reason), reopens this request and the work order's own request, and any unit turn task it ticked, and tells staff in the bell (high priority) and the assigned vendor (work_order_update, in the app and as a push, linking to the job). Other residents on the request get the \"Reopened\" notice.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"service_request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},"comment":{"type":"string","maxLength":100000,"description":"comment"}},"required":["service_request_id","comment"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/rows":{"post":{"operationId":"report_rows","summary":"Report rows","description":"Runs one registered report (reports.<key>) once with the named arguments in args (each cast to the report's declared type) and returns {rows, total}: the first limit rows in the report's order as a JSON array, and how many rows it returned. For views that need every row; one page at a time goes through PostgREST.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","maxLength":100000,"description":"key"},"args":{"description":"args"},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}},"required":["key","args"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/report_schedules/candidates":{"get":{"operationId":"report_schedule_candidates","summary":"Report schedule candidates","description":"Returns { data, truncated } with at most 1000 rows.\n\nNeeds one of: reports.read.","tags":["Report schedules"],"parameters":[{"name":"report_key","in":"query","required":true,"schema":{"type":"string","maxLength":100000,"description":"report key"},"description":"report key"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/amenity_reservations/request":{"post":{"operationId":"request_amenity_reservation","summary":"Request amenity reservation","description":"Books an amenity for a homeowner or tenant (portal: the caller's own account at the property, homeowner_account_id when they have several; a renter's current lease at the property must cover the day, lease_id picks one; staff: any contact with associations.write or leasing.write and access to the amenity's property; the account or lease must be at that property). Residents book a future time inside the opening hours, on one day. Overlapping bookings are rejected; the fee (flat or hourly) and deposit are charged immediately unless the amenity requires approval.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write, leasing.write.","tags":["Amenity reservations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reservable_amenity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"reservable amenity id"},"starts_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"starts at"},"ends_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ends at"},"guest_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"guest count"},{"type":"null"}]},"purpose":{"anyOf":[{"type":"string","maxLength":100000,"description":"purpose"},{"type":"null"}]},"contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},{"type":"null"}]},"homeowner_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]}},"required":["reservable_amenity_id","starts_at","ends_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write","leasing.write"]}},"/v1/board_approvals/request":{"post":{"operationId":"request_board_approval","summary":"Request board approval","description":"Puts an item to the board for a vote, requested at requested_at (default now; minutes are often entered after the meeting). subject_id is the bill / work order / architectural request / assessment schedule / budget / violation fine / vendor contract id matching subject (null for reserve_expenditure, policy, other). An assessment schedule (subject_id required) must be a draft of this association with unit amounts that sum to more than zero and, unless the allocation is custom, exactly to period_total_cents; it moves to pending_approval (its unit amounts lock) and the approval amount is that per-period total (amount_cents, if given, must match). The subject (and board_meeting_id) must belong to this association: an architectural request or violation fine of it, a bill, work order or budget of its property, or a vendor contract that covers its property or every property. Requires associations.write.\n\nReturns { result }.\n\nNeeds one of: associations.write.","tags":["Board approvals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"subject":{"type":"string","enum":["bill","work_order","architectural_request","assessment_schedule","budget","violation_fine_waiver","vendor_contract","reserve_expenditure","policy","other"],"description":"subject"},"title":{"type":"string","maxLength":100000,"description":"title"},"subject_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"subject id"},{"type":"null"}]},"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"approval_rule":{"anyOf":[{"type":"string","enum":["simple_majority","two_thirds","unanimous","any_one"],"description":"approval rule"},{"type":"null"}]},"vote_deadline_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"vote deadline at"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"board_meeting_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"board meeting id"},{"type":"null"}]},"requested_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"requested at"},{"type":"null"}]}},"required":["association_id","subject","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/mitchell_lama_affidavits/request":{"post":{"operationId":"request_mitchell_lama_affidavits","summary":"Request mitchell lama affidavits","description":"Asks every household with a current lease at the development for its income affidavit for an income year, due on a date (requested today unless requested_on says when the request went out). Households already asked for that year are skipped. Returns the number of affidavits requested.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Mitchell lama affidavits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mitchell_lama_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"mitchell lama program id"},"income_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"income year"},"due_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},"requested_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"requested on"},{"type":"null"}]}},"required":["mitchell_lama_program_id","income_year","due_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/owner_approvals/request":{"post":{"operationId":"request_owner_approval","summary":"Request owner approval","description":"Ask the property's current owner(s) (or one owner_id) to approve a work order or a specific estimate. Supersedes earlier pending requests, puts the work order in awaiting_approval, and returns the owner_approvals ids. Expiry defaults to the maintenance policy.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch.","tags":["Owner approvals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"work_order_estimate_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order estimate id"},{"type":"null"}]},"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"expires at"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/ti_disbursements/request":{"post":{"operationId":"request_ti_disbursement","summary":"Request ti disbursement","description":"Requests a draw against an active TI allowance (contractor invoice or tenant reimbursement) dated requested_on (default today); the allowance must not have expired on that date. Rejected if it would exceed the remaining allowance. Requires payables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Ti disbursements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenant_improvement_allowance_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tenant improvement allowance id"},"vendor_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"payee_type":{"anyOf":[{"type":"string","enum":["contractor","tenant_reimbursement"],"description":"payee type"},{"type":"null"}]},"invoice_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"invoice reference"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"lien_waiver_received":{"anyOf":[{"type":"boolean","description":"lien waiver received"},{"type":"null"}]},"requested_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"requested on"},{"type":"null"}]}},"required":["tenant_improvement_allowance_id","vendor_id","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/trust_audit_packages/request":{"post":{"operationId":"request_trust_audit_package","summary":"Request trust audit package","description":"Queues a trust audit package for a trust bank account and period (banking.read and gl.read, org-wide; one at a time per account; at most one year, ending today or earlier) and asks the trust-audit-package job to start. Returns the package id.\n\nReturns { result }.\n\nNeeds one of: banking.read, gl.read.","tags":["Trust audit packages"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"bank_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"period_start":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start"},"period_end":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end"}},"required":["bank_account_id","period_start","period_end"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read","gl.read"]}},"/v1/work_order_estimates/request":{"post":{"operationId":"request_work_order_estimates","summary":"Request work order estimates","description":"Ask vendors to bid on a work order (creates requested estimates; those vendors can then see the work order). Returns the number of requests created.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch.","tags":["Work order estimates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},"vendor_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"vendor ids"},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["work_order_id","vendor_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/work_orders/{id}/request_scope_change":{"post":{"operationId":"request_work_order_scope_change","summary":"Request work order scope change","description":"Asks to raise a work order's approved amount (anyone with maintenance.write, technicians included). An emergency request by someone with maintenance.dispatch whose role allows emergencies (or in an organization with no limits configured) is approved at once, raises not_to_exceed_cents, and opens a high-priority review task. Staff with maintenance.write.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch, maintenance.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requested_amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"requested amount cents"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"is_emergency":{"anyOf":[{"type":"boolean","description":"is emergency"},{"type":"null"}]}},"required":["requested_amount_cents","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.write"]}},"/v1/write_offs/request":{"post":{"operationId":"request_write_off","summary":"Request write off","description":"Asks for a write-off over the approval limit (one pending request per lease). amount_cents null = the whole open balance; send_to_collections places it with an agency on approval. Returns the request id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Write offs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"written_off_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"written off on"},{"type":"null"}]},"send_to_collections":{"anyOf":[{"type":"boolean","description":"send to collections"},{"type":"null"}]},"agency_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency name"},{"type":"null"}]}},"required":["lease_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/reports/resale_certificate_data":{"get":{"operationId":"resale_certificate_data","summary":"Resale certificate data","description":"Everything a resale certificate states for the unit as of a date: dues and assessments ahead, the account balance, special assessments, open violations, the association's insurance in force, the latest reserve study and the association documents that can go in the bundle (shared = visible to owners).\n\nReturns { result }.\n\nNeeds one of: associations.read.","tags":["Reports"],"parameters":[{"name":"request_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"},"description":"request id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/actions/rescind_notice":{"post":{"operationId":"rescind_notice","summary":"Rescind notice","description":"Withdraws a move-out notice (tenant stays). Restores the lease to active / month_to_month and cancels the scheduled move-out. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"move_out_notice_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"move out notice id"},"effective_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"effective at"},{"type":"null"}]}},"required":["move_out_notice_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/reports/resident_activation_summary":{"post":{"operationId":"resident_activation_summary","summary":"Resident activation summary","description":"The activation funnel per property. residents, invited (any state but not invited), opened (opened or activated), activated, can_invite (not activated and can be invited now); then among activated residents: payers, payment_method and autopay (payers), insurance_required and insurance_on_file (payers whose property requires it), contact_complete (email and phone on file) and notifications_on.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/resident_activation_timeline":{"get":{"operationId":"resident_activation_timeline","summary":"Resident activation timeline","description":"One resident's portal activation, newest first: each invitation (invited by a staff member, invited automatically when the lease was activated, reminded, or link_created for a link copied, printed or sent with the move-in plan) with its channels and email delivery status, each first open, expired (once, when no link works any more), activated (or access_removed), the first saved payment method and the first autopay.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: contacts.read.","tags":["Reports"],"parameters":[{"name":"contact_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"description":"contact id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read"]}},"/v1/reports/resident_portal_tracker":{"post":{"operationId":"resident_portal_tracker","summary":"Resident portal tracker","description":"Every current resident of the given properties (all when null) with their portal state: not_invited, invited, opened, activated (an active login), expired (invited, but no link still works) or bounced (the newest invitation email bounced, failed or was suppressed); the invitations and reminders sent (resident_portal_outreach), when the newest working link expires, why they cannot be invited, whether they pay rent and have autopay (active or paused), the autopay campaign and previous autopay, and the first steps: an active saved payment method, renter's insurance required by the property and on file (active or pending verification, not expired), email and phone on file, and notifications on (SMS consent or an active push token).\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: contacts.read.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read"]}},"/v1/actions/resolve_eiv_finding":{"post":{"operationId":"resolve_eiv_finding","summary":"Resolve EIV finding","description":"Closes an EIV income discrepancy or household flag with what staff found or did (e.g. an interim certification corrected the income, or the other agency ended its assistance). Requires affordable.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"p_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"p id"},"resolution":{"type":"string","maxLength":100000,"description":"resolution"},"resolved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"resolved on"},{"type":"null"}]}},"required":["p_id","resolution"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/resolve_intake_review_item":{"post":{"operationId":"resolve_intake_review_item","summary":"Resolve intake review item","description":"Acts on a review card: confirmed, edited (with the value), not_applicable, deferred, resolved; or open with an assignee to assign it. Confirming or dismissing a card from a document reading accepts or rejects that reading. Staff with properties.write.\n\nReturns { ok: true }.\n\nNeeds one of: properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"status":{"type":"string","enum":["open","confirmed","edited","not_applicable","deferred","resolved"],"description":"status"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"value":{"anyOf":[{"type":"string","maxLength":100000,"description":"value"},{"type":"null"}]},"assignee_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assignee user id"},{"type":"null"}]}},"required":["item_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/payment_restriction_exceptions/resolve":{"post":{"operationId":"resolve_payment_restriction_exception","summary":"Resolve payment restriction exception","description":"Records how a payment that met a restriction was handled (kept, returned, held for counsel). Changes no money. Needs legal.write and receivables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: legal.write, receivables.write.","tags":["Payment restriction exceptions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"exception_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"exception id"},"note":{"type":"string","maxLength":100000,"description":"note"}},"required":["exception_id","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write","receivables.write"]}},"/v1/violations/{id}/resolve":{"post":{"operationId":"resolve_violation","summary":"Resolve a violation","description":"Closes a violation as cured, closed or dismissed. Requires associations.write.\n\nReturns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Violations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The violation's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","notice_sent","cure_period","hearing_scheduled","fined","cured","closed","dismissed","escalated_legal"],"description":"status"},"resolved_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"resolved on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/owner_approvals/{id}/respond":{"post":{"operationId":"respond_owner_approval","summary":"Respond an owner approval","description":"Staff with owners.write may record an owner's answer given elsewhere, passing responded_at = when it was given (between the request and now; expiry is judged against it, owners always answer now), response_channel (phone, email or in_person) and a note of what the owner said; the user who entered or submitted the bill (or entered the PO) cannot do so. response_channel records portal for owners. For work orders it updates the roll-up and, when an estimate is fully approved and its vendor passes the compliance check, accepts that estimate. Bills and POs react through an 00010 trigger (posting / approving once every owner approved). Returns the request's new status.\n\nReturns { result }.\n\nNeeds one of: owners.write.","tags":["Owner approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The owner approval's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"is_approved":{"type":"boolean","description":"is approved"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"responded_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"responded at"},{"type":"null"}]},"response_channel":{"anyOf":[{"type":"string","enum":["portal","phone","email","in_person"],"description":"response channel"},{"type":"null"}]}},"required":["is_approved"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/renewal_offers/{id}/respond":{"post":{"operationId":"respond_to_renewal_offer","summary":"Respond to a renewal offer","description":"Tenant (or staff on their behalf) declines a renewal offer or counters it (rent / term / notes). Staff then edit terms and call send_renewal_offer, or withdraw.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Renewal offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The renewal offer's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"string","enum":["draft","sent","countered","accepted","declined","expired","withdrawn"],"description":"response"},"response_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"response notes"},{"type":"null"}]},"counter_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"counter rent cents"},{"type":"null"}]},"counter_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"counter term months"},{"type":"null"}]}},"required":["response"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/recurring_charges/retry_lease":{"post":{"operationId":"retry_lease_recurring_charges","summary":"Retry lease recurring charges","description":"Posts the lease's due recurring charges now, as of the org's today. On success, or when another run already posted the same period, resolves its open posting failure; on failure updates it. Returns {posted, reason} with reason null on success or a lease_posting_failures.reason key.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Recurring charges"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/return_offline_payment":{"post":{"operationId":"return_offline_payment","summary":"Return offline payment","description":"The bank returned a check or money order (NSF, stop payment, closed account...). Reverses all of the instrument's posted receipts together through reverse_receipt (nsf true: reopens the charges, records nsf_events, takes the money back out of the bank when it was deposited) and charges at most one NSF fee, on the first lease. Returns the receipt ids reversed.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instrument_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"instrument id"},"returned_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"returned on"},{"type":"null"}]},"return_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"return reason"},{"type":"null"}]},"return_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"return code"},{"type":"null"}]},"assess_nsf_fee":{"anyOf":[{"type":"boolean","description":"assess nsf fee"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]}},"required":["instrument_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/packages/{id}/return_to_sender":{"post":{"operationId":"return_package_to_sender","summary":"Return package to sender","description":"Front desk: records that an unclaimed package went back to the carrier.\n\nReturns { ok: true }.\n\nNeeds one of: residents.write.","tags":["Packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The package's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["residents.write"]}},"/v1/charges/{id}/reverse":{"post":{"operationId":"reverse_charge","summary":"Reverse a charge","description":"Reverse a charge posted in error. Payments on it become unapplied and are re-applied to other open charges.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Charges"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The charge's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"},"reversed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reversed on"},{"type":"null"}]}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/credits/{id}/reverse":{"post":{"operationId":"reverse_credit","summary":"Reverse a credit","description":"Reverses a tenant credit with a reason, dated the org's today. Returns the reversing journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The credit's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/investor_contributions/reverse":{"post":{"operationId":"reverse_investor_contribution","summary":"Reverse investor contribution","description":"Reverses a contribution (returned ACH, posting error): reverses its journal entry, marks it reversed, removes the units and re-opens the allocation / commitment. The reversal checks trust cash under the shared property, owner and bank locks.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: investments.distribute.","tags":["Investor contributions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contribution_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contribution id"},"reversal_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reversal date"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["contribution_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/property_reserve_transactions/reverse":{"post":{"operationId":"reverse_property_reserve_transaction","summary":"Reverse property reserve transaction","description":"The original entry is never changed), under the distribution locks, with the same reserve checks as approval. Returns the reversing journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.distribute.","tags":["Property reserve transactions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transaction_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"transaction id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"reversal_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reversal on"}},"required":["transaction_id","reason","reversal_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute"]}},"/v1/receipts/{id}/reverse":{"post":{"operationId":"reverse_receipt","summary":"Reverse a receipt","description":"Record a returned payment (nsf = true: NSF / chargeback, charges the NSF fee per policy; Reopens the charges it paid. An online payment is returned only by its processor. Defined in 00009, redefined in 00035.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payments.refund, receivables.write.","tags":["Receipts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The receipt's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"},"nsf":{"anyOf":[{"type":"boolean","description":"nsf"},{"type":"null"}]},"reversal_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reversal date"},{"type":"null"}]},"return_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"return reason"},{"type":"null"}]},"return_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"return code"},{"type":"null"}]},"assess_nsf_fee":{"anyOf":[{"type":"boolean","description":"assess nsf fee"},{"type":"null"}]},"bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},{"type":"null"}]}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payments.refund","receivables.write"]}},"/v1/write_offs/{id}/reverse":{"post":{"operationId":"reverse_write_off","summary":"Reverse a write off","description":"Reverses a write-off with a reason, dated the org's today, so the balance is owed again. Returns the reversing journal entry id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Write offs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The write off's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/review_ai_draft":{"post":{"operationId":"review_ai_draft","summary":"Review AI draft","description":"Staff approve (optionally edited) or reject an AI-suggested reply. Approved drafts become normal outbound messages (queued for email/SMS).\n\nReturns { result }.\n\nNeeds one of: communications.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"message id"},"approve":{"type":"boolean","description":"approve"},"edited_body":{"anyOf":[{"type":"string","maxLength":100000,"description":"edited body"},{"type":"null"}]}},"required":["message_id","approve"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/cam_statements/{id}/review":{"post":{"operationId":"review_cam_statement","summary":"Review a cam statement","description":"Marks a draft statement reviewed after checking its PDF.\n\nReturns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["CAM statements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The cam statement's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/review_extracted_field":{"post":{"operationId":"review_extracted_field","summary":"Review extracted field","description":"Accept or reject an AI-extracted field; pass the record it was written to (e.g. bills, <bill id>) to mark it applied. A field already applied can't be reviewed again. The document becomes reviewed when no applicable suggestion remains (reference-only fields don't count, 00078). To write a document_extraction field to its record use apply_extracted_field.\n\nReturns { ok: true }.\n\nNeeds one of: documents.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"field_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"field id"},"accept":{"type":"boolean","description":"accept"},"applied_to_table":{"anyOf":[{"type":"string","maxLength":100000,"description":"applied to table"},{"type":"null"}]},"applied_to_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"applied to id"},{"type":"null"}]}},"required":["field_id","accept"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/insurance_certificates/review":{"post":{"operationId":"review_insurance_certificate","summary":"Review insurance certificate","description":"Accepts a pending certificate (it becomes the requirement's certificate on file; the requirement is compliant, insufficient when it misses a term, or expired) or rejects it with a reason, which the tenant gets (commercial_insurance_rejected).\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Insurance certificates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"certificate_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"certificate id"},"accept":{"type":"boolean","description":"accept"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["certificate_id","accept"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/budgets/{id}/revise":{"post":{"operationId":"revise_budget","summary":"Revise a budget","description":"Start a new draft version of a budget (next version number, lines copied, revised_from_budget_id set; a books budget stays on its books). The approved version stays active until the revision is approved (approve_budget). Returns the new budget id.\n\nReturns { result }.\n\nNeeds one of: gl.write, owners.write.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The budget's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":100000,"description":"name"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/renewal_offers/{id}/revise":{"post":{"operationId":"revise_renewal_offer","summary":"Revise a renewal offer","description":"Staff answer a countered (or edit a draft) renewal offer: replaces its term options (same shape as create_renewal_offer, concession_cents included), optionally updates the message and expiry, and with send re-sends it (send_renewal_offer). Requires leasing.write on the lease's property. Returns the offer id.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Renewal offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The renewal offer's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"terms":{"description":"terms"},"message":{"anyOf":[{"type":"string","maxLength":100000,"description":"message"},{"type":"null"}]},"send":{"anyOf":[{"type":"boolean","description":"send"},{"type":"null"}]},"is_ai_drafted":{"anyOf":[{"type":"boolean","description":"is ai drafted"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]}},"required":["terms"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/actions/run_preventive_maintenance":{"post":{"operationId":"run_preventive_maintenance","summary":"Run preventive maintenance","description":"Run preventive maintenance generation now for one organization (normally done nightly by pg_cron). Returns work orders created.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/recurring_charges/run":{"post":{"operationId":"run_recurring_charges","summary":"Run recurring charges","description":"Post due recurring charges now (normally nightly) for every billable lease of one property (property_id; the caller must be able to see it) or, with property_id null, of the whole org (requires org-wide access). Idempotent per (recurring charge, period). A lease that fails is recorded in lease_posting_failures as staff-run and the others still post. Returns charges posted.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Recurring charges"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/report_schedules/sales":{"get":{"operationId":"sales_report_schedule","summary":"Sales report schedule","description":"The sales report periods of a lease: each ended period since percentage rent started (frequency and lease year from the terms in force, else commercial_lease_terms), its due date (period end + sales_report_due_days, default 30), the report on file and whether it is late (not reported by the due date, or reported after it). Newest 24. Staff with receivables.read on the property, or a tenant on the lease.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Report schedules"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/reports/sales_late":{"get":{"operationId":"sales_reports_late","summary":"Sales reports late","description":"Sales report periods not reported by their due date, on the commercial leases in force the caller can see with receivables.read.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/agents/save_policy":{"post":{"operationId":"save_agent_policy","summary":"Save agent policy","description":"Saves an org's policy overrides for an agent: only keys of agents.default_policy, same types, inside agents.policy_bounds; {} restores the defaults. Returns the effective policy. Creating the settings row this way leaves the agent off.\n\nReturns { result }.\n\nNeeds one of: settings.write.","tags":["Agents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agent_key":{"type":"string","maxLength":100000,"description":"agent key"},"policy":{"description":"policy"}},"required":["agent_key","policy"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/agents/save_settings":{"post":{"operationId":"save_agent_settings","summary":"Save agent settings","description":"Saves an org's settings for an agent: enabled, schedule override (cron, org time zone; null = default), daily budgets (null = default), zero-data-retention (null = the agent's default) and property scope (null or empty = every property).\n\nReturns { result }.\n\nNeeds one of: settings.write.","tags":["Agents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agent_key":{"type":"string","maxLength":100000,"description":"agent key"},"is_enabled":{"type":"boolean","description":"is enabled"},"schedule_cron":{"anyOf":[{"type":"string","maxLength":100000,"description":"schedule cron"},{"type":"null"}]},"max_runs_per_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max runs per day"},{"type":"null"}]},"max_tokens_per_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max tokens per day"},{"type":"null"}]},"max_cost_cents_per_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max cost cents per day"},{"type":"null"}]},"zero_data_retention":{"anyOf":[{"type":"boolean","description":"zero data retention"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":["agent_key","is_enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/deposit_disposition_drafts/save":{"post":{"operationId":"save_deposit_disposition_draft","summary":"Save deposit disposition draft","description":"Replaces an open draft's deductions [{description, amount_cents (null = not entered yet), charge_type_code (default DAMAGES), inspection_item_id?, source?}] and its statement notes.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Deposit disposition drafts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draft id"},"lines":{"description":"lines"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["draft_id","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/document_template_versions/save":{"post":{"operationId":"save_document_template_version","summary":"Save document template version","description":"Template editor save: creates or replaces the template's single draft version (body for generated templates; base PDF and placed fields for pdf_form). fields = [{field_key, field_type, role_key, label, is_required, options, option_labels?, merge_path, page, x, y, w, h, font_size?}] replaces the draft's fields. Returns the draft version id. documents.write.\n\nReturns { result }.\n\nNeeds one of: documents.write.","tags":["Document template versions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"template_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"template id"},"body":{"anyOf":[{"description":"body"},{"type":"null"}]},"fields":{"anyOf":[{"description":"fields"},{"type":"null"}]},"base_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"base document id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["template_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["documents.write"]}},"/v1/integration_account_mappings/save":{"post":{"operationId":"save_integration_account_mappings","summary":"Save integration account mappings","description":"Sets the account in the other system for GL accounts of a file export integration ([{gl_account_id, external_code, external_name}]; both empty removes the mapping). Returns mappings processed.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["Integration account mappings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integration_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"integration id"},"mappings":{"description":"mappings"}},"required":["integration_id","mappings"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/integration_dimension_mappings/save":{"post":{"operationId":"save_integration_dimension_mappings","summary":"Save integration dimension mappings","description":"Sets the code and name in the other system of properties, owners and accounting entities for a file export integration ([{dimension: property|owner|entity, id, external_code, external_name}]; both empty removes the mapping). Returns mappings processed.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["Integration dimension mappings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integration_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"integration id"},"mappings":{"description":"mappings"}},"required":["integration_id","mappings"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/actions/save_journal_draft":{"post":{"operationId":"save_journal_draft","summary":"Save journal draft","description":"Creates (draft_id null) or changes a manual journal entry draft. action: draft keeps it as a draft; submit sends it for approval; post posts it now (gl.write and the approval rule does not apply); auto posts it when allowed, else submits it. reverse_on posts an automatic reversal on that day. A repeated idempotency_key returns the first draft. Returns {draft_id, status, journal_entry_id}.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.audit, gl.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draft id"},"entry_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"entry date"},"memo":{"type":"string","maxLength":100000,"description":"memo"},"lines":{"description":"lines"},"entry_type":{"anyOf":[{"type":"string","enum":["charge","receipt","receipt_allocation","receipt_reversal","credit","late_fee","nsf_fee","application_fee","convenience_fee","payment_plan","write_off","refund","chargeback","deposit_refund","security_deposit_disposition","bank_deposit","deposit_transfer","bank_transfer","inter_fund_transfer","processor_payout","processor_fee","bill","bill_payment","vendor_credit","owner_contribution","owner_distribution","owner_reserve","management_fee","leasing_fee","accrual","depreciation","opening_balance","period_close","adjustment","other","lease_transfer","prior_period_adjustment"],"description":"entry type"},{"type":"null"}]},"basis":{"anyOf":[{"type":"string","enum":["both","accrual","cash"],"description":"basis"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"reverse_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reverse on"},{"type":"null"}]},"action":{"anyOf":[{"type":"string","maxLength":100000,"description":"action"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"source"},{"type":"null"}]}},"required":["draft_id","entry_date","memo","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.audit","gl.write"]}},"/v1/actions/save_lockbox_suggestions":{"post":{"operationId":"save_lockbox_suggestions","summary":"Save lockbox suggestions","description":"Stores best guesses on pending items of a batch in review: [{item_id, source rules|ai, confidence, reasons, payer_type?, rationale?, lines [{lease_id, hap_contract_id?, amount_cents}]}]. A suggestion is only shown; it moves no money and is checked again when a person approves it. Returns items updated.\n\nReturns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"suggestions":{"description":"suggestions"}},"required":["batch_id","suggestions"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/rent_reporting_settings/save":{"post":{"operationId":"save_rent_reporting_settings","summary":"Save rent reporting settings","description":"Turns rent reporting on or off, picks the provider and whether late months are reported. Enrollments keep what each resident agreed to: after a new provider their reporting pauses, and after late months are turned on they stay on-time only, until they agree to the new terms; both send rent_reporting_terms_changed.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: settings.write.","tags":["Rent reporting settings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"is_enabled":{"type":"boolean","description":"is enabled"},"provider":{"type":"string","enum":["esusu","experian_rentbureau","transunion_resident_credit","equifax","boom","rent_reporters","other"],"description":"provider"},"reports_late_payments":{"type":"boolean","description":"reports late payments"}},"required":["is_enabled","provider","reports_late_payments"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/workflow_automations/save":{"post":{"operationId":"save_workflow_automation","summary":"Save workflow automation","description":"Creates or updates an automation from one definition, the AutomationDefinition shape in @pm/shared automations.ts (zod), so the builder and the AI drafting box (which only proposes a definition) go through the same validation: {id?, name, description?, is_enabled?, subject_type? (00055: lease (default), lead, service_request, work_order, vendor, compliance_item; fixed once created), trigger: {type: date, anchor, offset_days (-365..365), send_at_local_time?, repeat?: {every_days, limit}} | {type: elapsed, anchor, hours (1..720)} (00055, hour anchors: no reply for N hours) | {type: event, event_key, send_at_local_time?, send_immediately?}, scope?: {kind: all} | {kind: properties, property_ids} | {kind: lease, lease_id} (the subject's workflow_subject_types.scopes), overrides_automation_id?, steps: [{type: action, action: send_notification, message_type, recipients, channels, wording?} | {type: action, action: create_task, title, description?, assignee_role? | assignee_user_id?, due_in_days?, priority?} | {type: action, action: set_priority, priority} | {type: action, action: page_on_call, channels, wording?} | {type: delay, days (1..365), until_local_time?} | {type: delay, hours (1..720)} (subjects with hour delays) | {type: condition, condition, amount_cents | value | statuses | channel | lead_source_ids | category_ids | priorities | vendor_trade_ids | document_types | item_types}]}. Anchors, events, actions, recipient\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Workflow automations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"description":"definition"}},"required":["definition"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/court_hearings/schedule":{"post":{"operationId":"schedule_court_hearing","summary":"Schedule court hearing","description":"Adds a court date to a filed case (moving a filed case to hearing_scheduled, dated scheduled_on = the day the hearing was set, default the org's today, unless advance is false) and emits court_hearing.scheduled for calendars and reminders.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: legal.write.","tags":["Court hearings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"case id"},"hearing_type":{"type":"string","enum":["initial_appearance","trial","status_conference","motion","mediation","default_hearing","appeal","other"],"description":"hearing type"},"scheduled_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled at"},"courtroom":{"anyOf":[{"type":"string","maxLength":100000,"description":"courtroom"},{"type":"null"}]},"judge_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"judge name"},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":100000,"description":"location"},{"type":"null"}]},"is_virtual":{"anyOf":[{"type":"boolean","description":"is virtual"},{"type":"null"}]},"virtual_link":{"anyOf":[{"type":"string","maxLength":100000,"description":"virtual link"},{"type":"null"}]},"attended_by_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"attended by user id"},{"type":"null"}]},"scheduled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"scheduled on"},{"type":"null"}]},"advance":{"anyOf":[{"type":"boolean","description":"advance"},{"type":"null"}]}},"required":["case_id","hearing_type","scheduled_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/reports/schedule_e_mapping":{"get":{"operationId":"schedule_e_mapping","summary":"Schedule e mapping","description":"Disposal = gain or loss on disposal, which is never on Schedule E and cannot be mapped), the default the rules would give, and its property-fund activity in tax_year (default this year) on the cash basis, natural sign, with the line count. Accounts with mapping none and activity are the ones to map.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: gl.read.","tags":["Reports"],"parameters":[{"name":"tax_year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.read"]}},"/v1/actions/schedule_move_in":{"post":{"operationId":"schedule_move_in","summary":"Schedule move in","description":"Sets when and where a resident picks up their keys (arrival window, place, notes; scheduled_on is the window's date in the org's time zone), creating the move_in event if needed. Refuses after the move-in was recorded. Returns the move_event id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"arrival_starts_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"arrival starts at"},"arrival_ends_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"arrival ends at"},{"type":"null"}]},"key_pickup_place":{"anyOf":[{"type":"string","maxLength":100000,"description":"key pickup place"},{"type":"null"}]},"key_pickup_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"key pickup notes"},{"type":"null"}]},"coordinator_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"coordinator user id"},{"type":"null"}]}},"required":["lease_id","arrival_starts_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/renovation_units/schedule":{"post":{"operationId":"schedule_renovation_unit","summary":"Schedule renovation unit","description":"Schedules a unit of the project's property for work with the tenant in place (scope and planned dates), or reschedules it when the unit is already in the project. Links the lease in place on the planned start.\n\nReturns { result }.\n\nNeeds one of: projects.write.","tags":["Renovation units"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"capital project id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"scope":{"type":"string","maxLength":100000,"description":"scope"},"planned_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"planned start on"},"planned_finish_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"planned finish on"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["capital_project_id","unit_id","scope","planned_start_on","planned_finish_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/actions/schedule_rent_change":{"post":{"operationId":"schedule_rent_change","summary":"Schedule rent change","description":"Schedules a new monthly rent from effective_on (escalation, market adjustment, amendment): closes the open rent schedule period the day before and opens a new one. leases.rent_cents follows when the date arrives. Increases are checked against the property's jurisdiction rules (notice days counted from today, rent control cap, increases per year; Requires leasing.write.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent cents"},"reason":{"anyOf":[{"type":"string","enum":["initial","scheduled_escalation","renewal","amendment","market_adjustment","concession","correction","other"],"description":"reason"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"lease_amendment_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease amendment id"},{"type":"null"}]}},"required":["lease_id","effective_on","rent_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/showings/schedule":{"post":{"operationId":"schedule_showing","summary":"Schedule showing","description":"Books a tour for a lead (in_person with an agent, self_guided, or virtual). Staff with leasing.write, or the prospect themselves (self-guided only where the listing allows it; in-person requests from prospects start as requested until staff assign an agent). Prevents agent double-booking, logs a lead event and moves the lead to touring. Since 00128 the access instructions stay on the listing; the leasing-showings job sends them once the tour is confirmed, within the booking window. Since 00189 a lead with no unit takes the tour's unit.\n\nReturns { result }.\n\nNeeds one of: leasing.write.","tags":["Showings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},"scheduled_start_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled start at"},"scheduled_end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled end at"},{"type":"null"}]},"showing_type":{"anyOf":[{"type":"string","enum":["in_person","self_guided","virtual"],"description":"showing type"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"listing_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},{"type":"null"}]},"agent_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"agent user id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["lead_id","scheduled_start_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/violation_hearings/schedule":{"post":{"operationId":"schedule_violation_hearing","summary":"Schedule violation hearing","description":"Schedules a due-process hearing for a violation, optionally at a board meeting of the violation's association. Requires associations.write.\n\nReturns { result }.\n\nNeeds one of: associations.write.","tags":["Violation hearings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation id"},"scheduled_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"scheduled at"},"board_meeting_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"board meeting id"},{"type":"null"}]}},"required":["violation_id","scheduled_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/work_orders/{id}/schedule":{"post":{"operationId":"schedule_work_order","summary":"Schedule a work order","description":"Cancels earlier open appointments, creates a work_order_appointments row (confirmed immediately if no tenant/vendor confirmation is needed) and sets the work order's scheduled window (status -> scheduled). Returns the appointment id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"starts_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"starts at"},"ends_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ends at"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"requires_tenant_confirmation":{"anyOf":[{"type":"boolean","description":"requires tenant confirmation"},{"type":"null"}]},"is_ai_proposed":{"anyOf":[{"type":"boolean","description":"is ai proposed"},{"type":"null"}]}},"required":["starts_at","ends_at"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/documents/search_records":{"get":{"operationId":"search_document_records","summary":"Search document records","description":"Generate dialog record picker: records of one context type the caller can see (security invoker), matching query on label or detail (ILIKE), most recently updated first; empty query = latest.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Documents"],"parameters":[{"name":"context_type","in":"query","required":true,"schema":{"type":"string","enum":["lease","rental_application","service_request","work_order","inspection","bill","receipt","owner_statement","owner","vendor","contact","property"],"description":"context type"},"description":"context type"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"query"},{"type":"null"}]}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/homeowner_accounts/search":{"get":{"operationId":"search_homeowner_accounts","summary":"Search homeowner accounts","description":"Associations.read) whose owner names, unit, unit or property address, association name or account number contain every word of query (case-insensitive; empty lists all). Active accounts first, then by association and unit. balance_cents is every open charge less credit; past_due_cents is what is unpaid after the association's grace period.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: associations.read.","tags":["Homeowner accounts"],"parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100000,"description":"query"},{"type":"null"}]}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/deposits/security_position":{"get":{"operationId":"security_deposit_position","summary":"Security deposit position","description":"Security and pet deposit cash held for a lease, what it requires (deposit_cents + pet_deposit_cents), the excess held above that (for example after a unit transfer to a unit with a lower deposit) and whether the caller can release it now with apply_security_deposit_excess.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: receivables.read, receivables.write.","tags":["Deposits"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read","receivables.write"]}},"/v1/reports/self_help_deflections":{"get":{"operationId":"self_help_deflections","summary":"Self help deflections","description":"Per category, how many residents said \"This fixed it\" and how many still needed help since a date.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"description":"from"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/self_help_for_category":{"get":{"operationId":"self_help_for_category","summary":"Self help for category","description":"Resident or staff: the guidance and tips shown before the request form for a category: the org's own tips, then the reviewed library tips for the category key (minus hidden ones). Nothing for emergency categories or when the org turned the step off. Never AI.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"category_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},"description":"category id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/send_adverse_action_notice":{"post":{"operationId":"send_adverse_action_notice","summary":"Send adverse action notice","description":"Delivers the adverse action notice for the current decision: each adult gets their own notice_text from get_adverse_action_notice (email or portal through notifications, one per recipient; mail and hand delivery are recorded only and print recipients[].notice_text), optionally referencing a generated notice document, and records it on the decision. Returns the number of recipients. Raises 22023 when a screening agency has no disclosure row. Requires screening.run.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: screening.run.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"application_decision_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"application decision id"},"method":{"anyOf":[{"type":"string","enum":["email","mail","portal","hand_delivered","posted"],"description":"method"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]}},"required":["application_decision_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["screening.run"]}},"/v1/announcements/{id}/send":{"post":{"operationId":"send_announcement","summary":"Send an announcement","description":"Returns the number of recipients notified.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: communications.broadcast.","tags":["Announcements"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The announcement's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.broadcast"]}},"/v1/cam_statements/send":{"post":{"operationId":"send_cam_statements","summary":"Send CAM statements","description":"Sends the reviewed statements of a reconciliation (all, or only cam_statement_ids). Each tenant gets cam_statement_ready (email and in-app, with a link to the portal) and sees the statement in the portal. Returns the statements sent.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["CAM statements"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_reconciliation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam reconciliation id"},"cam_statement_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"cam statement ids"},{"type":"null"}]}},"required":["cam_reconciliation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/messages/send_lead":{"post":{"operationId":"send_lead_message","summary":"Send lead message","description":"Staff send an email or SMS to a prospect through communications on the lead's conversation (created on first use; delivery, opt-outs and replies are handled there) and log it on the lead timeline. attachments (email only, at most 20) is send_message's list: [{storage_path, file_name, mime_type, size_bytes}] for the caller's upload to the attachments bucket under <org_id>/<conversation_id>/ (prepare_lead_message gives the conversation), or [{document_id}] for a library document the caller can read that fits the prospect. Requires leasing.write and communications.write. Returns the message id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: leasing.write.","tags":["Messages"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lead_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},"channel":{"type":"string","enum":["in_app","email","sms","voice","whatsapp"],"description":"channel"},"body":{"type":"string","maxLength":100000,"description":"body"},"subject":{"anyOf":[{"type":"string","maxLength":100000,"description":"subject"},{"type":"null"}]},"attachments":{"anyOf":[{"description":"attachments"},{"type":"null"}]}},"required":["lead_id","channel","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/messages/send":{"post":{"operationId":"send_message","summary":"Send message","description":"Posts a message. Staff (communications.write with access to the thread) can send on any channel (email/SMS/WhatsApp are queued for the sender Edge Function) or add internal notes. Tenants, owners and vendors can post only in-app to conversations they participate in (not an archived owner or an archived or do-not-use vendor, 00166). attachments: [{storage_path, file_name?, mime_type?, size_bytes?}] for the sender's own upload to the attachments bucket under <org_id>/<conversation_id>/, or [{document_id}] for a library document the sender can read. Returns messages.id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: communications.write.","tags":["Messages"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"conversation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"conversation id"},"body":{"type":"string","maxLength":100000,"description":"body"},"channel":{"anyOf":[{"type":"string","enum":["in_app","email","sms","voice","whatsapp"],"description":"channel"},{"type":"null"}]},"is_internal_note":{"anyOf":[{"type":"boolean","description":"is internal note"},{"type":"null"}]},"reply_to_message_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"reply to message id"},{"type":"null"}]},"attachments":{"anyOf":[{"description":"attachments"},{"type":"null"}]},"email_subject":{"anyOf":[{"type":"string","maxLength":100000,"description":"email subject"},{"type":"null"}]}},"required":["conversation_id","body"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/renewal_offers/{id}/send":{"post":{"operationId":"send_renewal_offer","summary":"Send a renewal offer","description":"Sends a draft renewal offer (or re-sends a countered one after editing its terms), after checking each option's rent increase against the jurisdiction rules with notice served today. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Renewal offers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The renewal offer's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/reminders/send_rent":{"post":{"operationId":"send_rent_reminders","summary":"Send rent reminders","description":"Reminds the tenants of the chosen leases about this month's rent that is not paid and not processing, with the notice for where the month stands: rent_due before the due date, rent_due_today on it, rent_overdue after it. On a lease with rent shares each holder hears their own share and one who paid it is skipped. Once per tenant and day. Returns the number of tenants reminded.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Reminders"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"lease ids"}},"required":["lease_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/actions/send_resale_certificate":{"post":{"operationId":"send_resale_certificate","summary":"Send resale certificate","description":"Marks a reviewed certificate sent and returns a new download token (60 days; sending again replaces it). The web server emails it to the requester only as a notification secret.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: associations.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"}},"required":["request_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/actions/send_to_collections":{"post":{"operationId":"send_to_collections","summary":"Send to collections","description":"Place a lease's open balance with a collection agency, writing it off to bad debt by default (the write-off approval limit applies; see request_write_off). Returns the collections account id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"agency_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"agency name"},{"type":"null"}]},"agency_vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"agency vendor id"},{"type":"null"}]},"commission_rate":{"anyOf":[{"type":"number","description":"commission rate"},{"type":"null"}]},"write_off":{"anyOf":[{"type":"boolean","description":"write off"},{"type":"null"}]},"placed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"placed on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["lease_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/violation_notices/send":{"post":{"operationId":"send_violation_notice","summary":"Send violation notice","description":"Records a violation letter sent on sent_on (default today) and advances the case: courtesy/first/second/final start a new cure period counted from the send date, hearing marks hearing_scheduled, legal escalates. The letter is stored on the notice as of that day and goes to the owners of the home now by email, push and in-app, and SMS with consent (violation_notice); delivery_method records how the formal letter went. A repeated idempotency_key (bulk sends) returns the earlier notice and sends nothing. While a fine-pausing appeal waits, fine and legal notices are refused. Requires associations.write.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write.","tags":["Violation notices"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"violation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"violation id"},"notice_level":{"type":"string","enum":["courtesy","first","second","final","hearing","fine","legal"],"description":"notice level"},"delivery_method":{"anyOf":[{"type":"string","enum":["email","mail","certified_mail","posted_on_door","hand_delivered","portal"],"description":"delivery method"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"cure_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"cure days"},{"type":"null"}]},"tracking_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"tracking number"},{"type":"null"}]},"sent_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"sent on"},{"type":"null"}]},"idempotency_key":{"anyOf":[{"type":"string","maxLength":100000,"description":"idempotency key"},{"type":"null"}]}},"required":["violation_id","notice_level"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/legal_notices/serve":{"post":{"operationId":"serve_legal_notice","summary":"Serve legal notice","description":"Records a served notice (pay or quit, cure or quit, notice to vacate, entry, lease violation...). Deadline defaults to served_on + notice_period_days. If linked to a pending eviction case, the case moves to notice_served. Visible to the tenant in the portal; emits legal_notice.served.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: legal.write.","tags":["Legal notices"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"notice_type":{"type":"string","enum":["pay_or_quit","cure_or_quit","unconditional_quit","notice_to_vacate","entry","lease_violation","rent_increase","non_renewal","abandonment","other"],"description":"notice type"},"served_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"served on"},"served_method":{"type":"string","enum":["personal","substitute","posting_and_mailing","certified_mail","first_class_mail","email","portal","process_server","sheriff"],"description":"served method"},"notice_period_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"notice period days"},{"type":"null"}]},"amount_demanded_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount demanded cents"},{"type":"null"}]},"deadline_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"deadline on"},{"type":"null"}]},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"violation_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"violation description"},{"type":"null"}]},"served_by":{"anyOf":[{"type":"string","maxLength":100000,"description":"served by"},{"type":"null"}]},"eviction_case_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"eviction case id"},{"type":"null"}]},"entry_starts_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"entry starts at"},{"type":"null"}]},"entry_ends_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"entry ends at"},{"type":"null"}]}},"required":["lease_id","notice_type","served_on","served_method"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write"]}},"/v1/abandoned_home_cases/set_hold":{"post":{"operationId":"set_abandoned_home_case_hold","summary":"Set abandoned home case hold","description":"Puts an active abandoned home case on hold with a reason, or resumes it, and notes the change in its timeline. Requires legal.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Abandoned home cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"case id"},"on_hold":{"type":"boolean","description":"on hold"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["case_id","on_hold"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/set_access_outcome":{"post":{"operationId":"set_access_outcome","summary":"Set access outcome","description":"Records whether staff got into one apartment of an access request (confirmed, completed, no access, or back to pending), with an optional note. Requires maintenance.write at the property.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"},"unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},"outcome":{"type":"string","enum":["pending","confirmed","completed","no_access"],"description":"outcome"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["request_id","unit_id","outcome"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/actions/set_accounting_export_setup":{"post":{"operationId":"set_accounting_export_setup","summary":"Set accounting export setup","description":"Chooses the accounting system the org exports to and, when given, how it sets up its chart (keep, renumber, import). Creates the system's file export integration. Returns its id.\n\nReturns { result }.\n\nNeeds one of: gl.setup.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"string","maxLength":100000,"description":"target"},"chart_choice":{"anyOf":[{"type":"string","maxLength":100000,"description":"chart choice"},{"type":"null"}]}},"required":["target"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/assessment_unit_amounts/set":{"post":{"operationId":"set_assessment_unit_amounts","summary":"Set assessment unit amounts","description":"Replaces the per-home amounts of a draft custom assessment schedule in one step: amounts [{unit_id, amount_cents}] for homes (non-archived units) of the association's property, amounts >= 0 (zero rows are not stored), at least one above zero. period_total_cents, when given, must equal their sum (the rule request_board_approval applies) and becomes the schedule's period total; null leaves the schedule without one, and the board then votes on the sum. Returns the sum. Requires associations.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write.","tags":["Assessment unit amounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"assessment_schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assessment schedule id"},"amounts":{"description":"amounts"},"period_total_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"period total cents"},{"type":"null"}]}},"required":["assessment_schedule_id","amounts"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/associations/{id}/set_fiscal_year_end":{"post":{"operationId":"set_association_fiscal_year_end","summary":"Set association fiscal year end","description":"Sets the month an association's fiscal year ends. Writes associations.fiscal_year_start_month and the association's accounting entity, so its year-to-date reports, budget months (budget_months) and year-end close follow it.\n\nReturns { ok: true }.\n\nNeeds one of: associations.write, gl.write.","tags":["Associations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The association's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"end_month":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"end month"}},"required":["end_month"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write","gl.write"]}},"/v1/association_resale_offerings/set":{"post":{"operationId":"set_association_resale_offering","summary":"Set association resale offering","description":"The fee, rush fee and turnaround of one resale document for an association. Refused above the state cap (resale_fee_caps for the association property's state). Keeps associations.resale_certificate_fee_cents in step.\n\nReturns { result }.\n\nNeeds one of: associations.write.","tags":["Association resale offerings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"association_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"association id"},"document_type":{"type":"string","enum":["resale_certificate","estoppel_letter","lender_questionnaire"],"description":"document type"},"is_offered":{"type":"boolean","description":"is offered"},"fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fee cents"},"turnaround_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"turnaround days"},"rush_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rush fee cents"},{"type":"null"}]},"rush_turnaround_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rush turnaround days"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]}},"required":["association_id","document_type","is_offered","fee_cents","turnaround_days"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/actions/set_autopay_status":{"post":{"operationId":"set_autopay_status","summary":"Set autopay status","description":"Payer or staff: pause (optionally until a date), resume (active) or cancel an autopay enrollment.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autopay_enrollment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"autopay enrollment id"},"status":{"type":"string","enum":["active","paused","suspended","canceled"],"description":"status"},"paused_until":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"paused until"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["autopay_enrollment_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/bills/{id}/set_hold":{"post":{"operationId":"set_bill_hold","summary":"Set bill hold","description":"Puts an approved bill on payment hold (a reason is required) or releases it.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.pay.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"on_hold":{"type":"boolean","description":"on hold"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["on_hold"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.pay"]}},"/v1/bill_lines/{id}/set_coding":{"post":{"operationId":"set_bill_line_coding","summary":"Set bill line coding","description":"Sets a bill line's equipment, service contract, incident and service period, on a bill in any status (none of them move money). Staff with payables.write on the line's property.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.write.","tags":["Bill lines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill line's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},{"type":"null"}]},"vendor_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor contract id"},{"type":"null"}]},"incident_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"incident id"},{"type":"null"}]},"service_from_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"service from on"},{"type":"null"}]},"service_to_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"service to on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/budgets/{id}/set_kind":{"post":{"operationId":"set_budget_kind","summary":"Set budget kind","description":"Marks a draft budget version as the underwriting model, or back as an operating budget. An underwriting version cannot be approved.\n\nReturns { ok: true }.\n\nNeeds one of: gl.write, owners.write.","tags":["Budgets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The budget's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","maxLength":100000,"description":"kind"}},"required":["kind"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","owners.write"]}},"/v1/actions/set_cam_expense_adjustment":{"post":{"operationId":"set_cam_expense_adjustment","summary":"Set CAM expense adjustment","description":"Adjusts one account's recoverable amount in a draft reconciliation (e.g. remove a capital expenditure, add an accrual) with a reason, then recalculates. Requires receivables.write.\n\nReturns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cam_reconciliation_expense_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"cam reconciliation expense id"},"adjustment_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"adjustment cents"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["cam_reconciliation_expense_id","adjustment_cents","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/capital_projects/{id}/set_status":{"post":{"operationId":"set_capital_project_status","summary":"Set capital project status","description":"Moves a project through approved -> in_progress -> substantially_complete -> closed (closing and canceling need projects.approve).\n\nReturns { ok: true }.\n\nNeeds one of: projects.approve, projects.write.","tags":["Capital projects"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The capital project's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["planning","approved","in_progress","substantially_complete","closed","canceled"],"description":"status"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.approve","projects.write"]}},"/v1/gl_accounts/set_charge_type":{"post":{"operationId":"set_charge_type_gl_accounts","summary":"Set charge type GL accounts","description":"Sets the GL account charges of each type post to from now on ([{charge_type_id, gl_account_id}], all or nothing). Non-deposit types take an active, non-contra, non-trust income account; deposit types stay on their account. Charges already posted keep their journal lines. Returns types changed.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.setup.","tags":["GL accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"description":"changes"}},"required":["changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/collections_settings/set":{"post":{"operationId":"set_collections_settings","summary":"Set collections settings","description":"Turns the monthly unpaid rent run and the arrears letters on or off, and sets the run day (1 to 28, org time) and the arrears thresholds (months of rent, amount in cents).\n\nReturns { ok: true }.\n\nNeeds one of: gl.setup.","tags":["Collections settings"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"unpaid_rent_enabled":{"type":"boolean","description":"unpaid rent enabled"},"arrears_letters_enabled":{"type":"boolean","description":"arrears letters enabled"},"run_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"run day"},"arrears_months":{"type":"number","description":"arrears months"},"arrears_min_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"arrears min cents"}},"required":["unpaid_rent_enabled","arrears_letters_enabled","run_day","arrears_months","arrears_min_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/actions/set_commitment_status":{"post":{"operationId":"set_commitment_status","summary":"Set commitment status","description":"Moves a commitment through the pipeline (indicated -> soft -> hard; withdrawn / rejected). hard requires accreditation per the offering exemption. funded is set automatically by record_investor_contribution.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: investments.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commitment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"commitment id"},"status":{"type":"string","enum":["indicated","soft","hard","funded","withdrawn","rejected"],"description":"status"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["commitment_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/conversations/{id}/set_status":{"post":{"operationId":"set_conversation_status","summary":"Set conversation status","description":"Staff (communications.write with access to the thread's property, or a staff participant with communications.write) open, snooze or close a conversation. Snoozed needs snoozed_until within the next year (the comms-unsnooze job reopens it then, and a new inbound message reopens it sooner); open and closed take no snooze time. Closing stamps closed_at/closed_by (kept when it was already closed); a new inbound message reopens a closed thread (00013 trigger). Returns the conversation id.\n\nReturns { result }.\n\nNeeds one of: communications.write.","tags":["Conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The conversation's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","snoozed","closed"],"description":"status"},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"snoozed until"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/deposits/set_interest_paid_through":{"post":{"operationId":"set_deposit_interest_paid_through","summary":"Set deposit interest paid through","description":"Records the date a lease deposit's interest is already paid through (interest paid outside the app), so the disposition and the yearly job start the day after.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Deposits"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"paid_through_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"paid through on"},"note":{"type":"string","maxLength":100000,"description":"note"}},"required":["lease_id","paid_through_on","note"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/feature_flags/set":{"post":{"operationId":"set_feature_flag","summary":"Set feature flag","description":"Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Feature flags"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"flag_key":{"type":"string","maxLength":100000,"description":"flag key"},"is_enabled":{"type":"boolean","description":"is enabled"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["flag_key","is_enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/fixed_asset_tax_books/set":{"post":{"operationId":"set_fixed_asset_tax_book","summary":"Set fixed asset tax book","description":"Sets the tax book of a fixed asset (insert or replace). Book depreciation does not change.\n\nReturns { result }.\n\nNeeds one of: gl.write.","tags":["Fixed asset tax books"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fixed_asset_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"fixed asset id"},"method":{"type":"string","maxLength":100000,"description":"method"},"recovery_years":{"anyOf":[{"type":"number","description":"recovery years"},{"type":"null"}]},"convention":{"anyOf":[{"type":"string","maxLength":100000,"description":"convention"},{"type":"null"}]},"placed_in_service_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"placed in service on"},{"type":"null"}]},"basis_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"basis cents"},{"type":"null"}]},"section_179_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"section 179 cents"},{"type":"null"}]},"bonus_pct":{"anyOf":[{"type":"number","description":"bonus pct"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["fixed_asset_id","method"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write"]}},"/v1/actions/set_hap_renewal_status":{"post":{"operationId":"set_hap_renewal_status","summary":"Set HAP renewal status","description":"Moves a renewal along the pipeline (rcs_ordered, owner_notice_sent, submitted, approved, opted_out, withdrawn) and records the date of the step (default today). Sending the owner notice and submitting the request complete their compliance items; opting out or withdrawing waives them.\n\nReturns { ok: true }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"renewal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renewal id"},"status":{"type":"string","enum":["planning","rcs_ordered","owner_notice_sent","submitted","approved","executed","opted_out","withdrawn"],"description":"status"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["renewal_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/set_homeowner_autopay_status":{"post":{"operationId":"set_homeowner_autopay_status","summary":"Set homeowner autopay status","description":"The paying owner, or staff with associations.write on the association: pause, resume (active, needs a usable method) or turn off (canceled) homeowner autopay. Each change tells the owner (homeowner_autopay_changed).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enrollment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"enrollment id"},"status":{"type":"string","enum":["active","paused","suspended","canceled"],"description":"status"}},"required":["enrollment_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/actions/set_homeowner_statement_email":{"post":{"operationId":"set_homeowner_statement_email","summary":"Set homeowner statement email","description":"Homeowner RPC: the caller asks for (or stops) the monthly statement email for a homeowner account they own.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"homeowner_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"emails":{"type":"boolean","description":"emails"}},"required":["homeowner_account_id","emails"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/investor_distributions/set_status":{"post":{"operationId":"set_investor_distribution_status","summary":"Set investor distribution status","description":"Records a payout's delivery (manual path for checks and wires, or ACH outside an integrated processor): processing, paid on paid_on (not before the run's paid_on), failed with a reason, or back to pending for a retry. Links the payment transaction or check. Requires investments.distribute.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: investments.distribute.","tags":["Investor distributions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"distribution_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"distribution id"},"status":{"type":"string","enum":["pending","processing","paid","failed","reinvested","held"],"description":"status"},"paid_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"paid on"},{"type":"null"}]},"payment_transaction_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"payment transaction id"},{"type":"null"}]},"check_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"check id"},{"type":"null"}]},"failure_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"failure reason"},{"type":"null"}]}},"required":["distribution_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/late_fee_policies/set":{"post":{"operationId":"set_late_fee_policy","summary":"Set late fee policy","description":"Adds a late fee policy for the org default (no property or lease), a property, or a lease (an override, or an exemption with is_exempt), ending the scope's open policy the day before effective_on in the same transaction. Returns the policy id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: settings.write.","tags":["Late fee policies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":100000,"description":"name"},"is_exempt":{"type":"boolean","description":"is exempt"},"fee_type":{"type":"string","enum":["flat","percent_of_rent","percent_of_balance"],"description":"fee type"},"grace_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"grace days"},"due_day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"due day"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"fee_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"fee amount cents"},{"type":"null"}]},"fee_rate":{"anyOf":[{"type":"number","description":"fee rate"},{"type":"null"}]},"max_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max fee cents"},{"type":"null"}]}},"required":["name","is_exempt","fee_type","grace_days","due_day","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/leads/{id}/set_status":{"post":{"operationId":"set_lead_status","summary":"Set lead status","description":"Moves a lead in the pipeline (the status change is logged by trigger). Lost needs a reason; leased needs an approved or converted application. Closing a lead clears its follow-up. Requires leasing.write.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lead's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["new","contacted","touring","applied","leased","lost"],"description":"status"},"lost_reason":{"anyOf":[{"type":"string","enum":["unresponsive","price_too_high","location","unit_unavailable","chose_competitor","did_not_qualify","timing","amenities","pets_not_allowed","duplicate","spam","other"],"description":"lost reason"},{"type":"null"}]},"lost_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"lost notes"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/leases/{id}/set_preferential_rent":{"post":{"operationId":"set_lease_preferential_rent","summary":"Set lease preferential rent","description":"Marks a lease's rent as a preferential rent (below the legal rent) for the tenancy, or clears it.\n\nReturns { ok: true }.\n\nNeeds one of: affordable.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"is_preferential":{"type":"boolean","description":"is preferential"}},"required":["is_preferential"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/lease_rent_shares/set":{"post":{"operationId":"set_lease_rent_shares","summary":"Set lease rent shares","description":"Sets the rent shares of a current lease (00116; Staff with leasing.write or receivables.write on the property apply them at once ('applied'). A share holder, while the office has not locked the shares, applies them only when no roommate's share changes; otherwise they become a proposal ('proposed') that applies when every roommate confirms it (respond_rent_share_proposal). Tells the holders (rent_share_notice). Shares never change who owes the rent.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: leasing.write, receivables.write.","tags":["Lease rent shares"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"method":{"type":"string","enum":["percent","amount"],"description":"method"},"shares":{"description":"shares"}},"required":["lease_id","method","shares"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write","receivables.write"]}},"/v1/leases/{id}/set_subsidy_sources":{"post":{"operationId":"set_lease_subsidy_sources","summary":"Set lease subsidy sources","description":"Sets the subsidies that pay part of a lease's rent from effective_on. sources [{payer_type nycha_section8|hpd_section8|cityfheps|feps|hud_section8|other, amount_cents (monthly), agency_contact_id?, contract_number?, ends_on?}], each payer once. Each source is a HAP contract on the lease (subsidy_payer_type; made with a housing program of that name at the property and the agency's company contact when missing) billed monthly as a HAP_SUBSIDY charge to the agency; the tenant portion is contract_rent_cents minus the subsidies, billed as RENT. While these rows run the rent schedule does not bill (replaces_schedule_rent). The earlier split ends the day before; payers no longer listed end then too. An empty list with no subsidy returns the lease to its rent schedule. A lease whose rent follows a certification is refused. Moves no money. Returns {tenant_rent_cents, sources}.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: affordable.write, receivables.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"contract_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"contract rent cents"},"sources":{"description":"sources"}},"required":["effective_on","contract_rent_cents","sources"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write","receivables.write"]}},"/v1/leases/{id}/set_use":{"post":{"operationId":"set_lease_use","summary":"Set lease use","description":"Marks a lease residential, commercial or mixed. Residential or commercial also sets its unit's space use to match, which carries to the unit's other leases.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_use":{"type":"string","enum":["residential","commercial","mixed"],"description":"lease use"}},"required":["lease_use"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/listing_syndications/set_channels":{"post":{"operationId":"set_listing_syndication_channels","summary":"Set listing syndication channels","description":"Sets the channels a listing is advertised on. Listed channels are selected and get a pending listing_syndications row (taken-down rows return to pending); every other channel is deselected and moves to pending_removal, which the next feed delivery turns into removed. Feed channels publish when the channel next polls; craigslist/facebook rows are updated by staff by hand. Returns every channel row of the listing.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: marketing.write.","tags":["Listing syndications"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listing_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"listing id"},"channels":{"type":"array","items":{"type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"]},"description":"channels"}},"required":["listing_id","channels"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/mail_pieces/set_included":{"post":{"operationId":"set_mail_piece_included","summary":"Set mail piece included","description":"Removes a letter from a draft mail batch, or adds it back.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Mail pieces"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"piece_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"piece id"},"included":{"type":"boolean","description":"included"}},"required":["piece_id","included"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/set_market_rent":{"post":{"operationId":"set_market_rent","summary":"Set market rent","description":"Sets the market rent of a unit or floor plan with its source (manual, AI recommendation, comp survey...). Records history; updates the current value when effective today or earlier.\n\nReturns { result }.\n\nNeeds one of: marketing.write, properties.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"market_rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"market rent cents"},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"floor_plan_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"floor plan id"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["manual","ai_recommendation","comp_survey","pricing_engine","import"],"description":"source"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"effective_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},{"type":"null"}]}},"required":["market_rent_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write","properties.write"]}},"/v1/actions/set_mitchell_lama_surcharge_schedule":{"post":{"operationId":"set_mitchell_lama_surcharge_schedule","summary":"Set mitchell lama surcharge schedule","description":"Enters the published surcharge schedule effective on a date as bands [{from_pct, to_pct, surcharge_pct}] (percent over the income limit; to_pct null on the last band), replacing any bands already entered for that date. Bands start at 0 and follow each other with no gap.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mitchell_lama_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"mitchell lama program id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"bands":{"description":"bands"}},"required":["mitchell_lama_program_id","effective_on","bands"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/actions/set_move_in_item":{"post":{"operationId":"set_move_in_item","summary":"Set move in item","description":"Marks a move-in checklist item done or not, with an optional note (proof of insurance by email, utilities confirmed by phone). Items the system can see stay done once their fact is true.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"done":{"type":"boolean","description":"done"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["item_id","done"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/set_my_owner_subscription":{"post":{"operationId":"set_my_owner_report_subscription","summary":"Set my owner report subscription","description":"Owner portal: unsubscribe from (false) or subscribe again to (true) a report the office emails to one of the caller's owner records. Subscribing again needs a current ownership of the property.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},"subscribed":{"type":"boolean","description":"subscribed"}},"required":["schedule_id","subscribed"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/offerings/{id}/set_status":{"post":{"operationId":"set_offering_status","summary":"Set offering status","description":"Moves an offering through its lifecycle (offerings_status_guard enforces the transitions); closing stamps closed_on = on (default today). Requires investments.write.\n\nReturns { ok: true }.\n\nNeeds one of: investments.write.","tags":["Offerings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The offering's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","marketing","open","closed","funded","cancelled"],"description":"status"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/opening_balance_lines/set":{"post":{"operationId":"set_opening_balance_lines","summary":"Set opening balance lines","description":"Replaces the draft lines of an opening balance batch.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: gl.write, imports.run.","tags":["Opening balance lines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"lines":{"description":"lines"}},"required":["batch_id","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","imports.run"]}},"/v1/outreach_items/set_included":{"post":{"operationId":"set_outreach_item_included","summary":"Set outreach item included","description":"Removes a person from a draft outreach batch, or adds back one staff removed.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Outreach items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"included":{"type":"boolean","description":"included"}},"required":["item_id","included"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owner_report_schedules/set":{"post":{"operationId":"set_owner_report_schedule","summary":"Set owner report schedule","description":"Emails an owner report to the owner on a schedule, or changes one (schedule_id). The owner must own the property now (with no property: any property) and have an owner portal login with an email, because the report runs as them. weekday (0 = Sunday) only for weekly, month_day only for monthly; send_hour in the org's time zone. A schedule the owner unsubscribed from stays off. Returns the schedule id.\n\nReturns { result }.\n\nNeeds one of: owners.write.","tags":["Owner report schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"owner_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},"report_key":{"type":"string","maxLength":100000,"description":"report key"},"frequency":{"type":"string","enum":["daily","weekly","monthly"],"description":"frequency"},"weekday":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"weekday"},{"type":"null"}]},"month_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"month day"},{"type":"null"}]},"send_hour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"send hour"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"schedule_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"schedule id"},{"type":"null"}]}},"required":["owner_id","report_key","frequency"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.write"]}},"/v1/actions/set_payment_acceptance_restriction":{"post":{"operationId":"set_payment_acceptance_restriction","summary":"Set payment acceptance restriction","description":"Stops payment acceptance on a lease. block: every method and autopay refused on every channel (portal, autopay, staff receipts). review: certified funds only (online methods, autopay, personal checks and ACH refused); a money order, cashier's check or cash staff record still posts and lands in payment_restriction_exceptions for review. Payments already processing become in_transit exceptions. Needs legal.write and receivables.write on the property; meeting a collections threshold or opening a case never sets this by itself.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: legal.write, receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"mode":{"type":"string","enum":["review","block"],"description":"mode"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"starts_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"starts on"},{"type":"null"}]},"review_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"review on"},{"type":"null"}]},"ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"ends on"},{"type":"null"}]},"eviction_case_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"eviction case id"},{"type":"null"}]},"instructions_document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"instructions document id"},{"type":"null"}]},"resident_message":{"anyOf":[{"type":"string","maxLength":100000,"description":"resident message"},{"type":"null"}]}},"required":["lease_id","mode","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["legal.write","receivables.write"]}},"/v1/program_submissions/{id}/set_status":{"post":{"operationId":"set_program_submission_status","summary":"Set program submission status","description":"Moves a generated TRACS file along: draft (generated) to transmitted (sent, on on), then transmitted to accepted or rejected with the agency's response. For a MAT10 file the certifications it carries as MAT10 records follow: completed to submitted, then submitted to accepted or rejected. Requires affordable.write.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Program submissions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The program submission's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","transmitted","accepted","rejected","corrected"],"description":"status"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]},"reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference"},{"type":"null"}]},"response":{"anyOf":[{"type":"string","maxLength":100000,"description":"response"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/cost_codes/{id}/set_project_relocation":{"post":{"operationId":"set_project_relocation_cost_code","summary":"Set a project relocation cost code","description":"Names the cost code whose budget line holds the project's temporary relocation budget (null clears it).\n\nReturns { ok: true }.\n\nNeeds one of: projects.write.","tags":["Cost codes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The cost code's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capital_project_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"capital project id"}},"required":["capital_project_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/actions/set_reconciliation_lines_cleared":{"post":{"operationId":"set_reconciliation_lines_cleared","summary":"Set reconciliation lines cleared","description":"Tick (or untick) bank GL journal lines as cleared in an open reconciliation. Requires banking.reconcile.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: banking.reconcile.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rec_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rec id"},"journal_line_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"journal line ids"},"is_cleared":{"anyOf":[{"type":"boolean","description":"is cleared"},{"type":"null"}]}},"required":["rec_id","journal_line_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.reconcile"]}},"/v1/actions/set_recurring_repair_settings":{"post":{"operationId":"set_recurring_repair_settings","summary":"Set recurring repair settings","description":"Saves the recurring repair threshold and whether new patterns notify the property manager.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.dispatch.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"min_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"min count"},"window_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"window months"},"alerts_enabled":{"type":"boolean","description":"alerts enabled"}},"required":["min_count","window_months","alerts_enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/renovation_units/{id}/set_status":{"post":{"operationId":"set_renovation_unit_status","summary":"Set renovation unit status","description":"Moves a renovation unit through scheduled, in progress and done (or canceled), stamping the actual start or finish with the date given (today by default). Done can go back to in progress.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Renovation units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The renovation unit's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["scheduled","in_progress","done","canceled"],"description":"status"},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"on"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/report_schedules/set":{"post":{"operationId":"set_report_schedule","summary":"Set report schedule","description":"Emails one of your own saved reports on a schedule (creates or replaces its schedule and recipients). so must each recipient, who also needs an email address. Each recipient gets the report run as themselves. weekday (0 = Sunday) only for weekly, month_day only for monthly; send_hour in the org's time zone. Returns the schedule id.\n\nReturns { result }.\n\nNeeds one of: reports.read.","tags":["Report schedules"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"saved_report_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"saved report id"},"frequency":{"type":"string","enum":["daily","weekly","monthly"],"description":"frequency"},"weekday":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"weekday"},{"type":"null"}]},"month_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"month day"},{"type":"null"}]},"send_hour":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"send hour"},{"type":"null"}]},"recipient_user_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"recipient user ids"},{"type":"null"}]}},"required":["saved_report_id","frequency"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["reports.read"]}},"/v1/resale_fee_caps/set":{"post":{"operationId":"set_resale_fee_cap","summary":"Set resale fee cap","description":"Stores the statutory limits for a state and document type. Prices above a new cap are charged at the cap.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write.","tags":["Resale fee caps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"region":{"type":"string","maxLength":100000,"description":"region"},"document_type":{"type":"string","enum":["resale_certificate","estoppel_letter","lender_questionnaire"],"description":"document type"},"max_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max fee cents"},"max_rush_fee_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max rush fee cents"},"max_turnaround_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"max turnaround days"},"rush_turnaround_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rush turnaround days"},"statute_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"statute reference"},{"type":"null"}]}},"required":["region","document_type","max_fee_cents","max_rush_fee_cents","max_turnaround_days","rush_turnaround_days"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/actions/set_snooze":{"post":{"operationId":"set_snooze","summary":"Set snooze","description":"Snoozes a work_order (maintenance.write and property access, or its technician), service_request (maintenance.write and property access), lead (leasing.write and property access) or open conversation (communications.write and can see it; a closed one must be reopened first) until until (within a year), or until new activity (until_activity, no time); with neither it wakes the record. Snoozed records drop out of default lists until the time passes (a list condition, no job) or activity wakes them (triggers on work_order_events, lead_events, service_request_photos, status changes and inbound messages). Conversations use their status snoozed, parked a year out when snoozed until activity.\n\nReturns { ok: true }.\n\nNeeds one of: communications.write, leasing.write, maintenance.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":100000,"description":"subject"},"p_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"p id"},"until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"until"},{"type":"null"}]},"until_activity":{"anyOf":[{"type":"boolean","description":"until activity"},{"type":"null"}]}},"required":["subject","p_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write","leasing.write","maintenance.write"]}},"/v1/syndication_feeds/set_fees_preview":{"post":{"operationId":"set_syndication_feed_fees_preview","summary":"Set syndication feed fees preview","description":"Turns the monthly fees preview of one channel's feed on or off (00127, syndication_feeds.is_fees_preview_enabled). Only MITS feeds render it.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: marketing.write.","tags":["Syndication feeds"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["zillow","apartments_com","rent_com","zumper","craigslist","facebook","website","other"],"description":"channel"},"enabled":{"type":"boolean","description":"enabled"}},"required":["channel","enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["marketing.write"]}},"/v1/units/{id}/set_rent_regulation":{"post":{"operationId":"set_unit_rent_regulation","summary":"Set unit rent regulation","description":"Sets a unit's rent regulation (market, stabilized, controlled) and DHCR registration number.\n\nReturns { ok: true }.\n\nNeeds one of: affordable.write.","tags":["Units"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The unit's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"regulation":{"type":"string","maxLength":100000,"description":"regulation"},"registration_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"registration number"},{"type":"null"}]}},"required":["regulation"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/utility_accounts/{id}/set_number":{"post":{"operationId":"set_utility_account_number","summary":"Set utility account number","description":"Saves the account number of a utility account as its last 4 characters and a salted hash, so bills match it. The full number is not stored.\n\nReturns { ok: true }.\n\nNeeds one of: properties.write.","tags":["Utility accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The utility account's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"account_number":{"type":"string","maxLength":100000,"description":"account number"}},"required":["account_number"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/actions/set_utility_auto_record":{"post":{"operationId":"set_utility_auto_record","summary":"Set utility auto record","description":"Turns automatic recording of clean utility bills on or off for the organization.\n\nReturns { ok: true }.\n\nNeeds one of: settings.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"on":{"type":"boolean","description":"on"}},"required":["on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["settings.write"]}},"/v1/vendors/{id}/set_outside_payment":{"post":{"operationId":"set_vendor_outside_payment","summary":"Set vendor outside payment","description":"Marks a vendor as paid in the outside payment system (AvidXchange) and sets its id there.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.approve.","tags":["Vendors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The vendor's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pays_outside":{"type":"boolean","description":"pays outside"},"outside_vendor_code":{"anyOf":[{"type":"string","maxLength":100000,"description":"outside vendor code"},{"type":"null"}]}},"required":["pays_outside"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.approve"]}},"/v1/vendor_rfps/set_status":{"post":{"operationId":"set_vendor_rfp_status","summary":"Set vendor rfp status","description":"Closes an open vendor RFP to bids (closed) or cancels one that is not awarded (canceled).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Vendor rfps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rfp_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rfp id"},"status":{"type":"string","enum":["draft","open","closed","awarded","canceled"],"description":"status"}},"required":["rfp_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/{id}/set_wait":{"post":{"operationId":"set_work_order_wait","summary":"Set work order wait","description":"Records why a waiting work order is waiting, who clears it and the next follow-up date. Staff with maintenance.write on the property; the work order must be on hold, awaiting parts or awaiting approval.\n\nReturns { ok: true }.\n\nNeeds one of: maintenance.write.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["parts","access","proposal","approval","vendor","resident","weather","other"],"description":"reason"},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner user id"},{"type":"null"}]},"follow_up_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"follow up on"},{"type":"null"}]}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/workflow_automations/set_enabled":{"post":{"operationId":"set_workflow_automation_enabled","summary":"Set workflow automation enabled","description":"Turns an automation on or off. Turning it off cancels its in-flight runs; a mandatory automation cannot be turned off.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Workflow automations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"automation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"automation id"},"is_enabled":{"type":"boolean","description":"is enabled"}},"required":["automation_id","is_enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/write_offs/set_approval_limit":{"post":{"operationId":"set_write_off_approval_limit","summary":"Set write off approval limit","description":"Sets the largest write-off staff may post without approval (cents; null = no limit).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: gl.setup.","tags":["Write offs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"limit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"limit cents"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.setup"]}},"/v1/roommate_move_outs/settle":{"post":{"operationId":"settle_roommate_move_out","summary":"Settle roommate move out","description":"Transfer_to_replacement: only once the replacement paid their deposit charge; deductions from deductions and the charge-backs of inspection_id. refund_now: the deductions in the signed amendment, then the lease is charged a security deposit top-up of the portion (once). refund_due (the refund check was voided): issues only that refund again. Refunds by check (from refund_bank_account_id or the property's security deposit account) or another way (other). Completes the return-deadline compliance item and tells the leaving tenant and, for a top-up, the others. Returns the disposition id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Can send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Roommate move outs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"move_out_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"move out id"},"deductions":{"anyOf":[{"description":"deductions"},{"type":"null"}]},"refund_method":{"anyOf":[{"type":"string","enum":["check","ach","card_refund","none","other"],"description":"refund method"},{"type":"null"}]},"refund_bank_account_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"refund bank account id"},{"type":"null"}]},"settled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"settled on"},{"type":"null"}]},"forwarding_address":{"anyOf":[{"type":"string","maxLength":100000,"description":"forwarding address"},{"type":"null"}]},"interest_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"interest cents"},{"type":"null"}]},"inspection_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"inspection id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["move_out_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/collections_letters/skip":{"post":{"operationId":"skip_collections_letter","summary":"Skip collections letter","description":"Marks a draft arrears letter skipped, with an optional reason. Nothing is sent.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Collections letters"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"letter_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"letter id"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["letter_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/stabilized_renewal_limits":{"get":{"operationId":"stabilized_renewal_limits","summary":"Stabilized renewal limits","description":"The renewal calculator for a lease on a rent-stabilized unit. Returns {regulation, start_on, legal_rent_cents, current_rent_cents, is_preferential, order: {number, starts_on, through} | null, terms: [{term_months 12 | 24, increase_pct, max_rent_cents, new_legal_rent_cents}]}; only {regulation} for an unregulated unit.\n\nReturns { result }.\n\nNeeds one of: leasing.read.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"},{"name":"start_on","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"start on"},"description":"start on"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/reports/stale_outstanding_items":{"get":{"operationId":"stale_outstanding_items","summary":"Stale outstanding items","description":"Banking (banking.read on the account): uncleared bank GL lines dated at least older_than_days (default the account's stale_item_days) before as_of (default today), oldest first, with the check behind each when there is one and what staff did with it. Resolved items are left out unless include_resolved. Voided checks and the entries that offset resolved items are not listed.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read.","tags":["Reports"],"parameters":[{"name":"bank_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"description":"bank account id"},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},{"name":"older_than_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"older than days"},{"type":"null"}]}},{"name":"include_resolved","in":"query","required":false,"schema":{"anyOf":[{"description":"include resolved","type":"boolean"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/actions/start_certification":{"post":{"operationId":"start_certification","summary":"Start certification","description":"Starts a draft certification for a lease under a program, finding the HAP contract covering the lease or unit, and pre-filling the household from the previous certification (income and assets copied unverified) or from the lease's tenants. Requires affordable.write.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"housing_program_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"housing program id"},"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"certification_type":{"type":"string","enum":["move_in","initial","annual","interim","unit_transfer","gross_rent_change","other"],"description":"certification type"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"hap_contract_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},{"type":"null"}]},"copy_from_certification_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"copy from certification id"},{"type":"null"}]}},"required":["housing_program_id","lease_id","certification_type","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/conversations/start":{"post":{"operationId":"start_conversation","summary":"Start conversation","description":"Starts a conversation. Staff (communications.write, with access to the subject's property) pick kind, subject, contacts and staff participants. Portal users (tenant/owner/vendor) can only open a support thread about their own lease/owner/vendor account; they become the sole external participant and the team inbox picks it up. An archived owner or an archived or do-not-use vendor cannot. Optionally posts the first message. Returns conversations.id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: communications.write.","tags":["Conversations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","enum":["direct","group","support"],"description":"kind"},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":100000,"description":"title"},{"type":"null"}]},"contact_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"contact ids"},{"type":"null"}]},"user_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"user ids"},{"type":"null"}]},"initial_message":{"anyOf":[{"type":"string","maxLength":100000,"description":"initial message"},{"type":"null"}]},"channel":{"anyOf":[{"type":"string","enum":["in_app","email","sms","voice","whatsapp"],"description":"channel"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"work_order_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},{"type":"null"}]},"service_request_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"service request id"},{"type":"null"}]},"rental_application_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rental application id"},{"type":"null"}]},"lead_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead id"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"owner id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["communications.write"]}},"/v1/actions/start_hap_renewal":{"post":{"operationId":"start_hap_renewal","summary":"Start HAP renewal","description":"Starts the renewal of a project-based Section 8 HAP contract with a MAHRAA option and term. Sets the owner one-year notice date and the renewal request date (120 days before expiry), adds both as compliance items so staff get reminders, and links the property's latest rent comparability study. One open renewal per contract. Returns the renewal id.\n\nReturns { result }.\n\nNeeds one of: affordable.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hap_contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"hap contract id"},"option":{"type":"string","enum":["mark_up_to_market","below_market","mark_to_market","exempt","preservation"],"description":"option"},"term_years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"term years"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["hap_contract_id","option"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["affordable.write"]}},"/v1/renovation_relocations/start":{"post":{"operationId":"start_renovation_relocation","summary":"Start renovation relocation","description":"Records a household's temporary move for its unit's work: hotel (name) or vacant unit, move-out and planned return, nightly room cost and daily per diem. One open relocation per renovation unit.\n\nReturns { result }.\n\nNeeds one of: projects.read.","tags":["Renovation relocations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"renovation_unit_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"renovation unit id"},"kind":{"type":"string","enum":["hotel","vacant_unit","other"],"description":"kind"},"move_out_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move out on"},"planned_return_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"planned return on"},"nightly_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"nightly cost cents"},{"type":"null"}]},"per_diem_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"per diem cents"},{"type":"null"}]},"hotel_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"hotel name"},{"type":"null"}]},"temp_unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"temp unit id"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["renovation_unit_id","kind","move_out_on","planned_return_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.read"]}},"/v1/resale_requests/start":{"post":{"operationId":"start_resale_request","summary":"Start resale request","description":"Takes a received (paid) resale request into work.\n\nReturns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Resale requests"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"request id"}},"required":["request_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/roommate_move_outs/start":{"post":{"operationId":"start_roommate_move_out","summary":"Start roommate move out","description":"One roommate moves out of a lease in force. Writes the draft amendment everyone signs (remove_tenant; other for a primary tenant, whose role passes to a tenant who stays) and the roommate_move_outs row: the date, an optional replacement added in the same amendment, the rent share handling (required when the lease has shares) and the deposit option. portion_cents defaults to the leaving tenant's share of the deposit held; a larger portion needs portion_override_reason, which is recorded. refund_now takes deductions [{description, amount_cents, charge_type_code}] up to the portion. Nothing changes on the lease until the amendment is executed and the move-out date comes. Returns the move-out id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: leasing.write.","tags":["Roommate move outs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"leaving_contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"leaving contact id"},"move_out_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"move out on"},"deposit_option":{"type":"string","enum":["keep_on_lease","transfer_to_replacement","refund_now"],"description":"deposit option"},"portion_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"portion cents"},{"type":"null"}]},"deductions":{"anyOf":[{"description":"deductions"},{"type":"null"}]},"replacement_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"replacement contact id"},{"type":"null"}]},"share_handling":{"anyOf":[{"type":"string","enum":["recompute","ask_tenants"],"description":"share handling"},{"type":"null"}]},"portion_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"portion override reason"},{"type":"null"}]}},"required":["lease_id","leaving_contact_id","move_out_on","deposit_option"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/investor_documents/store":{"post":{"operationId":"store_investor_document","summary":"Store investor document","description":"Registers a file already uploaded to the documents bucket at <org>/<new document id>/<file> (a staff upload or a generated notice, report, statement or K-1) as a document and publishes it in the investor portal: to one investor, or with investor_id null to every investor of the entity. A K-1 replaces the investor's earlier K-1 for that year. Per-investor documents are also linked to the investor's contact. Requires investments.write (no documents.write needed). Returns the investor_documents id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: investments.write.","tags":["Investor documents"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"entity id"},"storage_path":{"type":"string","maxLength":100000,"description":"storage path"},"title":{"type":"string","maxLength":100000,"description":"title"},"document_type":{"type":"string","enum":["k1","subscription_agreement","operating_agreement","ppm","capital_call_notice","distribution_notice","quarterly_report","annual_report","tax_estimate","accreditation_letter","other"],"description":"document type"},"investor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"investor id"},{"type":"null"}]},"tax_year":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"tax year"},{"type":"null"}]},"period_ends_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period ends on"},{"type":"null"}]},"file_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"file name"},{"type":"null"}]},"mime_type":{"anyOf":[{"type":"string","maxLength":100000,"description":"mime type"},{"type":"null"}]},"size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"size bytes"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["upload","generated","signed","scanned","email","sms","import","integration"],"description":"source"},{"type":"null"}]}},"required":["entity_id","storage_path","title","document_type"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/architectural_requests/submit":{"post":{"operationId":"submit_architectural_request","summary":"Submit architectural request","description":"Submits an architectural review request for a homeowner account, from the homeowner portal (caller is an owner on the account) or by staff with associations.write (staff may date it with submitted_at, default now). Sets the review deadline from the submission date plus the association's architectural_review_days (default 45). document_ids: an owner attaches only files they uploaded, staff any document they can read. An owner's request tells the association's managers (architectural_request_update).\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: associations.write.","tags":["Architectural requests"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"homeowner_account_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"homeowner account id"},"project_type":{"type":"string","maxLength":100000,"description":"project type"},"description":{"type":"string","maxLength":100000,"description":"description"},"estimated_cost_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated cost cents"},{"type":"null"}]},"proposed_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"proposed start on"},{"type":"null"}]},"proposed_completion_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"proposed completion on"},{"type":"null"}]},"contractor_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"contractor name"},{"type":"null"}]},"document_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"document ids"},{"type":"null"}]},"submitted_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"submitted at"},{"type":"null"}]}},"required":["homeowner_account_id","project_type","description"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/bills/{id}/submit":{"post":{"operationId":"submit_bill","summary":"Submit a bill","description":"Submit a draft bill. Posted immediately if no approval rule applies, else pending_approval. Returns the new status.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/capital_project_draws/submit":{"post":{"operationId":"submit_capital_project_draw","summary":"Submit capital project draw","description":"Submits a draft draw to the funder. Returns the requested amount (sum of lines).\n\nReturns { result }.\n\nNeeds one of: projects.write.","tags":["Capital project draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"}},"required":["draw_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["projects.write"]}},"/v1/contact_change_requests/submit":{"post":{"operationId":"submit_contact_change_request","summary":"Submit contact change request","description":"Only resident-editable fields are accepted. One pending request per record. Notifies the primary property manager in-app. Returns contact_change_requests.id.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Contact change requests"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contact id"},"subject":{"type":"string","enum":["email","phone","vehicle","pet","emergency_contact"],"description":"subject"},"operation":{"type":"string","enum":["add","update","remove"],"description":"operation"},"target_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"target id"},{"type":"null"}]},"proposed":{"anyOf":[{"description":"proposed"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["contact_id","subject","operation"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/vendors/submit_my_insurance":{"post":{"operationId":"submit_my_vendor_insurance","summary":"Submit my vendor insurance","description":"Vendor portal: adds a certificate of insurance with its uploaded file (a document the caller registered in this org) through record_vendor_insurance (pending_review until staff verify it), links the file to the vendor and logs the upload for the office. Returns the policy id.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Vendors"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"policy_type":{"type":"string","enum":["general_liability","workers_compensation","commercial_auto","umbrella","professional_liability","pollution_liability","bond","other"],"description":"policy type"},"carrier_name":{"type":"string","maxLength":100000,"description":"carrier name"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"},"expires_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},"document_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},"policy_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"policy number"},{"type":"null"}]},"per_occurrence_limit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"per occurrence limit cents"},{"type":"null"}]}},"required":["policy_type","carrier_name","effective_on","expires_on","document_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/owners/submit_tax_details":{"post":{"operationId":"submit_owner_tax_details","summary":"Submit owner tax details","description":"Owner portal: sends tax details (W-9): entity_type, signer_name and signer_title (entities), legal_name, business_name, tax_classification, tin_type, tin, address {address_line1, address_line2, city, region, postal_code}, certified (true) and certified_name (the typed signature). The full TIN goes to Vault; the row keeps the last 4. The first W-9 applies at once; a later one waits for the office and emails the owner's address on file. Replaces the owner's pending tax change.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { result }.\n\nNeeds one of: org.admin.","tags":["Owners"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"description":"values"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["values"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/purchase_orders/{id}/submit":{"post":{"operationId":"submit_purchase_order","summary":"Submit a purchase order","description":"Submit a draft PO. Approved at once unless a payables approval rule applies or its amount reaches the property's owner approval threshold (then pending_approval, and the owners are asked through owner_approvals.purchase_order_id unless the linked work order's owner approval already covers it). Returns the new status.\n\nReturns { result }.\n\nNeeds one of: payables.write.","tags":["Purchase orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The purchase order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/service_requests/submit":{"post":{"operationId":"submit_service_request","summary":"Submit service request","description":"Create a service request. Tenants pass lease_id of one of their leases; staff with maintenance.write may pass a lease, unit or property and the reporting contact. availability = [{\"starts_at\",\"ends_at\",\"note\"}]. Emergency categories force emergency priority. Returns service_requests.id.\n\nReturns { result }.\n\nNeeds one of: maintenance.write.","tags":["Service requests"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":100000,"description":"title"},"description":{"type":"string","maxLength":100000,"description":"description"},"lease_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]},"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]},"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},{"type":"null"}]},"has_permission_to_enter":{"anyOf":[{"type":"boolean","description":"has permission to enter"},{"type":"null"}]},"entry_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"entry notes"},{"type":"null"}]},"has_pets":{"anyOf":[{"type":"boolean","description":"has pets"},{"type":"null"}]},"pet_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"pet notes"},{"type":"null"}]},"location_in_unit":{"anyOf":[{"type":"string","maxLength":100000,"description":"location in unit"},{"type":"null"}]},"availability":{"anyOf":[{"description":"availability"},{"type":"null"}]},"asset_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"asset id"},{"type":"null"}]},"submitted_by_contact_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"submitted by contact id"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["tenant_portal","staff","phone","email","sms","ai_assistant","owner_portal"],"description":"source"},{"type":"null"}]}},"required":["title","description"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.write"]}},"/v1/vendors/submit_invoice":{"post":{"operationId":"submit_vendor_invoice","summary":"Submit vendor invoice","description":"Lines: [{description, amount_cents} or {description, quantity, unit_cost_cents}]. document_storage_path: the invoice file the caller uploaded to bucket documents at <org_id>/<document_id>/<file name>; it is registered as an invoice document linked to the work order (register_document rules, with document_mime_type and document_size_bytes) in the same transaction, so nothing is left behind when the bill is refused. Creates a draft bill (source vendor_portal, needs_review) coded from the work order: property/unit, owner-billable or company (billing_responsibility management) or charged back to the lease (tenant); account = the vendor's default GL else REPAIRS_GENERAL; owner_markup_rate = vendors.markup_rate. Staff review, then submit_bill (owner approval applies above the threshold). Logs invoice_submitted on the work order. Returns the bill id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: payables.write.","tags":["Vendors"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},"bill_number":{"type":"string","maxLength":100000,"description":"bill number"},"lines":{"description":"lines"},"bill_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bill date"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"document_storage_path":{"anyOf":[{"type":"string","maxLength":100000,"description":"document storage path"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]},"document_mime_type":{"anyOf":[{"type":"string","maxLength":100000,"description":"document mime type"},{"type":"null"}]},"document_size_bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"document size bytes"},{"type":"null"}]}},"required":["work_order_id","bill_number","lines"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/vendor_profile_changes/submit":{"post":{"operationId":"submit_vendor_profile_change","summary":"Submit vendor profile change","description":"Vendor portal: submits license, tax or payment details for staff approval. Initial bank submission locks the payout destination; subsequent bank changes and withdrawal require internal support. Unrelated profile updates retain their existing approval flow.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Vendor profile changes"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["contact","services","insurance","license","tax","payment"],"description":"kind"},"values":{"description":"values"},"document_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"document id"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["kind","values"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_order_estimates/submit":{"post":{"operationId":"submit_work_order_estimate","summary":"Submit work order estimate","description":"Vendor (portal) submits or revises its bid for a work order it was asked to bid on or is assigned to; dispatchers may enter a bid on a vendor's behalf with vendor_id. lines = [{\"line_kind\",\"description\",\"quantity\",\"unit_price_cents\"}] (replaces earlier lines) or a lump-sum total_cents. Returns work_order_estimates.id.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch.","tags":["Work order estimates"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"work order id"},"lines":{"anyOf":[{"description":"lines"},{"type":"null"}]},"total_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"total cents"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"scope_of_work":{"anyOf":[{"type":"string","maxLength":100000,"description":"scope of work"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]},"vendor_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"vendor reference"},{"type":"null"}]},"warranty_terms":{"anyOf":[{"type":"string","maxLength":100000,"description":"warranty terms"},{"type":"null"}]},"earliest_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"earliest start on"},{"type":"null"}]},"estimated_duration_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"estimated duration days"},{"type":"null"}]}},"required":["work_order_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch"]}},"/v1/reports/subscription_cancellation":{"get":{"operationId":"subscription_cancellation","summary":"Subscription cancellation","description":"The org's latest scheduled, resumed or applied cancellation with its choices and who made and resumed it. No row when there is none.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.billing.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.billing"]}},"/v1/reports/subscription_cancellation_impact":{"get":{"operationId":"subscription_cancellation_impact","summary":"Subscription cancellation impact","description":"Returns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/suggest_reserve_draw":{"get":{"operationId":"suggest_reserve_draw_bills","summary":"Suggest reserve draw bills","description":"Bill lines at the loan's property that a reserve eligibility rule matches (account, cost code, equipment type or description keyword), with the rule matched, the latest payment as proof (paid date, check number or reference, status) and the draw the bill is already in. Unpaid bills show no payment so the request can wait for proof. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Bills"],"parameters":[{"name":"loan_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"loan id"},"description":"loan id"},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},{"type":"null"}]}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/utility_accounts/{id}/switch_holder":{"post":{"operationId":"switch_utility_account_holder","summary":"Switch utility account holder","description":"Records that a unit utility account changed hands on effective_on: to the resident of lease_id (a lease of the same unit), or back to the owner when lease_id is null. Ends the responsibility in force the day before; a row starting that same day is replaced. Refused when a later responsibility is already recorded. Returns the new utility_account_responsibilities id.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Utility accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The utility account's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"effective_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"effective on"}},"required":["lease_id","effective_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/utility_accounts/sync_holders":{"post":{"operationId":"sync_utility_account_holders","summary":"Sync utility account holders","description":"Rebuilds the automatic holder history of every open unit account marked auto_switch_on_move: the resident for each lease's days, the owner between leases. Periods staff entered by hand are kept. Staff with properties.write (all accessible properties, or one), or the daily job. Returns the rows written.\n\nReturns { result }.\n\nNeeds one of: properties.write.","tags":["Utility accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["properties.write"]}},"/v1/reports/tax_form_1099_copy":{"get":{"operationId":"tax_form_1099_copy","summary":"Tax form 1099 copy","description":"The data of a 1099 recipient copy (Copy B) for the PDF route /api/tax-forms/<id>: boxes, payer (the organization) and recipient (W-9 legal name, address), corrected and interim flags, and the original amounts of a correction. TINs are only their last four digits (tax_profiles.tin_last4, organizations.tax_id_last4); the full TIN never leaves Vault. Staff with owners.read or payables.read (org-wide), or the recipient once the copy is furnished or the form is filed.\n\nReturns { result }.\n\nNeeds one of: owners.read, payables.read.","tags":["Reports"],"parameters":[{"name":"tax_form_1099_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tax form 1099 id"},"description":"tax form 1099 id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.read","payables.read"]}},"/v1/reports/tenant_statement_letterhead":{"get":{"operationId":"tenant_statement_letterhead","summary":"Tenant statement letterhead","description":"The lines come from lease_ledger.\n\nReturns { result }.\n\nNeeds one of: receivables.read.","tags":["Reports"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.read"]}},"/v1/reports/three_way_trust_reconciliation":{"get":{"operationId":"three_way_trust_reconciliation","summary":"Three way trust reconciliation","description":"Banking (banking.read, org-wide): live three-way reconciliation of a trust bank account on a date: (1) adjusted bank balance from the bank reconciliation with that statement date (null when none), (2) book balance of the account, (3) total client ledgers of its property funds. Balanced when all three agree (never without a statement for the date); negative_owner_ledger_count flags overdrawn owners.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read.","tags":["Reports"],"parameters":[{"name":"bank_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"description":"bank account id"},{"name":"as_of","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"description":"as of"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/reports/three_way_trust_reconciliation_funds":{"get":{"operationId":"three_way_trust_reconciliation_funds","summary":"Three way trust reconciliation funds","description":"Banking (banking.read, org-wide): the client-ledger side of the three-way trust reconciliation per property fund of one trust bank account, with the property name, the tenant ledger split into security deposits held and prepaid rent, non_cash_asset_cents (due-from and other receivables counted in owner equity but not held as cash: the account is short by them) and not_on_a_lease_cents (deposit or prepaid rent in the GL on no lease). Drill-down of three_way_trust_reconciliation.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read.","tags":["Reports"],"parameters":[{"name":"bank_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"description":"bank account id"},{"name":"as_of","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"description":"as of"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/reports/three_way_trust_reconciliation_items":{"get":{"operationId":"three_way_trust_reconciliation_items","summary":"Three way trust reconciliation items","description":"Returns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read.","tags":["Reports"],"parameters":[{"name":"bank_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bank account id"},"description":"bank account id"},{"name":"as_of","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"description":"as of"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/homeowner_accounts/{id}/transfer":{"post":{"operationId":"transfer_homeowner_account","summary":"Transfer a homeowner account","description":"Records a sale: closes the seller's account the day before transfer_on (its balance stays on the seller) and opens the buyer's account, optionally charging the association's transfer fee and working capital contribution. Requires associations.write (and associations.assess for the fees).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.assess, associations.write.","tags":["Homeowner accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The homeowner account's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transfer_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"transfer on"},"buyer_contact_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"buyer contact ids"},"purchase_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"purchase price cents"},{"type":"null"}]},"deed_recorded_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"deed recorded on"},{"type":"null"}]},"charge_transfer_fee":{"anyOf":[{"type":"boolean","description":"charge transfer fee"},{"type":"null"}]}},"required":["transfer_on","buyer_contact_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess","associations.write"]}},"/v1/service_requests/{id}/triage":{"post":{"operationId":"triage_service_request","summary":"Triage a service request","description":"Staff triage of a service request: confirm category/priority (or accept the AI suggestion), and by default create a work order (optionally assigned to a technician and/or vendor with an NTE; the vendor must pass the compliance check or compliance_override_reason is recorded, as in assign_work_order). Returns the new work_orders.id, or null when create_work_order is false.\n\nReturns { result }.\n\nNeeds one of: maintenance.dispatch, maintenance.write.","tags":["Service requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The service request's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"category_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"category id"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string","enum":["low","normal","high","emergency"],"description":"priority"},{"type":"null"}]},"create_work_order":{"anyOf":[{"type":"boolean","description":"create work order"},{"type":"null"}]},"accept_ai_suggestion":{"anyOf":[{"type":"boolean","description":"accept ai suggestion"},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":100000,"description":"title"},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"vendor_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor id"},{"type":"null"}]},"not_to_exceed_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"not to exceed cents"},{"type":"null"}]},"due_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"due at"},{"type":"null"}]},"billing_responsibility":{"anyOf":[{"type":"string","enum":["owner","tenant","management","warranty","insurance"],"description":"billing responsibility"},{"type":"null"}]},"internal_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"internal notes"},{"type":"null"}]},"compliance_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"compliance override reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.dispatch","maintenance.write"]}},"/v1/reports/trial_balance_columns":{"post":{"operationId":"trial_balance_columns","summary":"Trial balance columns","description":"Columnar trial balance as of as_of on the basis: one signed balance (debit positive) per GL account and column, where a column is a property fund (column_key the property id, or company for the management company's own books) or, with group_by entity, an accounting entity. Only non-zero cells. Each column balances to zero;\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"as_of":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},"basis":{"anyOf":[{"type":"string","maxLength":100000,"description":"basis"},{"type":"null"}]},"group_by":{"anyOf":[{"type":"string","maxLength":100000,"description":"group by"},{"type":"null"}]},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":["as_of"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/trust_reconciliation_flags":{"get":{"operationId":"trust_reconciliation_flags","summary":"Trust reconciliation flags","description":"Banking (banking.read, org-wide): the three-way check of every active trust bank account at its latest completed statement date (today when it has none), for the dashboard flag. is_balanced is false when bank, book and client ledgers differ; has_statement is false when no reconciliation is completed yet; is_statement_stale is true without a completed statement or when the latest is more than 45 days old.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: banking.read.","tags":["Reports"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/trust_reconciliation_snapshots/data":{"get":{"operationId":"trust_reconciliation_snapshot_data","summary":"Trust reconciliation snapshot data","description":"Banking (banking.read, org-wide): a saved three-way trust reconciliation with its per-property lines, preparer and approver, for its PDF.\n\nReturns { result }.\n\nNeeds one of: banking.read.","tags":["Trust reconciliation snapshots"],"parameters":[{"name":"snapshot_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"snapshot id"},"description":"snapshot id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["banking.read"]}},"/v1/unit_turns/{id}/economics":{"get":{"operationId":"unit_turn_economics","summary":"Unit turn economics","description":"A unit turn's cost and lost rent side by side: invoiced cost of its work orders and purchase orders against its budget, days vacant (move-out to ready, plus days since ready while no new lease is linked) and foregone_rent_estimate_cents = the last rent (or the unit's market rent) x days / 30. The foregone rent is an analytical estimate, never a payable or an expense posting. Runs as the caller.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Unit turns"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The unit turn's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/reports/upcoming_dates":{"post":{"operationId":"upcoming_dates","summary":"Upcoming dates","description":"One feed of dated obligations in the next days: loan maturities, rate cap and swap expiries (record_id = the loan), insurance renewals, contract notice dates (end date minus the notice period), compliance deadlines, capital project completions, scheduled inspections, violation cure deadlines and the month-end close, with the property, responsible person when known and the source record. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Reports"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]},"days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"days"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/lease_critical_dates/upcoming":{"get":{"operationId":"upcoming_lease_critical_dates","summary":"Upcoming lease critical dates","description":"Open commercial critical dates inside their alert window (or overdue) that the caller can see; feeds dashboards and reminder notifications.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: leasing.read.","tags":["Lease critical dates"],"parameters":[{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.read"]}},"/v1/abandoned_home_cases/update":{"post":{"operationId":"update_abandoned_home_case","summary":"Update abandoned home case","description":"Edits an abandoned home case's details that are not its status: the evidence, the assignee, and the notice, lien and sale details once that step is reached (a null clears a text or amount; the notice expiry and sale date keep their value when null). Requires legal.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Abandoned home cases"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"case_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"case id"},"rent_unpaid":{"anyOf":[{"type":"boolean","description":"rent unpaid"},{"type":"null"}]},"utilities_off":{"anyOf":[{"type":"boolean","description":"utilities off"},{"type":"null"}]},"owner_unreachable":{"anyOf":[{"type":"boolean","description":"owner unreachable"},{"type":"null"}]},"belongings_removed":{"anyOf":[{"type":"boolean","description":"belongings removed"},{"type":"null"}]},"mail_accumulating":{"anyOf":[{"type":"boolean","description":"mail accumulating"},{"type":"null"}]},"evidence_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"evidence notes"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"assigned user id"},{"type":"null"}]},"notice_mailed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice mailed on"},{"type":"null"}]},"notice_method":{"anyOf":[{"type":"string","enum":["personal","substitute","posting_and_mailing","certified_mail","first_class_mail","email","portal","process_server","sheriff"],"description":"notice method"},{"type":"null"}]},"notice_expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"notice expires on"},{"type":"null"}]},"lien_amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"lien amount cents"},{"type":"null"}]},"lien_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"lien reference"},{"type":"null"}]},"sale_scheduled_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"sale scheduled on"},{"type":"null"}]},"sale_location":{"anyOf":[{"type":"string","maxLength":100000,"description":"sale location"},{"type":"null"}]},"sale_price_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"sale price cents"},{"type":"null"}]},"close_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"close reason"},{"type":"null"}]}},"required":["case_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/collections_letters/update":{"post":{"operationId":"update_collections_letter","summary":"Update collections letter","description":"Edits a draft arrears letter: an added paragraph, the payment plan offer (empty prints the standard offer) and the reply date (after today).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Collections letters"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"letter_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"letter id"},"note":{"type":"string","maxLength":100000,"description":"note"},"plan_offer":{"type":"string","maxLength":100000,"description":"plan offer"},"respond_by_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"respond by on"}},"required":["letter_id","note","plan_offer","respond_by_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/compliance_items/update":{"post":{"operationId":"update_compliance_item","summary":"Update compliance item","description":"Corrects a compliance item's name, issuer, reference number and dates (evidence dates only once evidence is on file), then recomputes its status.\n\nReturns { ok: true }.\n\nNeeds one of: compliance.write.","tags":["Compliance items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"name":{"type":"string","maxLength":100000,"description":"name"},"issuer":{"anyOf":[{"type":"string","maxLength":100000,"description":"issuer"},{"type":"null"}]},"reference_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"reference number"},{"type":"null"}]},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"issued_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"issued on"},{"type":"null"}]},"expires_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"expires on"},{"type":"null"}]}},"required":["item_id","name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/leases/{id}/update_draft":{"post":{"operationId":"update_draft_lease","summary":"Update a draft lease","description":"Terms of an unsigned (draft or pending_signature) lease in one transaction: dates (no end date = month to month), rent, deposits, pets, pet rent, due day, notice, proration, rollover and an optional new internal note. pet_rent_cents null leaves the pet rent as it is (its dates follow the new term); a value sets it (zero removes it) and needs receivables.write unless it is unchanged. Pets cannot be set to No while pet rent stays. Signed leases change through amendments and rent changes. Requires leasing.write on the property.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Leases"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lease's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"start on"},"rent_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent cents"},"end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"end on"},{"type":"null"}]},"deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"deposit cents"},{"type":"null"}]},"pets_allowed":{"anyOf":[{"type":"boolean","description":"pets allowed"},{"type":"null"}]},"pet_deposit_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pet deposit cents"},{"type":"null"}]},"pet_rent_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"pet rent cents"},{"type":"null"}]},"rent_due_day":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"rent due day"},{"type":"null"}]},"is_first_month_prorated":{"anyOf":[{"type":"boolean","description":"is first month prorated"},{"type":"null"}]},"notice_period_days":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"notice period days"},{"type":"null"}]},"rolls_to_month_to_month":{"anyOf":[{"type":"boolean","description":"rolls to month to month"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]}},"required":["start_on","rent_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/guest_passes/{id}/update":{"post":{"operationId":"update_guest_pass","summary":"Update a guest pass","description":"The host (tenant on the lease or owner on the homeowner account) or staff with residents.write changes a guest pass's name, dates, plate, phone or note. An expired pass given new future dates is active again; a revoked or used pass cannot change.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Guest passes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The guest pass's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"guest_name":{"type":"string","maxLength":100000,"description":"guest name"},"valid_from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"valid from"},"valid_until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"valid until"},"vehicle_plate":{"anyOf":[{"type":"string","maxLength":100000,"description":"vehicle plate"},{"type":"null"}]},"guest_phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"guest phone"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["guest_name","valid_from","valid_until"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/home_purchase_contracts/update":{"post":{"operationId":"update_home_purchase_contract","summary":"Update home purchase contract","description":"Changes the terms of a draft contract (the kind, home and lease stay).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Home purchase contracts"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contract_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"contract id"},"buyer_contact_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"buyer contact id"},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"price cents"},"contract_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"contract on"},"start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"start on"},"term_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"term months"},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"equity_payment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"equity payment cents"},{"type":"null"}]},"option_fee_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"option fee cents"},{"type":"null"}]},"purchase_by":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"purchase by"},{"type":"null"}]},"down_payment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"down payment cents"},{"type":"null"}]},"annual_rate":{"anyOf":[{"type":"number","description":"annual rate"},{"type":"null"}]},"first_payment_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"first payment on"},{"type":"null"}]}},"required":["contract_id","buyer_contact_id","price_cents","contract_on","start_on","term_months"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/investors/{id}/update":{"post":{"operationId":"update_investor","summary":"Update an investor","description":"Edits an investor and its contact: kind, status, name, primary email and phone (blank removes the primary one), source, target investment, payout method and notes. Requires investments.write in org_id, and the investor must belong to that organization. Changing the name, email or phone of a contact that is also a tenant, applicant, owner, vendor, homeowner or another investor also requires contacts.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: contacts.write, investments.write.","tags":["Investors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The investor's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"investor_kind":{"type":"string","enum":["individual","joint","trust","ira","entity","family_office","other"],"description":"investor kind"},"status":{"type":"string","enum":["prospect","active","inactive","do_not_contact"],"description":"status"},"first_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"first name"},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"last name"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"company name"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":100000,"description":"email"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","maxLength":100000,"description":"source"},{"type":"null"}]},"target_investment_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"target investment cents"},{"type":"null"}]},"distribution_method":{"anyOf":[{"type":"string","enum":["ach","check","wire","reinvest","hold"],"description":"distribution method"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["investor_kind","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","investments.write"]}},"/v1/leads/{id}/update_details":{"post":{"operationId":"update_lead_details","summary":"Update lead details","description":"Staff with leasing.write on the lead's property edit the prospect's name, email and phone (also needs contacts.write, since the contact can hold other roles), the lead source and the stated preferences. A merged lead cannot be edited.\n\nReturns { ok: true }.\n\nNeeds one of: contacts.write, leasing.write.","tags":["Leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The lead's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"first name"},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"last name"},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":100000,"description":"email"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":100000,"description":"phone"},{"type":"null"}]},"lead_source_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lead source id"},{"type":"null"}]},"desired_move_in_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"desired move in on"},{"type":"null"}]},"budget_min_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"budget min cents"},{"type":"null"}]},"budget_max_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"budget max cents"},{"type":"null"}]},"bedrooms_min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms min"},{"type":"null"}]},"bedrooms_max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"bedrooms max"},{"type":"null"}]},"desired_lease_term_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"desired lease term months"},{"type":"null"}]},"occupants_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"occupants count"},{"type":"null"}]},"has_pets":{"anyOf":[{"type":"boolean","description":"has pets"},{"type":"null"}]},"pets_description":{"anyOf":[{"type":"string","maxLength":100000,"description":"pets description"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.write","leasing.write"]}},"/v1/loan_reserve_draws/update":{"post":{"operationId":"update_loan_reserve_draw","summary":"Update loan reserve draw","description":"Changes a draft draw's period and notes.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Loan reserve draws"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"draw_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"draw id"},"period_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period start on"},{"type":"null"}]},"period_end_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"period end on"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["draw_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/contacts/{id}/update_my_preferences":{"post":{"operationId":"update_my_contact_preferences","summary":"Update my contact preferences","description":"The signed-in tenant/owner/vendor updates their own communication preferences and consent. Null arguments leave values unchanged. A vendor contact can't change its preferred name: for a person it rebuilt the display name.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Contacts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The contact's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"preferred_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"preferred name"},{"type":"null"}]},"preferred_contact_method":{"anyOf":[{"type":"string","enum":["email","sms","phone","mail","portal"],"description":"preferred contact method"},{"type":"null"}]},"preferred_language":{"anyOf":[{"type":"string","maxLength":100000,"description":"preferred language"},{"type":"null"}]},"sms_consent":{"anyOf":[{"type":"boolean","description":"sms consent"},{"type":"null"}]},"email_opt_out":{"anyOf":[{"type":"boolean","description":"email opt out"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/service_requests/{id}/update_my":{"post":{"operationId":"update_my_service_request","summary":"Update a my service request","description":"Null leaves a field as it is; an empty note clears it.\n\nCan send a message or notice to a resident, owner, vendor or staff member: confirm with the person first. Returns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Service requests"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The service request's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"anyOf":[{"type":"string","maxLength":100000,"description":"description"},{"type":"null"}]},"has_permission_to_enter":{"anyOf":[{"type":"boolean","description":"has permission to enter"},{"type":"null"}]},"entry_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"entry notes"},{"type":"null"}]},"has_pets":{"anyOf":[{"type":"boolean","description":"has pets"},{"type":"null"}]},"pet_notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"pet notes"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/vendors/update_my_profile":{"post":{"operationId":"update_my_vendor_profile","summary":"Update my vendor profile","description":"Vendor portal: applies contact details (section contact: dba_name, first_name and last_name of a company's contact person, phone, email) or services (section services: service_area, is_emergency_available, trades as names matched to this org's trades) at once to the caller's vendor record in this org, and logs what changed (status applied) for the office. Returns the change id, or null when nothing changed. Call once per org for a multi-org update.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Vendors"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"section":{"type":"string","enum":["contact","services","insurance","license","tax","payment"],"description":"section"},"values":{"description":"values"}},"required":["section","values"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/opening_balance_batches/update":{"post":{"operationId":"update_opening_balance_batch","summary":"Update opening balance batch","description":"Changes a draft opening balance batch's as-of date and memo. A posted or voided batch is refused.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: gl.write, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"as_of_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of on"},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]}},"required":["batch_id","as_of_on"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","imports.run"]}},"/v1/outreach_batches/update":{"post":{"operationId":"update_outreach_batch","summary":"Update outreach batch","description":"Edits a draft outreach batch's script and, for texts, its steps ([{day 0-60, body up to 480 characters}], 1 to 5).\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Outreach batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"script":{"type":"string","maxLength":100000,"description":"script"},"sms_steps":{"anyOf":[{"description":"sms steps"},{"type":"null"}]}},"required":["batch_id","script"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/payment_batches/{id}/update":{"post":{"operationId":"update_payment_batch","summary":"Update a payment batch","description":"Change an open batch's name, date, control count, control total and memo. Each call sets every field; null clears the optional ones and keeps the date. The property and deposit account stay as opened. Posted and canceled batches are read-only.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Payment batches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The payment batch's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":100000,"description":"name"},{"type":"null"}]},"batch_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"batch date"},{"type":"null"}]},"control_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"control count"},{"type":"null"}]},"control_total_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"control total cents"},{"type":"null"}]},"memo":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/payment_plans/{id}/update":{"post":{"operationId":"update_payment_plan","summary":"Update a payment plan","description":"Change a draft or active plan's written terms and whether covered charges skip late fees. Installments and amounts stay as agreed: cancel the plan and set up a new one to change them.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Payment plans"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The payment plan's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"terms":{"anyOf":[{"type":"string","maxLength":100000,"description":"terms"},{"type":"null"}]},"suppress_late_fees":{"anyOf":[{"type":"boolean","description":"suppress late fees"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/receipt_instruments/update":{"post":{"operationId":"update_receipt_instrument","summary":"Update receipt instrument","description":"Correct the details of a recorded check / money order (number, date, payer, bank, routing, account, MICR, memo); null leaves a field unchanged. Re-runs the duplicate-check guard and keeps receipts.reference equal to the check number on all its receipts. Lease, tenant or applied charges: correct_offline_payment. Amount or method: void_offline_payment and enter it again.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Receipt instruments"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instrument_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"instrument id"},"check_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"check number"},{"type":"null"}]},"check_dated_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"check dated on"},{"type":"null"}]},"payer_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"payer name"},{"type":"null"}]},"drawer_bank_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"drawer bank name"},{"type":"null"}]},"routing_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"routing number"},{"type":"null"}]},"account_number":{"anyOf":[{"type":"string","maxLength":100000,"description":"account number"},{"type":"null"}]},"account_last4":{"anyOf":[{"type":"string","maxLength":100000,"description":"account last4"},{"type":"null"}]},"micr_line":{"anyOf":[{"type":"string","maxLength":100000,"description":"micr line"},{"type":"null"}]},"memo_line":{"anyOf":[{"type":"string","maxLength":100000,"description":"memo line"},{"type":"null"}]},"payee_name":{"anyOf":[{"type":"string","maxLength":100000,"description":"payee name"},{"type":"null"}]},"duplicate_override_reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"duplicate override reason"},{"type":"null"}]}},"required":["instrument_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/renovation_relocations/update":{"post":{"operationId":"update_renovation_relocation","summary":"Update renovation relocation","description":"Changes a relocation's planned return, records the household's return, or sets the per diem paid to date. Arguments left null keep their value.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Renovation relocations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"relocation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"relocation id"},"planned_return_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"planned return on"},{"type":"null"}]},"returned_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"returned on"},{"type":"null"}]},"per_diem_paid_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"per diem paid cents"},{"type":"null"}]}},"required":["relocation_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/actions/update_tax_form_1099_status":{"post":{"operationId":"update_tax_form_1099_status","summary":"Update tax form 1099 status","description":"Move a 1099 through draft -> final -> filed -> accepted / rejected (rejected -> filed again), or void a draft/final form. Amounts are locked once a form leaves draft. payables.write (vendor forms) or owners.write (owner forms), org-wide.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_form_1099_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"tax form 1099 id"},"status":{"type":"string","enum":["draft","final","filed","accepted","rejected","corrected","void"],"description":"status"},"filing_reference":{"anyOf":[{"type":"string","maxLength":100000,"description":"filing reference"},{"type":"null"}]},"efile_provider":{"anyOf":[{"type":"string","maxLength":100000,"description":"efile provider"},{"type":"null"}]}},"required":["tax_form_1099_id","status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/update_utility_received":{"post":{"operationId":"update_utility_bill_received","summary":"Update utility bill received","description":"Corrects a provider statement that is not billed back yet (received or entered, in no live billing run). The amount is fixed once a payables bill is linked. Re-derives the vacant-unit flag. Requires payables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"utility_bill_received_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility bill received id"},"statement_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"statement on"},"service_start_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"service start on"},"service_end_on":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"service end on"},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},"due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"due on"},{"type":"null"}]},"usage_quantity":{"anyOf":[{"type":"number","description":"usage quantity"},{"type":"null"}]},"usage_unit":{"anyOf":[{"type":"string","maxLength":100000,"description":"usage unit"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]}},"required":["utility_bill_received_id","statement_on","service_start_on","service_end_on","amount_cents"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/vendor_rfps/update":{"post":{"operationId":"update_vendor_rfp","summary":"Update vendor rfp","description":"Changes the title, trade, scope of work, bid due date and desired start of a vendor RFP that is not awarded or canceled. An open RFP cannot move its bid due date into the past.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Vendor rfps"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rfp_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"rfp id"},"title":{"type":"string","maxLength":100000,"description":"title"},"vendor_trade_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"vendor trade id"},{"type":"null"}]},"scope_of_work":{"anyOf":[{"type":"string","maxLength":100000,"description":"scope of work"},{"type":"null"}]},"bid_due_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"bid due on"},{"type":"null"}]},"desired_start_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"desired start on"},{"type":"null"}]}},"required":["rfp_id","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/{id}/update_status":{"post":{"operationId":"update_work_order_status","summary":"Update work order status","description":"Move a work order through its state machine. Dispatchers (maintenance.dispatch + property access) may make any allowed transition (verify a completed work order, cancel); the assigned technician or the assigned vendor may only set scheduled, in_progress, on_hold, awaiting_parts, completed. reason = hold/cancel reason, required for on_hold and awaiting_parts. For completed, note says what was done and becomes the resident's note (required on resident work, 00111; complete_work_order is the usual path). Reopening a completed, verified or canceled work order is reopen_work_order. note on verified is the verification note. occurred_at (default now) records a change that happened earlier: it stamps work_order_events.occurred_at and work_order_status_history.changed_at, and must be no earlier than the latest recorded status change and not in the future. Returns the new status.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["new","assigned","scheduled","in_progress","on_hold","awaiting_parts","awaiting_approval","completed","verified","canceled"],"description":"status"},"note":{"anyOf":[{"type":"string","maxLength":100000,"description":"note"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]},"occurred_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"occurred at"},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/bills/utility_tracking":{"get":{"operationId":"utility_bill_tracking","summary":"Utility bill tracking","description":"One row per utility account and month (up to 36 months ending through_month, default this month): statements received that month, their current charges and the state: paid (every payables bill paid), entered (in payables), received (not entered), missing (no statement in a month the account was billing), not_yet (this month), closed or not_expected (before the first statement). Security invoker.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Bills"],"parameters":[{"name":"through_month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"through month"},{"type":"null"}]}},{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"months"},{"type":"null"}]}},{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/vendors/compliance_warnings":{"post":{"operationId":"vendor_compliance_warnings","summary":"Vendor compliance warnings","description":"Vendor_ids null = every vendor of the org. Vendors with nothing wrong are left out.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: contacts.read, maintenance.dispatch, maintenance.read, payables.read.","tags":["Vendors"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"vendor ids"},{"type":"null"}]},"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"as of"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","maintenance.dispatch","maintenance.read","payables.read"]}},"/v1/vendors/cost_by_issue":{"post":{"operationId":"vendor_cost_by_issue","summary":"Vendor cost by issue","description":"Vendor cost comparison per issue type: for work orders opened from from to to (org dates) with a category and a vendor, per category and vendor the work order count, the invoices for them, the invoiced cost (bill lines linked to the work order, not draft or void), the average cost per work order, the category's average across vendors and the average days from opened to completed. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Vendors"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"from"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"to"},"property_ids":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"property ids"},{"type":"null"}]}},"required":["from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/vendor_credits/bill":{"get":{"operationId":"vendor_credits_for_bill","summary":"Vendor credits for bill","description":"The vendor's open credits with money left on a property where this bill is still open, and how much of that money can apply. Empty unless the bill is approved or partly paid.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: payables.read.","tags":["Vendor credits"],"parameters":[{"name":"bill_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"bill id"},"description":"bill id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.read"]}},"/v1/documents/vendor_missing":{"get":{"operationId":"vendor_missing_documents","summary":"Vendor missing documents","description":"Feeds the \"identify missing documents\" assistant and reminders.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: contacts.read, payables.read.","tags":["Documents"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["contacts.read","payables.read"]}},"/v1/tenant_sales_reports/verify":{"post":{"operationId":"verify_tenant_sales_report","summary":"Verify tenant sales report","description":"Staff verifies (or disputes) a submitted sales report. verified_at stamps verified_at (default now). Requires receivables.write.\n\nReturns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["Tenant sales reports"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"report_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"report id"},"dispute":{"anyOf":[{"type":"boolean","description":"dispute"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":100000,"description":"notes"},{"type":"null"}]},"verified_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"verified at"},{"type":"null"}]}},"required":["report_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/violations/next_actions":{"get":{"operationId":"violation_next_actions","summary":"Violation next actions","description":"The recommended next action, its due date and its owner for each open violation (building_violations open, repair in progress or repaired) and each open DOB ECB violation and HPD litigation case (nyc_building_records), by fixed rules: repaired, not certified = certify the correction with proof by the certify-by date (else 10 days after the repair); class C (or immediately hazardous) heat or hot water with no work order = dispatch an emergency work order within 24 hours of issue; other class C with no work order = the same; no work order = create one by the cure or certify-by date (else 30 days, 90 for class A); certify-by within 14 days = complete the repair and certify; else complete the repair by the cure date. ECB with a future hearing = assign to counsel 14 days before it; ECB without one = resolve the penalty within 30 days. Open HPD litigation = notify the asset manager within 2 days of the case opening. Owner: the violation's owner, else the property's primary manager; litigation goes to the org's first asset manager. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Violations"],"parameters":[{"name":"property_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"property id"},{"type":"null"}]}},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"unit id"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/violation_notices/letter":{"get":{"operationId":"violation_notice_letter","summary":"Violation notice letter","description":"Merge data for a violation notice letter (rendered on request as a PDF): the letter stored on the notice when it was sent, with the current letterhead. Readable by staff with associations.read and the association, the owners who may read the violation and the association's directors.\n\nReturns { result }.\n\nNeeds one of: associations.read.","tags":["Violation notices"],"parameters":[{"name":"notice_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"notice id"},"description":"notice id"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.read"]}},"/v1/bills/{id}/void":{"post":{"operationId":"void_bill","summary":"Void a bill","description":"Void a bill (drafts: payables.write; posted bills: payables.pay; a reason is required). Payments must be voided first. A prepaid spread of the bill is reversed first.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.pay, payables.write.","tags":["Bills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The bill's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.pay","payables.write"]}},"/v1/cam_reconciliations/{id}/void":{"post":{"operationId":"void_cam_reconciliation","summary":"Void a cam reconciliation","description":"Voids an unposted reconciliation so a fresh one can be calculated. Requires receivables.write.\n\nReturns { ok: true }.\n\nNeeds one of: receivables.write.","tags":["CAM reconciliations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The cam reconciliation's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/entity_income_allocations/void":{"post":{"operationId":"void_entity_income_allocation","summary":"Void entity income allocation","description":"Voids an income allocation (its lines stop counting in capital accounts and K-1 drafts). Requires investments.write.\n\nReturns { ok: true }.\n\nNeeds one of: investments.write.","tags":["Entity income allocations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allocation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"allocation id"},"reason":{"type":"string","maxLength":100000,"description":"reason"}},"required":["allocation_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.write"]}},"/v1/actions/void_offline_payment":{"post":{"operationId":"void_offline_payment","summary":"Void offline payment","description":"Void an offline payment entered in error (wrong amount, never received). Voids all of the instrument's posted receipts (reopening the charges they paid). Refused while any of them is on a bank deposit: the bank has that money, so void the deposit first, or use correct_offline_payment to move it to another lease. A cash receipt keeps its number.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instrument_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"instrument id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"voided_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"voided on"},{"type":"null"}]}},"required":["instrument_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/opening_balance_batches/void":{"post":{"operationId":"void_opening_balance_batch","summary":"Void opening balance batch","description":"Moves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: gl.write, imports.run.","tags":["Opening balance batches"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"batch id"},"void_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"void date"},{"type":"null"}]}},"required":["batch_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["gl.write","imports.run"]}},"/v1/owner_distribution_lines/void":{"post":{"operationId":"void_owner_distribution_line","summary":"Void owner distribution line","description":"Void one owner distribution line, reversing its entry on reversed_on (default today; Requires owners.distribute and access to the line's property.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: owners.distribute.","tags":["Owner distribution lines"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"line_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"line id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"reversed_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"reversed on"},{"type":"null"}]}},"required":["line_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["owners.distribute"]}},"/v1/bills/void_utility_received":{"post":{"operationId":"void_utility_bill_received","summary":"Void utility bill received","description":"Voids a provider statement entered by mistake: only when it is not billed back, in no live billing run, and its payables bill (if any) is void. The row stays for the record. Requires payables.write.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: payables.write.","tags":["Bills"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"utility_bill_received_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"utility bill received id"}},"required":["utility_bill_received_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["payables.write"]}},"/v1/waterfall_runs/void":{"post":{"operationId":"void_waterfall_run","summary":"Void waterfall run","description":"Voids a waterfall run; a paid run's journal entry is reversed (after reversing the book-back entries of payouts already marked failed, so their money is not returned twice, 00043). Voided runs no longer count toward returned capital, paid pref or carry.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { ok: true }.\n\nNeeds one of: investments.distribute.","tags":["Waterfall runs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"run_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"run id"},"void_date":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"void date"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["run_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["investments.distribute"]}},"/v1/compliance_items/waive":{"post":{"operationId":"waive_compliance_item","summary":"Waive compliance item","description":"Exempts a compliance item (with reason), optionally until a date after which it is evaluated again.\n\nReturns { ok: true }.\n\nNeeds one of: compliance.write.","tags":["Compliance items"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"item id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"until":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"until"},{"type":"null"}]}},"required":["item_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["compliance.write"]}},"/v1/actions/waive_late_fee":{"post":{"operationId":"waive_late_fee","summary":"Waive late fee","description":"Waive a late or NSF fee (reverses its charge; the assessment stays so the run does not re-assess it).\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"charge_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"charge id"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["charge_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/violation_fines/{id}/waive":{"post":{"operationId":"waive_violation_fine","summary":"Waive a violation fine","description":"Waives all or part of a fine by posting a credit against its charge dated waived_on (default today). Returns the credit id. Requires associations.assess.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: associations.assess.","tags":["Violation fines"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The violation fine's id."}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]},"waived_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"waived on"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.assess"]}},"/v1/actions/withdraw_application":{"post":{"operationId":"withdraw_application","summary":"Withdraw application","description":"The primary applicant (or staff) withdraws an application; open screening orders are canceled.\n\nReturns { ok: true }.\n\nNeeds one of: leasing.write.","tags":["Actions"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"application_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"application id"},"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":["application_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["leasing.write"]}},"/v1/board_approvals/{id}/withdraw":{"post":{"operationId":"withdraw_board_approval","summary":"Withdraw a board approval","description":"Withdraws a pending board approval; an assessment schedule it was voting on goes back from pending_approval to draft so staff can edit and resend it. Requires associations.write.\n\nReturns { ok: true }.\n\nNeeds one of: associations.write.","tags":["Board approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The board approval's id."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"anyOf":[{"type":"string","maxLength":100000,"description":"reason"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["associations.write"]}},"/v1/violation_appeals/withdraw":{"post":{"operationId":"withdraw_violation_appeal","summary":"Withdraw violation appeal","description":"An owner of the home withdraws their waiting appeal.\n\nReturns { ok: true }.\n\nNeeds one of: org.admin.","tags":["Violation appeals"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Send the same key to retry a write safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appeal_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"appeal id"}},"required":["appeal_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/{id}/financials":{"get":{"operationId":"work_order_financials","summary":"Work order financials","description":"A work order's money, kept apart from its maintenance status: estimate (its estimated cost or the submitted proposal), approved (not-to-exceed or the accepted proposal), committed (purchase order lines), invoiced (bill lines not in draft), paid (payments allocated to those bills, prorated by the work order's share of each bill). financial_status: not_invoiced, awaiting_invoice (work done, no invoice), invoice_in_review, approved_unpaid, paid. Runs as the caller.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Work orders"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The work order's id."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/work_orders/performance":{"post":{"operationId":"work_order_performance","summary":"Work order performance","description":"Filters are whitelisted OR groups combined with AND.\n\nReturns { result }.\n\nNeeds one of: maintenance.read.","tags":["Work orders"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"anyOf":[{"description":"filters"},{"type":"null"}]}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_order_ratings/summary":{"get":{"operationId":"work_order_rating_summary","summary":"Work order rating summary","description":"Residents' ratings of completed work per vendor (vendor_id set) and per technician (user_id = the assigned staff user): how many, the average (2 decimals), how many were 1 or 2 stars, and the last one. Only work orders the caller can see (property access, or assigned to them). Residents and vendors cannot call it.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: maintenance.read.","tags":["Work order ratings"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["maintenance.read"]}},"/v1/work_orders/sites":{"post":{"operationId":"work_order_sites","summary":"Work order sites","description":"Where each work order is (property name, unit number and street address; the unit's own address when it has one) for the people doing the work: the dispatched vendor, a vendor asked to bid, and staff who can see the work order (including a technician assigned without the property). Rows the caller cannot see are left out. Vendors read no other property or unit fields.\n\nReturns { data, truncated } with at most 1000 rows.\n\nNeeds one of: org.admin.","tags":["Work orders"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"work_order_ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"work order ids"}},"required":["work_order_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/workflow_automations/catalog":{"get":{"operationId":"workflow_automation_catalog","summary":"Workflow automation catalog","description":"Everything the automation builder and the AI drafting box can choose from, per subject type: subjects (with allowed scopes and delay units), actions, recipients and conditions (each with subject_types), date and no-reply anchors and event triggers (each with subject_type, unit for anchors, and merge_fields: the {{fields}} custom wording may use for it), channels, message types (notification events with their template merge fields), merge_fields (every field with its subjects), the enum lists conditions use (lease and lead statuses, maintenance priorities, work order statuses, vendor document types, compliance item types) and limits. Org-specific choices (categories, lead sources, trades) come from workflow_automation_options. Signed-in users. Defined in 00042, redefined in 00048 and 00055.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Workflow automations"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/workflow_automations/options":{"get":{"operationId":"workflow_automation_options","summary":"Workflow automation options","description":"Org members: the org-specific choices the automation builder and drafting box need for id-based conditions: maintenance categories, active lead sources, vendor trades (ids and names) and the org's emergency keywords.\n\nReturns { result }.\n\nNeeds one of: org.admin.","tags":["Workflow automations"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["org.admin"]}},"/v1/write_offs/balance":{"post":{"operationId":"write_off_balance","summary":"Write off balance","description":"Write off a lease's open non-deposit balance (or part of it) as bad debt. Over the org's write-off approval limit it needs receivables.override or gl.close_period; others file request_write_off. Returns the write-off id.\n\nMoves money or changes the books: send an Idempotency-Key, and confirm with the person first. Returns { result }.\n\nNeeds one of: receivables.write.","tags":["Write offs"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required: this request moves money. Send the same key to retry safely for 24 hours: the first response is returned again.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lease_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"reason":{"type":"string","maxLength":100000,"description":"reason"},"amount_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]},"written_off_on":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"written off on"},{"type":"null"}]}},"required":["lease_id","reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}},"/v1/write_offs/needs_approval":{"get":{"operationId":"write_off_needs_approval","summary":"Write off needs approval","description":"True when writing off amount_cents (null = the open non-deposit balance) on this lease is over the org's approval limit for the caller, so the form files request_write_off instead.\n\nReturns { result }.\n\nNeeds one of: receivables.write.","tags":["Write offs"],"parameters":[{"name":"lease_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"lease id"},"description":"lease id"},{"name":"amount_cents","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"amount cents"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"The input is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, unknown, revoked or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the permission this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such record in the key's organization.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with existing data, or an Idempotency-Key reused for another request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The request is valid but the business rules refuse it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 600 requests in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The request took too long or the API is busy. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-permissions":["receivables.write"]}}}}