---
title: "Ingest a public bail draft"
method: POST
path: "/leases/ingest-draft"
tags: ["Leases"]
---

# Ingest a public bail draft

`POST /leases/ingest-draft`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/leases/ingest-draft`
- Auth: HTTP bearer

Ingests a public bail (lease) draft into a real lease for the authenticated tenant.

The draft is identified by a `draft_token`, which may be supplied in the request body
or via cookie (in which case the body can be omitted). On success, the created lease,
estate, owner, and (optionally) lessee identifiers are returned.

## Usage Example

```bash
curl -X POST https://api.faireplace.com/api/leases/ingest-draft \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "draft_token": "draft_a1b2c3d4e5f6" }'
```

**Response**:
```json
{
  "lease_id": "660e8400-e29b-41d4-a716-446655440001",
  "estate_id": "aa0e8400-e29b-41d4-a716-446655440005",
  "owner_id": "bb0e8400-e29b-41d4-a716-446655440006",
  "lessee_id": "cc0e8400-e29b-41d4-a716-446655440007"
}
```

## Request body

- IngestDraftRequest: Request to ingest a public bail (lease) draft into a real lease. The draft token may also be supplied via cookie; in that case the body can be omitted.
  - `draft_token` string, nullable: Token identifying the public draft to ingest.

## Response `201`

Draft ingested; lease created successfully

- IngestResult: Result of ingesting a draft, referencing the entities created or linked.
  - `lease_id` string, uuid, required: Identifier of the created lease.
  - `estate_id` string, uuid, required: Identifier of the created/linked estate.
  - `owner_id` string, uuid, required: Identifier of the created/linked owner.
  - `lessee_id` string, uuid, nullable: Identifier of the created/linked lessee, if any.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable Entity
- `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)
