# Brokermint

> Run your brokerage's deals in Brokermint (BoldTrail BackOffice): create, update and find transactions and contacts, comment, complete tasks, and start workflows when a deal is added or changes status.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/brokermint

## Actions

### Add contact to transaction

Put a contact on a transaction in a role, such as Buyer or Escrow Officer, or change the role they have.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.
- Contact ID (`contact_id`, text, required): The Brokermint contact's id, from 'List contacts' or an earlier step.
- Role (`role`, text): Their role on the transaction. Required when they aren't on it yet.
- Keep their other role (`keep_existing_role`, true/false): Turn on to add this role beside the one they have, rather than change it.
- Make owner (`make_owner`, true/false): Turn on to make them the transaction's owner.

**Outputs**

- `participant` (object): The person on the transaction
- `transaction_id` (text): The transaction's ID

**Example output**

```json
{
  "participant": {
    "id": 1245,
    "name": "Jo Bloggs",
    "role": "Buyer"
  },
  "transaction_id": "85"
}
```

### Add transaction comment

Add a comment to a transaction. To notify a user, write @Full Name; links are written Title.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.
- Comment (`body`, text, required): The comment.

**Outputs**

- `comment` (object): A comment
- `comment_id` (text): The new comment's ID

**Example output**

```json
{
  "comment": {
    "author_name": "Pat Agent",
    "body": "Inspection booked.",
    "created_at": 1764547200000,
    "id": 7
  },
  "comment_id": "7"
}
```

### Complete task

Mark a transaction task complete. Brokermint refuses while it still needs a document or a review.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.
- Checklist ID (`checklist_id`, text, required): The task's checklist id, from 'List transaction tasks'.
- Task ID (`task_id`, text, required): The task's id, from 'List transaction tasks'.

**Outputs**

- `task` (object): The task
- `task_id` (text): The task's ID

**Example output**

```json
{
  "task": {
    "id": 501,
    "name": "Upload signed listing agreement",
    "status": "complete"
  },
  "task_id": "501"
}
```

### Create contact

Add a contact, such as a client, a lender or an escrow officer, with their details and custom fields.

**Inputs**

- First name (`first_name`, text, required): Their first name.
- Last name (`last_name`, text, required): Their last name.
- Email (`email`, text): Their email address.
- Contact type (`contact_type`, text): Their role, such as Buyer or Escrow Officer.
- Company (`company`, text): Their company.
- Phone (`phone`, text): Their phone number.
- Mobile phone (`mobile_phone`, text): Their mobile number.
- Street address (`address`, text): Their street address.
- City (`city`, text): The city.
- State (`state`, text): The state.
- ZIP code (`zip_code`, text): The ZIP code.
- Lead source (`lead_source`, text): Where the lead came from.
- Assigned to (`assignee_id`, text): The Brokermint user the contact is assigned to.
- External ID (`external_id`, text): Your own id for them, such as from your CRM.
- Custom fields (`custom_fields`, object): Your account's custom fields by label with their values, for example {"MLS #": "123456"}.

**Outputs**

- `contact` (object): The contact
- `contact_id` (text): The new contact's ID

**Example output**

```json
{
  "contact": {
    "company": "",
    "contact_type": "Buyer",
    "email": "jo@example.com",
    "external_id": "",
    "first_name": "Jo",
    "id": 1245,
    "last_name": "Bloggs",
    "lead_source": "Zillow",
    "mobile_phone": "",
    "name": "Jo Bloggs",
    "phone": "512-555-0100"
  },
  "contact_id": "1245"
}
```

### Create transaction

Add a transaction (a listing, a sale or a buyer opportunity) with its address, status, type, price, dates and custom fields.

**Inputs**

- Street address (`address`, text, required): The property's street address.
- City (`city`, text): The city.
- State (`state`, text): The state, such as CA.
- ZIP code (`zip_code`, text): The ZIP code.
- Status (`status`, text): Where the deal stands. One of: `opportunity`, `active`, `pending`, `closed`, `cancelled`.
- Transaction type (`transaction_type`, text): One of your account's transaction types, such as traditional sale.
- Name (`transaction_name`, text): A name for the deal, such as for a buyer opportunity.
- Price (`price`, number): The price. At least 0.
- Acceptance date (`acceptance_date`, date): When the offer was accepted.
- Expiration date (`expiration_date`, date): When the listing or contract expires.
- Closing date (`closing_date`, date): When it closes.
- Listing date (`listing_date`, date): When it was listed.
- External ID (`external_id`, text): Your own id for it, such as from your CRM.
- Custom fields (`custom_fields`, object): Your account's custom fields by label with their values, for example {"MLS #": "123456"}.

