# Property Management API for France

import { Head } from "zudoku/components";

<Head>
  <meta property="og:type" content="website" />
  <meta property="og:title" content="FairePlace API Documentation" />
  <meta property="og:description" content="REST API for properties, leases, electronic signatures, and French rental compliance. 574 endpoints." />
  <meta property="og:url" content="https://developers.faireplace.com/" />
  <meta property="og:site_name" content="FairePlace Developers" />
  <meta property="og:image" content="https://faireplace.com/wp-content/uploads/2026/02/og-developers.png" />
  <meta property="og:image:width" content="1200" />
  <meta property="og:image:height" content="630" />
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:title" content="FairePlace API Documentation" />
  <meta name="twitter:description" content="Build property management into your product. 574 REST API endpoints." />
  <meta name="twitter:image" content="https://faireplace.com/wp-content/uploads/2026/02/og-developers.png" />
  <script type="application/ld+json">{`
    {
      "@context": "https://schema.org",
      "@graph": [
        {
          "@type": "Organization",
          "@id": "https://faireplace.com/#organization",
          "name": "FairePlace",
          "url": "https://faireplace.com",
          "logo": "https://faireplace.com/wp-content/uploads/2026/02/og-developers.png",
          "sameAs": ["https://app.faireplace.com", "https://developers.faireplace.com"],
          "contactPoint": {
            "@type": "ContactPoint",
            "contactType": "technical support",
            "email": "api-support@faireplace.com",
            "url": "https://developers.faireplace.com/"
          }
        },
        {
          "@type": "WebSite",
          "@id": "https://developers.faireplace.com/#website",
          "url": "https://developers.faireplace.com",
          "name": "FairePlace API Documentation",
          "publisher": { "@id": "https://faireplace.com/#organization" },
          "inLanguage": "en"
        },
        {
          "@type": "WebAPI",
          "@id": "https://developers.faireplace.com/#webapi",
          "name": "FairePlace Property Management API",
          "description": "REST API for properties, leases, electronic signatures, and French rental compliance. 574 endpoints.",
          "documentation": "https://developers.faireplace.com/",
          "url": "https://api.faireplace.com/api",
          "termsOfService": "https://faireplace.com/cgu/",
          "provider": { "@id": "https://faireplace.com/#organization" }
        },
        {
          "@type": "SoftwareApplication",
          "name": "FairePlace API",
          "applicationCategory": "DeveloperApplication",
          "operatingSystem": "Any (REST API)",
          "url": "https://developers.faireplace.com",
          "description": "Build French property management into your product: properties, leases, eIDAS electronic signatures, and rental-law compliance (Loi ALUR, IRL, encadrement des loyers) through a REST API.",
          "offers": [
            { "@type": "Offer", "name": "Gratuit", "price": "0", "priceCurrency": "EUR", "description": "Unlimited lease PDFs, 5 properties, eIDAS signatures at 4.90 EUR each" },
            { "@type": "Offer", "name": "Starter", "price": "14.90", "priceCurrency": "EUR", "description": "5 eIDAS signatures included, 8 properties, 2 members" },
            { "@type": "Offer", "name": "Pro", "price": "34.90", "priceCurrency": "EUR", "description": "20 eIDAS signatures, 25 properties, 5 members, read API access" },
            { "@type": "Offer", "name": "Business", "price": "69.90", "priceCurrency": "EUR", "description": "Unlimited signatures, 100 properties, full API access, SSO/SAML" },
            { "@type": "Offer", "name": "Sur Mesure", "price": "99", "priceCurrency": "EUR", "description": "From 99 EUR/month: unlimited, white-label" }
          ],
          "provider": { "@id": "https://faireplace.com/#organization" }
        },
        {
          "@type": "FAQPage",
          "@id": "https://developers.faireplace.com/#faq",
          "mainEntity": [
            {
              "@type": "Question",
              "name": "What is the FairePlace API?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "FairePlace is a REST API for property management in France. It lets you create and manage properties and leases, generate Loi ALUR-compliant lease PDFs, collect eIDAS-compliant electronic signatures, and run French rental-law compliance checks (IRL rent revision, encadrement des loyers, deposit limits), through 574 endpoints at https://api.faireplace.com/api."
              }
            },
            {
              "@type": "Question",
              "name": "Does the FairePlace API support legally binding electronic signatures?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "Yes. FairePlace provides eIDAS-compliant electronic signatures with OTP (SMS/email) verification and a signed proof archive, so you can collect legally binding lease signatures without any third-party signature service."
              }
            },
            {
              "@type": "Question",
              "name": "Is the FairePlace API compliant with French rental law?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "Yes. Compliance is built in: Loi ALUR lease templates, IRL rent indexation, encadrement des loyers (rent control) checks, zone tendue detection, security-deposit limits and mandatory annexes are validated automatically on every lease."
              }
            },
            {
              "@type": "Question",
              "name": "How do I authenticate with the FairePlace API?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "Authentication uses an API key passed as a Bearer token: 'Authorization: Bearer fp_your_api_key'. Requests are isolated per organization (tenant). See https://developers.faireplace.com/quickstart/authentication."
              }
            },
            {
              "@type": "Question",
              "name": "How much does the FairePlace API cost?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "Billing is credit-based: 1 credit = 1 eIDAS signature, charged when a signature is launched. The free Gratuit tier includes unlimited lease PDFs and 5 properties, with signatures at 4.90 EUR each. Paid plans bundle signatures and unlock API access: Starter (14.90 EUR/month), Pro (34.90 EUR/month, read API access), Business (69.90 EUR/month, full API access + SSO/SAML), and Sur Mesure (from 99 EUR/month, white-label). No commitment."
              }
            }
          ]
        }
      ]
    }
  `}</script>
