> ## Documentation Index
> Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# manage_leads

> Everything that writes to a lead or to the records hanging off it — the lead, its notes, its manual logs, and backfilled activity.

<Warning>**WRITE** · 14 operations · may change data</Warning>

Everything that writes to a lead or to the records hanging off it — the lead itself, its notes, its manual logs, and backfilled activity entries.

```js theme={null}
manage_leads({ action, ids?, lead_id?, fields?, owner?, confirm_token? })
```

`action`: `create` · `update` · `assign` · `update_property` · `add_inquiry` · `trash` · `add_note` · `update_note` · `delete_note` · `add_manual_log` · `delete_manual_log` · `add_activity` · `sync_brokermint`

`owner` accepts a name or an id — the server resolves it, so assigning a lead to "Ada Chen" doesn't need a lookup call first. `assign` with `preview: true` reports who *would* receive the lead without committing.