**Outputs**

- `transaction` (object): The transaction
- `transaction_id` (text): The new transaction's ID

**Example output**

```json
{
  "transaction": {
    "acceptance_date": 1764547200000,
    "address": "12 Oak Street",
    "city": "Austin",
    "closing_date": 1767225600000,
    "created_at": 1764460800000,
    "external_id": "",
    "id": 85,
    "price": 450000,
    "representing": "seller",
    "state": "TX",
    "status": "active",
    "transaction_name": "",
    "transaction_type": "traditional sale",
    "updated_at": 1764547200000,
    "zip": "78701"
  },
  "transaction_id": "85"
}
```

### Delete contact

Delete a contact.

**Inputs**

- Contact ID (`contact_id`, text, required): The Brokermint contact's id, from 'List contacts' or an earlier step.

**Outputs**

- `contact_id` (text): The contact's ID
- `deleted` (true/false): True once deleted

**Example output**

```json
{
  "contact_id": "1245",
  "deleted": true
}
```

### Delete transaction

Delete a transaction.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.

**Outputs**

- `deleted` (true/false): True once deleted
- `transaction_id` (text): The transaction's ID

**Example output**

```json
{
  "deleted": true,
  "transaction_id": "85"
}
```

### Find contacts

Find contacts by name or email.

**Inputs**

- Search for (`keyword`, text, required): Text in the contact's name or email.

**Outputs**

- `contacts` (list): The contacts found
- `count` (number): How many

**Example output**

```json
{
  "contacts": [
    {
      "company": "",
      "contact_type": "Buyer",
      "email": "jo@example.com",
      "external_id": "",
      "first_name": "Jo",
      "id": 1245,
      "last_name": "Bloggs",
      "lead_source": "Zillow",
      "mobile_phone": "",
      "name": "Jo Bloggs",
      "phone": "512-555-0100"
    }
  ],
  "count": 1
}
```

### Find transactions

Find transactions by address, MLS number, or an agent's name or email.

**Inputs**

- Search for (`keyword`, text, required): Text in the address, MLS number, or an agent's name or email.

**Outputs**

- `count` (number): How many
- `transactions` (list): The transactions found

**Example output**

```json
{
  "count": 1,
  "transactions": [
    {
      "acceptance_date": 1764547200000,
      "address": "12 Oak Street",
      "city": "Austin",
      "closing_date": 1767225600000,
      "created_at": 1764460800000,
      "external_id": "",
      "id": 85,
      "price": 450000,
      "representing": "seller",
      "state": "TX",
      "status": "active",
      "transaction_name": "",
      "transaction_type": "traditional sale",
      "updated_at": 1764547200000,
      "zip": "78701"
    }
  ]
}
```

### Get contact

Get a contact's details, custom fields included.

**Inputs**

