# DealMachine + Gmail Integrations: Connect with Zapier MCP
> zapier.com/apps/dealmachine/integrations/gmail
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate DealMachine and Gmail in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · add_label`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "gmail", owner: "me" });

const { data } = await zapier.runAction({
  app: "gmail",
  actionType: "write",
  action: "add_label",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action gmail write add_label \
  --inputs '{}'
```

## DealMachine

### Identity
DealMachine is a real estate investing platform that helps investors find property owners, manage leads, and run direct mail campaigns.

- App slug: dealmachine
- Operations published here: 29 (4 events, 6 functions, 19 queries)

### Authentication
Zapier connects to DealMachine via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection dealmachine
```

### Capabilities

#### Events (4)

Events fire when something happens in DealMachine. Use them to start a run.

##### New Prospect
Fires when a property or person becomes a prospect in DealMachine, whether it was saved in the app, added from a list, or created through the API. Free.

- Type: read · Key: `new_prospect`
- Requires: nothing
- Optional: record_type, include_contacts
- SDK: `runAction({ app: "dealmachine", actionType: "read", action: "new_prospect" })`
- CLI: `npx zapier-sdk run-action dealmachine read new_prospect`

##### Note Added to Prospect
Fires when someone writes a note on a prospect, from the app, the mobile app, or the API. Free.

- Type: read · Key: `note_added`
- Requires: nothing
- Optional: record_type, include_contacts
- SDK: `runAction({ app: "dealmachine", actionType: "read", action: "note_added" })`
- CLI: `npx zapier-sdk run-action dealmachine read note_added`

##### Prospect Status Changed
Fires when a prospect moves between Active, Opportunity, and Archived. Narrow it to one destination status to react to new opportunities or archived leads. Free.

- Type: read · Key: `prospect_status_changed`
- Requires: nothing
- Optional: lifecycle, record_type, include_contacts
- SDK: `runAction({ app: "dealmachine", actionType: "read", action: "prospect_status_changed" })`
- CLI: `npx zapier-sdk run-action dealmachine read prospect_status_changed`

##### Prospect Tagged
Fires when a tag is added to a prospect. Pick a tag to fire only for that one, for example to start a sequence when a lead receives the Probate tag. Free.

- Type: read · Key: `prospect_tagged`
- Requires: nothing
- Optional: tag_id, record_type, include_contacts
- SDK: `runAction({ app: "dealmachine", actionType: "read", action: "prospect_tagged" })`
- CLI: `npx zapier-sdk run-action dealmachine read prospect_tagged`

#### Functions (6)

Functions change something in DealMachine.

##### Add File to Prospect
Attach a file from an earlier Zap step to a prospect. Supports files up to 25 MB and records the attachment in the prospect timeline. Free.

- Type: write · Key: `add_file`
- Requires: file
- Optional: prospect_id, record_type, record_id, file_name, content_type
- SDK: `runAction({ app: "dealmachine", actionType: "write", action: "add_file" })`
- CLI: `npx zapier-sdk run-action dealmachine write add_file`

##### Add Note to Prospect
Write a note on a prospect. It shows in the prospect timeline in the app and the mobile app. Free.

- Type: write · Key: `add_note`
- Requires: body
- Optional: prospect_id, record_type, record_id
- SDK: `runAction({ app: "dealmachine", actionType: "write", action: "add_note" })`
- CLI: `npx zapier-sdk run-action dealmachine write add_note`

##### Add Prospect
Add a property or person to your prospects. Pass a DealMachine record ID, or a street address to match the property first (address matching uses 1 property credit). Adding an existing prospect returns it unchanged.

- Type: write · Key: `add_prospect`
- Requires: nothing
- Optional: record_type, record_id, address, favorite
- SDK: `runAction({ app: "dealmachine", actionType: "write", action: "add_prospect" })`
- CLI: `npx zapier-sdk run-action dealmachine write add_prospect`

##### Add Tag to Prospect
Tag a prospect. Choose an existing tag, or type a name and DealMachine creates the tag if it does not exist. Free.

- Type: write · Key: `add_tag`
- Requires: nothing
- Optional: prospect_id, record_type, record_id, tag_id, tag_name
- SDK: `runAction({ app: "dealmachine", actionType: "write", action: "add_tag" })`
- CLI: `npx zapier-sdk run-action dealmachine write add_tag`

##### Add to List
File properties or people into a DealMachine list. By default they also become prospects, so they show in the Prospects workspace and fire New Prospect. Free.

- Type: write · Key: `add_to_list`
- Requires: list_id, record_ids
- Optional: record_type, add_as_prospects
- SDK: `runAction({ app: "dealmachine", actionType: "write", action: "add_to_list" })`
- CLI: `npx zapier-sdk run-action dealmachine write add_to_list`

##### Change Prospect Status
Move a prospect to Active, Opportunity, or Archived. Archiving also ends its mail and closes open opportunities; list memberships are kept. Free.

- Type: write · Key: `change_status`
- Requires: lifecycle
- Optional: prospect_id, record_type, record_id, favorite
- SDK: `runAction({ app: "dealmachine", actionType: "write", action: "change_status" })`
- CLI: `npx zapier-sdk run-action dealmachine write change_status`

#### Queries (19)

Queries read from DealMachine and return data. They change nothing.

##### Autocomplete Addresses
Suggest DealMachine property addresses from a partial street address. Each suggestion includes its DealMachine property ID. Free, no credits used.

- Type: search · Key: `autocomplete_locations`
- Requires: q
- Optional: scope, state, limit
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "autocomplete_locations" })`
- CLI: `npx zapier-sdk run-action dealmachine search autocomplete_locations`

