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

DealMachine API

Access real estate data, manage properties, and automate workflows through the DealMachine API. Authenticate via API key or the DealMachine CLI and start building integrations.
curl https://api.v2.dealmachine.com/v1/account \ -H "Authorization: Bearer dm_sk_live_xxx"

Quick Start

# Install and login npm install -g dealmachine dm login # Check your account dm account

Using an API Key

curl https://api.v2.dealmachine.com/v1/account \ -H "Authorization: Bearer dm_sk_live_xxx"

Base URL

https://api.v2.dealmachine.com/v1

Authentication

Include your API key in the Authorization header:
Authorization: Bearer dm_sk_live_xxx
Get your API key from Developer Settings or by running dm login.
API keys are scoped to your organization. Keep them secure and never expose them in client-side code.

Response Format

All responses are JSON. Successful responses wrap their payload in a data envelope:
{ "data": { "organization": { "id": 1, "name": "My Company", "createdAt": "2024-01-01T00:00:00.000Z" }, "user": { "id": null, "authType": "api_key" }, "plan": { "name": "Basic", "enrichment_credit_cap": 10000, "is_paid": true, "billing_cycle_start": "2024-01-01T00:00:00.000Z", "billing_cycle_end": "2024-02-01T00:00:00.000Z" } } }
Error responses include a request ID for debugging:
{ "error": { "code": "invalid_api_key", "message": "Invalid API key", "request_id": "req_abc123def456" } }