---
title: "Deposit an anonymous lease draft"
method: POST
path: "/public/tools/bail-draft"
tags: ["Public Tools"]
---

# Deposit an anonymous lease draft

`POST /public/tools/bail-draft`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/public/tools/bail-draft`
- Auth: none required

Stores an opaque lease-draft payload (FP2-T1 contract) and returns a
short-lived `draft_token` (TTL 30 minutes). The landing carries the token
in a `.faireplace.com` cookie and exchanges it at authenticated ingestion.

The body must be a JSON object containing at least `owner`, `logement` and
`lease`. Public, unauthenticated tool.

## Example

```bash
curl -X POST https://api.faireplace.com/api/public/tools/bail-draft \
  -H "Content-Type: application/json" \
  -d '{
    "owner": { "last_name": "Dupont" },
    "logement": { "name": "T2" },
    "lease": { "rent_amount": 850.0 }
  }'
```

**Response** (201):
```json
{
  "draft_token": "f47ac10b58cc4372a5670e02b2c3d479",
  "expires_at": "2026-06-20T10:30:00+00:00"
}
```

## Request body

- BailDraftRequest: Opaque lease-draft payload (FP2-T1 contract). Validated lightly here: it must be a JSON object containing at least `owner`, `logement` and `lease`. Strict typed validation happens at authenticated ingestion.
  - `owner` object, required: Landlord block (free-form draft).
  - `logement` object, required: Dwelling block (free-form draft).
  - `lease` object, required: Lease block (free-form draft).
  - `lessee` object, nullable
  - `schema_version` integer

## Response `201`

Draft stored; opaque token returned.

- BailDraftResponse
  - `draft_token` string, required: Opaque token to carry in a `.faireplace.com` cookie, then exchanged at authenticated ingestion. Valid for 30 minutes.
  - `expires_at` string, date-time, required: Expiry timestamp (ISO 8601, now + TTL).

## Other responses

- `400`: Bad request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