##### Check Do Not Call Status
Check whether a phone number is on the National Do Not Call (DNC) registry. Uses DealMachine people credits from the connected account when the phone matches a person. Usage is logged to your DealMachine account activity feed.

- Type: search · Key: `check_dnc`
- Requires: phone
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "check_dnc" })`
- CLI: `npx zapier-sdk run-action dealmachine search check_dnc`

##### Enrich Property by Address
Look up a property from a street address. Choose No contacts for property-only data with zero people credits. 

- Type: search · Key: `enrich_address`
- Requires: nothing
- Optional: full_address, street, city, state, zip, contact_audience, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "enrich_address" })`
- CLI: `npx zapier-sdk run-action dealmachine search enrich_address`

##### Enrich Property by APN
Look up a property by Assessor Parcel Number (APN) and state. 

- Type: search · Key: `enrich_apn`
- Requires: apn, state
- Optional: contact_audience, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "enrich_apn" })`
- CLI: `npx zapier-sdk run-action dealmachine search enrich_apn`

##### Enrich Person by Email
Look up a person (and optionally their properties) by email address. 

- Type: search · Key: `enrich_email`
- Requires: email
- Optional: include_properties, city_place_id, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "enrich_email" })`
- CLI: `npx zapier-sdk run-action dealmachine search enrich_email`

##### Find People by Name
Look up people by name and optional state. 

- Type: search · Key: `enrich_name`
- Requires: last_name
- Optional: first_name, middle_initial, state, city_place_id, include_properties, fields, page, per_page
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "enrich_name" })`
- CLI: `npx zapier-sdk run-action dealmachine search enrich_name`

##### Enrich Person by Phone
Look up a person (and optionally their properties) by phone number. 

- Type: search · Key: `enrich_phone`
- Requires: phone
- Optional: include_properties, city_place_id, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "enrich_phone" })`
- CLI: `npx zapier-sdk run-action dealmachine search enrich_phone`

##### Enrich Property by Coordinates
Find the closest property to a latitude/longitude. 

- Type: search · Key: `enrich_reverse_geocode`
- Requires: latitude, longitude
- Optional: contact_audience, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "enrich_reverse_geocode" })`
- CLI: `npx zapier-sdk run-action dealmachine search enrich_reverse_geocode`

##### Find Comparable Sales
Find recent comparable sales (comps) near a subject property. 

- Type: search · Key: `find_comps`
- Requires: property_id
- Optional: timeframe, radius_miles, limit, min_year_built, max_year_built
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "find_comps" })`
- CLI: `npx zapier-sdk run-action dealmachine search find_comps`

