Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Prospects

Prospects are the records your team has chosen to work: a property you want to buy, an owner you want to reach, a company you are researching. A record becomes a prospect when someone adds it (in the app, from a list, from a drive, or through this API), and it stays a prospect until it is archived.
Every prospect carries a lifecycle (active, opportunity, or archived), an optional star (favorite), tags from the workspace's tag catalog, and any notes, files, and photos your team attaches. Everything that happens to it lands in its activity feed.

IDs

KindFormatExample
Prospectprospect_{id}prospect_8812
Property recordprop_{id}prop_12345
Person recordperson_{id}person_67890
Notenote_{id}note_9
Filefile_{id}file_2
Photophoto_{id}photo_44
Tagtag_{id}tag_5
Bare numbers are accepted anywhere an ID is expected.

Where an add came from

The prospect's source says how it was added: api for API calls, zapier, cli, or mcp when the request carries X-DealMachine-Source with that value (the DealMachine CLI, MCP server, and Zapier app set it for you). App-owned sources such as driving and mail cannot be set through the API.
Adding records to a list through /v1/lists also tracks them as prospects unless the call passes add_as_prospects: false.

Resources

EndpointDescription
Add prospectsTrack one record or up to 1,000
List prospectsPage by lifecycle, source, list, tag, or search
Get prospectOne prospect with counts
Get prospect by recordResolve a record to its prospect
Update prospectLifecycle and favorite
Remove prospectArchive
Check prospectsState for up to 500 records
Count prospectsLifecycle by record type
ActivityThe record's feed
NotesList, add, edit, delete
FilesUpload, list, download, delete
PhotosList, add, delete (property prospects)
Tags on a prospectSet, add, remove
Tag catalogCreate and manage workspace tags