- Contact ID (`contact_id`, text, required): The Brokermint contact's id, from 'List contacts' or an earlier step.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company": "",
    "contact_type": "Buyer",
    "email": "jo@example.com",
    "external_id": "",
    "first_name": "Jo",
    "id": 1245,
    "last_name": "Bloggs",
    "lead_source": "Zillow",
    "mobile_phone": "",
    "name": "Jo Bloggs",
    "phone": "512-555-0100"
  }
}
```

### Get current user

Get the Brokermint user the API key belongs to: name, email and role.

**Inputs**: None.

**Outputs**

- `user` (object): A user

**Example output**

```json
{
  "user": {
    "active": true,
    "email": "pat@example.com",
    "id": 230,
    "name": "Pat Agent",
    "role": "Agent"
  }
}
```

### Get transaction

Get a transaction with its address, status, price, dates, people and custom fields.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.

**Outputs**

- `transaction` (object): The transaction

**Example output**

```json
{
  "transaction": {
    "acceptance_date": 1764547200000,
    "address": "12 Oak Street",
    "city": "Austin",
    "closing_date": 1767225600000,
    "created_at": 1764460800000,
    "external_id": "",
    "id": 85,
    "price": 450000,
    "representing": "seller",
    "state": "TX",
    "status": "active",
    "transaction_name": "",
    "transaction_type": "traditional sale",
    "updated_at": 1764547200000,
    "zip": "78701"
  }
}
```

### List contacts

List contacts, filtered by date created or updated or by email. Gets one page of up to 1,000; run it again from the next id to see more.

**Inputs**

- Created since (`created_since`, date): Only those created on or after this date.
- Updated since (`updated_since`, date): Only those changed on or after this date.
- Emails (`emails`, list): Only contacts with these email addresses.
- Full details (`full_info`, true/false): On (the default) returns phone, address and custom fields too. Default: `true`.
- How many (`count`, number): How many to return, up to 1,000. From 1 to 1000.
- Starting from ID (`starting_from_id`, text): The 'next_starting_from_id' an earlier page gave, to get the page after it.

**Outputs**

- `contacts` (list): The contacts
- `count` (number): How many
- `next_starting_from_id` (number): The id to ask from for the next page, 0 when none

**Example output**

```json
{
  "contacts": [
    {
      "company": "",
      "contact_type": "Buyer",
      "email": "jo@example.com",
      "external_id": "",
      "first_name": "Jo",
      "id": 1245,
      "last_name": "Bloggs",
      "lead_source": "Zillow",
      "mobile_phone": "",
      "name": "Jo Bloggs",
      "phone": "512-555-0100"
    }
  ],
  "count": 1,
  "next_starting_from_id": 0
}
```

### List transaction comments

List the comments on a transaction.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.

**Outputs**

- `comments` (list): The comments
- `count` (number): How many
- `transaction_id` (text): The transaction's ID

**Example output**

```json
{
  "comments": [
    {
      "author_name": "Pat Agent",
      "body": "Inspection booked.",
      "created_at": 1764547200000,
      "id": 7
    }
  ],
  "count": 1,
  "transaction_id": "85"
}
```

### List transaction documents

List a transaction's documents, with their review and e-signature status and a download link that works for 15 minutes.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.

**Outputs**

- `count` (number): How many
- `documents` (list): The documents
- `transaction_id` (text): The transaction's ID

**Example output**

```json
{
  "count": 1,
  "documents": [
    {
      "id": 9001,
      "name": "Listing agreement.pdf",
      "review_status": "approved",
      "status": "complete",
      "url": "https://files.example.com/9001.pdf"
    }
  ],
  "transaction_id": "85"
}
```

### List transaction tasks

List every task on a transaction's checklists, with its status, deadline and who it's assigned to.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.
- Only tasks with documents (`with_documents`, true/false): Turn on to list only tasks that need or have a document.

**Outputs**

- `count` (number): How many
- `tasks` (list): The tasks
- `transaction_id` (text): The transaction's ID

**Example output**

```json
{
  "count": 1,
  "tasks": [
    {
      "checklist_id": 40,
      "deadline": 1764806400000,
      "document_required": true,
      "id": 501,
      "name": "Upload signed listing agreement",
      "status": "todo"
    }
  ],
  "transaction_id": "85"
}
```

### List transactions

List transactions by status, side, lead source, or date created, updated or closed. Gets one page of up to 1,000; run it again from the next id to see more.

**Inputs**

- Statuses (`statuses`, list): Only transactions in these statuses. One or more of: `opportunity`, `active`, `pending`, `closed`, `cancelled`.
- Created since (`created_since`, date): Only those created on or after this date.
- Updated since (`updated_since`, date): Only those changed on or after this date.
- Closed since (`closed_since`, date): Only those closed on or after this date.
- Representing (`representing`, text): Only deals where you represent this side. One of: `seller`, `buyer`, `both`.
- Lead source (`lead_source`, text): Only those from this lead source.
- Full details (`full_info`, true/false): On (the default) returns every field; off returns only id, status, address and price. Default: `true`.
- How many (`count`, number): How many to return, up to 1,000. From 1 to 1000.
- Starting from ID (`starting_from_id`, text): The 'next_starting_from_id' an earlier page gave, to get the page after it.

**Outputs**

- `count` (number): How many
- `next_starting_from_id` (number): The id to ask from for the next page, 0 when none
- `transactions` (list): The transactions

**Example output**

```json
{
  "count": 1,
  "next_starting_from_id": 0,
  "transactions": [
    {
      "acceptance_date": 1764547200000,
      "address": "12 Oak Street",
      "city": "Austin",
      "closing_date": 1767225600000,
      "created_at": 1764460800000,
      "external_id": "",
      "id": 85,
      "price": 450000,
      "representing": "seller",
      "state": "TX",
      "status": "active",
      "transaction_name": "",
      "transaction_type": "traditional sale",
      "updated_at": 1764547200000,
      "zip": "78701"
    }
  ]
}
```

### List users

List the account's users (agents and staff). Gets one page of up to 1,000; run it again from the next id to see more.

**Inputs**

- Active only (`active_only`, true/false): Turn on to list only active users.
- How many (`count`, number): How many to return, up to 1,000. From 1 to 1000.
- Starting from ID (`starting_from_id`, text): The 'next_starting_from_id' an earlier page gave, to get the page after it.

**Outputs**

- `count` (number): How many
- `next_starting_from_id` (number): The id to ask from for the next page, 0 when none
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "next_starting_from_id": 0,
  "users": [
    {
      "active": true,
      "email": "pat@example.com",
      "id": 230,
      "name": "Pat Agent",
      "role": "Agent"
    }
  ]
}
```