##### Get People by IDs
Fetch up to 250 people and optional extended fields by DealMachine person IDs. 

- Type: search · Key: `get_people`
- Requires: ids
- Optional: fields, include_properties
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "get_people" })`
- CLI: `npx zapier-sdk run-action dealmachine search get_people`

##### Get Person by ID
Fetch a single person (optionally with their properties) by DealMachine person ID. 

- Type: search · Key: `get_person`
- Requires: id
- Optional: include_properties, property_limit, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "get_person" })`
- CLI: `npx zapier-sdk run-action dealmachine search get_person`

##### Get Property by ID
Fetch a property by DealMachine property ID. Choose No contacts for property-only data with zero people credits. 

- Type: search · Key: `get_property`
- Requires: id
- Optional: contact_audience, fields
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "get_property" })`
- CLI: `npx zapier-sdk run-action dealmachine search get_property`

##### Get Prospect
Fetch a prospect by Prospect ID, or find the prospect that tracks a property or person record. Includes status, tags, record summary, and note and file counts. Free.

- Type: search · Key: `get_prospect`
- Requires: nothing
- Optional: prospect_id, record_type, record_id
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "get_prospect" })`
- CLI: `npx zapier-sdk run-action dealmachine search get_prospect`

##### List Fields
List available data fields and their IDs for properties or people. Free — no credits used.

- Type: search · Key: `list_fields`
- Requires: nothing
- Optional: source_type, search
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "list_fields" })`
- CLI: `npx zapier-sdk run-action dealmachine search list_fields`

##### List Filters
List available search filters and their IDs/operators for properties or people. Use the returned filter_id values in the Search actions' Advanced Filters JSON. Free — no credits used.

- Type: search · Key: `list_filters`
- Requires: nothing
- Optional: source_type, search
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "list_filters" })`
- CLI: `npx zapier-sdk run-action dealmachine search list_filters`

##### Search People
Search DealMachine for people by location and filters. 

- Type: search · Key: `people_search`
- Requires: nothing
- Optional: location_type, location_code, latitude, longitude, radius_miles, include_lists_json, exclude_lists_json, page, per_page, estimate_cost, filters_json, locations_json
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "people_search" })`
- CLI: `npx zapier-sdk run-action dealmachine search people_search`

##### Search Properties
Search DealMachine for properties by location and filters. 

- Type: search · Key: `property_search`
- Requires: nothing
- Optional: location_type, location_code, latitude, longitude, radius_miles, contact_audience, include_lists_json, exclude_lists_json, page, per_page, estimate_cost, filters_json, locations_json
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "property_search" })`
- CLI: `npx zapier-sdk run-action dealmachine search property_search`

##### Find Locations
Resolve a place name to a DealMachine location (state, county, city, or ZIP) and its search code. Free, no credits used.

- Type: search · Key: `search_locations`
- Requires: q
- Optional: type, state
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "search_locations" })`
- CLI: `npx zapier-sdk run-action dealmachine search search_locations`

##### Validate Address
Validate and standardize a US address via USPS (returns deliverability, ZIP+4, county/FIPS). Does not consume DealMachine property/contact credits.

- Type: search · Key: `validate_address`
- Requires: nothing
- Optional: full_address, street, unit, city, state, zip
- SDK: `runAction({ app: "dealmachine", actionType: "search", action: "validate_address" })`
- CLI: `npx zapier-sdk run-action dealmachine search validate_address`

## Gmail

### Identity
One of the most popular email services, Gmail keeps track of all your emails with threaded conversations, tags, and Google-powered search to find any message you need.

- App slug: gmail
- Operations published here: 23 (8 events, 12 functions, 2 queries, 1 search-or-write action)

### Authentication
Zapier connects to Gmail via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection gmail
```

### Capabilities

#### Events (8)

Events fire when something happens in Gmail. Use them to start a run.

##### New Attachment
Triggers when you receive a new attachment. Each check only finds emails received in the last hour, so attachments on older emails will not trigger, even if they appear in test results.