</Head>

<div className="fp-home">

{/* ── Hero : la proposition à gauche, le premier appel à droite. Un lecteur
     arrivé ici veut voir l'API, pas une illustration de l'API. ── */}
<div className="fp-hero">
  <div>
    <p className="fp-eyebrow">Developer documentation</p>
    <h2>The API for French property management</h2>
    <p className="fp-manuscrit">faire place à ce qui compte</p>
    <p className="fp-hero-sub">
      Create leases, collect advanced electronic signatures (eIDAS), and keep every
      rent compliant with French law. From API key to signed lease PDF in six calls.
    </p>
    <div className="fp-actions">
      <a className="fp-btn fp-btn-primaire" href="/quickstart/getting-started">Create your first lease</a>
      <a className="fp-btn fp-btn-secondaire" href="/api">API reference</a>
    </div>
  </div>

  <div className="fp-premier-appel">
    <p className="fp-premier-appel-titre">Your first call</p>
    {/* Les sauts de ligne sont explicites : JSX supprime les blancs de fin de
        ligne, y compris dans un <pre>. Et la barre oblique de continuation doit
        passer par une expression, sinon MDX lit « \{ » comme une accolade
        échappée et affiche l'expression telle quelle. */}
    <pre>
      <span className="fp-commentaire"># List the buildings on your account</span>{"\n"}
      {"curl https://api.faireplace.com/api/places \\"}{"\n"}
      {"  -H "}<span className="fp-jeton">{`"Authorization: Bearer $FP_API_KEY"`}</span>
    </pre>
  </div>
</div>

{/* ── L'aplat vert. La charte veut le vert en présence forte, pas en filet
     d'accent : c'est ce bloc qui le porte. Texte blanc, accents jaune. ── */}
<div className="fp-aplat">
  <h2>What the API actually does for you</h2>
  <p className="fp-aplat-intro">
    French rental law is the hard part. It is also the part you do not have to write.
  </p>
  <div className="fp-atouts">
    <div className="fp-atout">
      <h3>Leases that hold up</h3>
      <p>
        Generate a lease PDF that follows the loi ALUR, then collect advanced
        electronic signatures with OTP verification. No third-party signature
        service to plug in.
      </p>
      <a href="/signatures/lease-workflow">See the workflow</a>
    </div>
    <div className="fp-atout">
      <h3>Compliance, checked on write</h3>
      <p>
        Rent caps, IRL revision, deposit ceilings, tense-zone rules. Validated when
        the lease is created, not left to your code to rediscover.
      </p>
      <a href="/compliance/rent-regulation">How compliance works</a>
    </div>
    <div className="fp-atout">
      <h3>The whole lifecycle</h3>
      <p>
        Buildings, apartments, rooms, meters, charges, receipts, amendments,
        termination. 574 operations, one consistent REST surface.
      </p>
      <a href="/properties/overview">Explore the API</a>
    </div>
  </div>
</div>

{/* ── Le parcours complet, copiable tel quel. ── */}
<div className="fp-parcours">
  <h2>From zero to signed lease in six calls</h2>
  <p className="fp-parcours-intro">Every call below is copy-paste ready. Replace the placeholders and run it.</p>

