FairePlace Property Management API
Comprehensive API for managing properties, leases, tenants, and all aspects of real estate management. Built with Rust and Actix-web following hexagonal architecture principles.
Authentication
This API uses API keys for authentication with tenant-based isolation.
Base URL
- Production:
https://api.faireplace.com/api
Tags
Health
API health check endpoints
Contacts
Contact management
Estates
Real estate unit (lot) management
Leases
Lease management
Signatures
Electronic lease signing.
These endpoints allow you to:
- Initiate a signature process for a lease
- List contracts pending signature
- Request a signature (send OTP)
- Validate an OTP and apply the signature
- Track signature status
Workers
Endpoints reserved for Cloudflare workers (signature-orchestrator, etc.).
These endpoints use API key authentication (
X-API-Key) instead of
Bearer API keys. They allow workers to:
- Update individual signature statuses
- Finalize signature documents
- Synchronize state between workers and the database
Lessees
Tenant management.
Dedicated tenant endpoints
The endpoints under/lessee/leases are specifically designed to allow tenants to:
- View their own leases
- Sign their leases electronically
- Download signed leases
lessee:leases:read- To view leaseslessee:leases:sign- To sign leaseslessee:leases:download- To download signed leases
Owners
Owner management
Places
Building/residence management
Rooms
Room management
Equipment
Equipment management
Inventory
Inventory management
Keys
Key management
Types
Property, room, and equipment types
Media
Media management (photos, PDF documents)
Rent Regulation & Rent Control
Country references, rent regulation checks, and rent control compliance
Lease Types
Lease types and their configurations
Energy Diagnosis
Energy performance diagnostics (DPE)
Estate Diagnostics
Estate diagnostic documents management (lead, asbestos, electrical, gas, risk assessment, co-ownership rules).
Diagnostics are attached to a property (estate) and can be automatically linked to lease annexes
via the
POST /leases/{lease_id}/annexes/attach-mandatory endpoint.
Only one active diagnostic per type per estate is allowed. Creating a new diagnostic of the same type
automatically deactivates the previous one.Meters
Meter (compteur) management for tracking consumption in properties.
Key features
- Meter CRUD — Create and manage physical meters (electricity, gas, water, heating, cooling)
- Sub-meter hierarchy — Organize meters in parent/child relationships
- Readings — Record manual, automatic, photo, or estimated readings
- Auto-consumption — Automatic consumption calculation with rollover support
- Anomaly detection — Flags consumption deviating >50% from average
- Billing integration — Link meters to leases and charges for billing
Meter types
ELECTRICITY, GAS, WATER_HOT, WATER_COLD, HEATING, COOLING
Billing types
INDIVIDUAL, COLLECTIVE, SHARED, INCLUDEDCharges
Rental charge management including freeze periods, distribution references,
notifications, regulations, reviews, audit logs, and meter associations.
Key features
- Freeze Periods — Legislative freeze periods that block charge modifications (Art. 17-2 Loi 89-462)
- Distribution References — Historical reference values for distribution key calculations
- Notifications — Consumption alerts, annual review notices, regularization reminders
- Regulations — Charge adjustments due to freeze periods or legal exceptions
- Reviews — Annual charge regularization process (Art. 23 Loi 89-462)
- Audit Logs — Full traceability of charge modifications
- Meters — Physical meter associations with leases and charges
Services
Building-related services
Credits
Credit system management.
Credits allow owners to pay for platform services
(e.g., lease signing) without having to enter their payment information each time.
Features
- Purchase credits via Stripe Checkout Session
- Check credit balance
- Transaction history (purchases, consumption)
- List available packages
Restrictions
- Only users with the owner role can purchase credits
- Credits are isolated by tenant (multi-tenant)
Lease Annexes
Management of regulatory and supplementary lease annexes.
Annexes are the mandatory and optional documents that accompany a rental
contract in compliance with French legislation (ALUR Law, Decrees 87-712/87-713, etc.).
System catalog
The platform maintains a global catalog of system annexes containing official regulatory documents. These annexes are shared across all tenants and serve as templates when attaching to a lease.Three source categories
| Source | Description | Example |
|---|---|---|
STATIC_FILE | Embedded static PDF file | Information notice, Recoverable charges |
GENERATED | PDF dynamically generated from lease data | Furniture inventory |
USER_UPLOAD | Document manually uploaded by the user | Insurance certificate |
Recommended workflow
- Create the lease via
POST /leases - Attach mandatory annexes via
POST /leases/{id}/annexes/attach-mandatory - Add custom annexes via
POST /leases/{id}/annexes - Check compliance via
GET /leases/{id}/annexes/compliance - Download PDFs via
GET /leases/{id}/annexes/{annex_id}/download
Webhooks
Endpoints for receiving webhooks from external services.
Stripe Webhooks
The/webhooks/stripe endpoint receives Stripe events to:
- Automatically credit accounts after successful purchase
- Log individual payments for traceability
Syndic Management
Syndic Fund Calls
Syndic Fund Allocations
Configurations
Templates
Charge Configuration
Amendment Validations
Amendment Rent Details
Amendment Duration Details
Amendment Documents
Amendment History
Amendment Notifications
Documents
PDF
Rent Payments
Condition Reports
Lease Notices
Lease Termination
Rent Reminders
Payments
Stripe