- Type: read · Key: `attachment`
- Requires: nothing
- Optional: label_ids, query
- SDK: `runAction({ app: "gmail", actionType: "read", action: "attachment" })`
- CLI: `npx zapier-sdk run-action gmail read attachment`

##### New Label
Triggers when you add a new label.

- Type: read · Key: `label`
- Requires: nothing
- SDK: `runAction({ app: "gmail", actionType: "read", action: "label" })`
- CLI: `npx zapier-sdk run-action gmail read label`

##### New Labeled Conversation
Triggers the first time a label is added to a conversation. Replies within that conversation will not trigger again.

- Type: read · Key: `labeled_conversation`
- Requires: labelId
- SDK: `runAction({ app: "gmail", actionType: "read", action: "labeled_conversation" })`
- CLI: `npx zapier-sdk run-action gmail read labeled_conversation`

##### New Labeled Email
Triggers when an email is labeled. Also triggers when a reply is added to the conversation.

- Type: read · Key: `label_message_v2`
- Requires: label_ids
- Optional: extended_polling_window
- SDK: `runAction({ app: "gmail", actionType: "read", action: "label_message_v2" })`
- CLI: `npx zapier-sdk run-action gmail read label_message_v2`

##### New Email
Triggers when a new email appears in the specified mailbox. Each check only finds emails received in the last hour, so older emails moved into the mailbox or label will not trigger, even if they appear in test results. To trigger on older emails you label, use New Labeled Email.

- Type: read · Key: `message`
- Requires: nothing
- Optional: label_ids
- SDK: `runAction({ app: "gmail", actionType: "read", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail read message`

##### New Email Matching Search
Triggers when you receive a new email that matches a search string you provide. Each check only finds emails received in the last hour, so older emails that match later (for example, after you label them) will not trigger, even if they appear in test results. To trigger on older emails you label, use New Labeled Email.

- Type: read · Key: `search`
- Requires: query
- SDK: `runAction({ app: "gmail", actionType: "read", action: "search" })`
- CLI: `npx zapier-sdk run-action gmail read search`

##### New Starred Email
Triggers when you receive a new email and star it within two days.

- Type: read · Key: `star_message`
- Requires: nothing
- SDK: `runAction({ app: "gmail", actionType: "read", action: "star_message" })`
- CLI: `npx zapier-sdk run-action gmail read star_message`

##### New Conversation
Triggers when a new email conversation begins in your inbox. Each check only finds conversations with an email received in the last hour, so older conversations moved into a label will not trigger, even if they appear in test results. To trigger on older conversations you label, use New Labeled Conversation.

- Type: read · Key: `thread_v2`
- Requires: nothing
- Optional: label_ids
- SDK: `runAction({ app: "gmail", actionType: "read", action: "thread_v2" })`
- CLI: `npx zapier-sdk run-action gmail read thread_v2`

#### Functions (12)

Functions change something in Gmail.

##### Add Label to Email
Add a label to an email message.

- Type: write · Key: `add_label`
- Requires: new_label_ids, message_id
- SDK: `runAction({ app: "gmail", actionType: "write", action: "add_label" })`
- CLI: `npx zapier-sdk run-action gmail write add_label`

##### Archive Email
Archive an email message.

- Type: write · Key: `archive_email`
- Requires: message_id
- SDK: `runAction({ app: "gmail", actionType: "write", action: "archive_email" })`
- CLI: `npx zapier-sdk run-action gmail write archive_email`

##### Delete Email
Sends an email message to the trash.

- Type: write · Key: `delete_email`
- Requires: message_id
- SDK: `runAction({ app: "gmail", actionType: "write", action: "delete_email" })`
- CLI: `npx zapier-sdk run-action gmail write delete_email`

##### Create Draft
Create a draft email message.

- Type: write · Key: `draft_v2`
- Requires: subject, body
- Optional: to, cc, bcc, from, from_name, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file, recipient_instructions
- SDK: `runAction({ app: "gmail", actionType: "write", action: "draft_v2" })`
- CLI: `npx zapier-sdk run-action gmail write draft_v2`