```bash
# 1. Set your API key
export FP_API_KEY="fp_your_api_key_here"

# 2. Create an owner
curl -X POST https://api.faireplace.com/api/owners \
  -H "Authorization: Bearer $FP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"first_name": "Jean", "last_name": "Dupont", "owner_category": "individual", "email": "jean@example.com", "mobile_phone": "+33612345678"}'

# 3. Create a building, then an apartment inside it
PLACE=$(curl -s -X POST https://api.faireplace.com/api/places \
  -H "Authorization: Bearer $FP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Residence Les Jardins", "owner_id": "<owner_id>", "postal_code": "75012", "city": "Paris"}' | jq -r '.id')

curl -X POST https://api.faireplace.com/api/places/$PLACE/estates \
  -H "Authorization: Bearer $FP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"area": 45.0, "number_of_room": 2, "floor": 3}'

# 4. Create the lease
curl -X POST https://api.faireplace.com/api/leases \
  -H "Authorization: Bearer $FP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"estate_id": "<estate_id>", "rent_amount": 950.00, "deposit_amount": 950.00, "start_date": "2026-04-01", "end_date": "2029-03-31"}'

# 5. Generate the PDF
curl -X POST https://api.faireplace.com/api/leases/<lease_id>/pdf \
  -H "Authorization: Bearer $FP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template_type": "StandardLease"}'

# 6. Collect the signatures (OTP by SMS)
curl -X POST https://api.faireplace.com/api/leases/<lease_id>/signature/initiate \
  -H "Authorization: Bearer $FP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pdf_id": "<pdf_id>", "signers": [{"signer_type": "PROPRIETAIRE", "first_name": "Jean", "last_name": "Dupont", "email": "jean@example.com", "phone": "+33612345678"}]}'
```

  <div className="fp-actions" style={{marginTop: '18px'}}>
    <a className="fp-btn fp-btn-primaire" href="/quickstart/getting-started">Full tutorial, with responses</a>
    <a className="fp-btn fp-btn-secondaire" href="/quickstart/sandbox">Try it in the sandbox</a>
  </div>
</div>

{/* ── Sommaire. Une liste dense se parcourt plus vite qu'une grille de tuiles,
     et la grille de cartes identiques est bannie des deux côtés. ── */}
<div className="fp-sommaire">
  <h2>Everything else</h2>
  <div className="fp-index">
    <a href="/quickstart/getting-started"><span className="fp-index-nom">Quickstart</span><span className="fp-index-quoi">Your first call</span></a>
    <a href="/properties/overview"><span className="fp-index-nom">Properties</span><span className="fp-index-quoi">Buildings, rooms, meters</span></a>
    <a href="/quickstart/authentication"><span className="fp-index-nom">Authentication</span><span className="fp-index-quoi">API keys, permissions</span></a>
    <a href="/leases/overview"><span className="fp-index-nom">Leases</span><span className="fp-index-quoi">Contracts, charges, receipts</span></a>
    <a href="/quickstart/sandbox"><span className="fp-index-nom">Sandbox</span><span className="fp-index-quoi">Test off production</span></a>
    <a href="/signatures/overview"><span className="fp-index-nom">Signatures</span><span className="fp-index-quoi">eIDAS, OTP, proof file</span></a>
    <a href="/core/errors"><span className="fp-index-nom">Errors</span><span className="fp-index-quoi">Codes, retries, rate limits</span></a>
    <a href="/compliance/rent-regulation"><span className="fp-index-nom">Compliance</span><span className="fp-index-quoi">Rent caps, IRL, tense zones</span></a>
    <a href="/core/pagination"><span className="fp-index-nom">Core concepts</span><span className="fp-index-quoi">Pagination, tenancy, media</span></a>
    <a href="/people/lessees"><span className="fp-index-nom">Tenants and owners</span><span className="fp-index-quoi">The people on a lease</span></a>
    <a href="/payments/credits"><span className="fp-index-nom">Payments</span><span className="fp-index-quoi">Credits and webhooks</span></a>
    <a href="/api"><span className="fp-index-nom">API reference</span><span className="fp-index-quoi">574 operations</span></a>
  </div>
</div>

<div className="fp-pied">
  <span>Something unclear or missing? Write to api-support@faireplace.com</span>
  <span>Hosted in France, on Scaleway.</span>
</div>

</div>