### Update contact

Change a contact's details. Only the fields given change.

**Inputs**

- Contact ID (`contact_id`, text, required): The Brokermint contact's id, from 'List contacts' or an earlier step.
- First name (`first_name`, text): Their first name. Leave empty to keep it.
- Last name (`last_name`, text): Their last name. Leave empty to keep it.
- Email (`email`, text): Their email address. Leave empty to keep it.
- Contact type (`contact_type`, text): Their role, such as Buyer or Escrow Officer. Leave empty to keep it.
- Company (`company`, text): Their company. Leave empty to keep it.
- Phone (`phone`, text): Their phone number. Leave empty to keep it.
- Mobile phone (`mobile_phone`, text): Their mobile number. Leave empty to keep it.
- Street address (`address`, text): Their street address. Leave empty to keep it.
- City (`city`, text): The city. Leave empty to keep it.
- State (`state`, text): The state. Leave empty to keep it.
- ZIP code (`zip_code`, text): The ZIP code. Leave empty to keep it.
- Lead source (`lead_source`, text): Where the lead came from. Leave empty to keep it.
- Assigned to (`assignee_id`, text): The Brokermint user the contact is assigned to. Leave empty to keep it.
- External ID (`external_id`, text): Your own id for them, such as from your CRM. Leave empty to keep it.
- Custom fields (`custom_fields`, object): Your account's custom fields by label with their values, for example {"MLS #": "123456"}.

**Outputs**

- `contact` (object): The contact
- `contact_id` (text): The contact's ID

**Example output**

```json
{
  "contact": {
    "company": "",
    "contact_type": "Buyer",
    "email": "jo@example.com",
    "external_id": "",
    "first_name": "Jo",
    "id": 1245,
    "last_name": "Bloggs",
    "lead_source": "Zillow",
    "mobile_phone": "",
    "name": "Jo Bloggs",
    "phone": "512-555-0199"
  },
  "contact_id": "1245"
}
```

### Update transaction

Change a transaction's status, address, price, dates or custom fields. Only the fields given change.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The Brokermint transaction's id, from 'List transactions' or an earlier step.
- Street address (`address`, text): The property's street address. Leave empty to keep it.
- City (`city`, text): The city. Leave empty to keep it.
- State (`state`, text): The state, such as CA. Leave empty to keep it.
- ZIP code (`zip_code`, text): The ZIP code. Leave empty to keep it.
- Status (`status`, text): Where the deal stands. Leave empty to keep it. One of: `opportunity`, `active`, `pending`, `closed`, `cancelled`.
- Transaction type (`transaction_type`, text): One of your account's transaction types, such as traditional sale. Leave empty to keep it.
- Name (`transaction_name`, text): A name for the deal, such as for a buyer opportunity. Leave empty to keep it.
- Price (`price`, number): The price. Leave empty to keep it. At least 0.
- Acceptance date (`acceptance_date`, date): When the offer was accepted. Leave empty to keep it.
- Expiration date (`expiration_date`, date): When the listing or contract expires. Leave empty to keep it.
- Closing date (`closing_date`, date): When it closes. Leave empty to keep it.
- Listing date (`listing_date`, date): When it was listed. Leave empty to keep it.
- External ID (`external_id`, text): Your own id for it, such as from your CRM. Leave empty to keep it.
- Custom fields (`custom_fields`, object): Your account's custom fields by label with their values, for example {"MLS #": "123456"}.
- Reopen reason (`reopen_reason`, text): Why, when moving a closed or cancelled transaction back to an open status. Brokermint requires it then.

**Outputs**

- `transaction` (object): The transaction
- `transaction_id` (text): The transaction's ID

**Example output**

```json
{
  "transaction": {
    "acceptance_date": 1764547200000,
    "address": "12 Oak Street",
    "city": "Austin",
    "closing_date": 1767225600000,
    "created_at": 1764460800000,
    "external_id": "",
    "id": 85,
    "price": 450000,
    "representing": "seller",
    "state": "TX",
    "status": "pending",
    "transaction_name": "",
    "transaction_type": "traditional sale",
    "updated_at": 1764547200000,
    "zip": "78701"
  },
  "transaction_id": "85"
}
```