##### Create Draft Reply
Create a draft reply to an existing email.

- Type: write · Key: `draft_v2_reply`
- Requires: thread_id, body
- Optional: trigger_instructions, to, cc, bcc, from, from_name, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file
- SDK: `runAction({ app: "gmail", actionType: "write", action: "draft_v2_reply" })`
- CLI: `npx zapier-sdk run-action gmail write draft_v2_reply`

##### Forward Email
Forward an existing email message to new recipients.

- Type: write · Key: `forward_email`
- Requires: message_id
- Optional: to, cc, bcc, from, from_name, reply_to, additional_message, body_type, include_attachments, label_ids
- SDK: `runAction({ app: "gmail", actionType: "write", action: "forward_email" })`
- CLI: `npx zapier-sdk run-action gmail write forward_email`

##### Get Conversation
Retrieves every message in a Gmail conversation by its thread ID.

- Type: write · Key: `get_conversation`
- Requires: thread_id
- Optional: format
- SDK: `runAction({ app: "gmail", actionType: "write", action: "get_conversation" })`
- CLI: `npx zapier-sdk run-action gmail write get_conversation`

##### Create Label
Creates a new label.

- Type: write · Key: `label`
- Requires: name
- SDK: `runAction({ app: "gmail", actionType: "write", action: "label" })`
- CLI: `npx zapier-sdk run-action gmail write label`

##### Send Email
Create and send a new email message.

- Type: write · Key: `message`
- Requires: subject, body
- Optional: to, cc, bcc, from, from_name, reply_to, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file, send_to_groups
- SDK: `runAction({ app: "gmail", actionType: "write", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail write message`

##### Remove Label From Email
Remove a label from an email message.

- Type: write · Key: `remove_label`
- Requires: message_id, label_ids
- SDK: `runAction({ app: "gmail", actionType: "write", action: "remove_label" })`
- CLI: `npx zapier-sdk run-action gmail write remove_label`

##### Remove Label From Conversation
Remove a specified label from all emails within a conversation.

- Type: write · Key: `remove_thread_label`
- Requires: thread_id, label_ids
- SDK: `runAction({ app: "gmail", actionType: "write", action: "remove_thread_label" })`
- CLI: `npx zapier-sdk run-action gmail write remove_thread_label`

##### Reply to Email
Send a reply to an email message.

- Type: write · Key: `reply_to_message`
- Requires: thread_id, body
- Optional: trigger_instructions, to, cc, bcc, from, from_name, reply_to, subject, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file
- SDK: `runAction({ app: "gmail", actionType: "write", action: "reply_to_message" })`
- CLI: `npx zapier-sdk run-action gmail write reply_to_message`

#### Queries (2)

Queries read from Gmail and return data. They change nothing.

##### Get Attachment by Filename
Retrieves a specific Gmail message attachment by Filename.

- Type: search · Key: `attachment`
- Requires: message_id, attachment_filename
- Optional: attachment_size
- SDK: `runAction({ app: "gmail", actionType: "search", action: "attachment" })`
- CLI: `npx zapier-sdk run-action gmail search attachment`

##### Find Email
Finds an email message.

- Type: search · Key: `message`
- Requires: query
- SDK: `runAction({ app: "gmail", actionType: "search", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail search message`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Send Email
Finds or creates a specific message.

- Type: search_or_write · Key: `message`
- Requires: query, subject, body
- Optional: to, cc, bcc, from, from_name, reply_to, body_type, signature, render_signature_in_html, signature_delimiter, label_ids, file, send_to_groups
- SDK: `runAction({ app: "gmail", actionType: "search_or_write", action: "message" })`
- CLI: `npx zapier-sdk run-action gmail search_or_write message`

## Links
- DealMachine integrations: zapier.com/apps/dealmachine/integrations.md
- Gmail integrations: zapier.com/apps/gmail/integrations.md
- Full page: zapier.com/apps/dealmachine/integrations/gmail
- SDK: npmjs.com/package/@zapier/zapier-sdk