# Keller Williams Command

> Manage contacts, lead submissions, tags, sources, notes and custom fields in an approved KW Command organization.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/keller-williams-command

## Actions

### Create a contact note

Create a contact note.

**Inputs**

- Person ID (`person_id`, text, required): The ObjectId of the contact to attach the note to
- Title (`title`, text): The note title
- Note (`note`, text, required): The note content/body
- Type (`type`, text): Optional note type. Defaults to Contact when omitted. One of: `Contact`, `Recruit`.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "id": "example",
    "note": "example",
    "personId": "example",
    "title": "example",
    "type": "CONTACT",
    "updatedAt": "example"
  }
}
```

### Create a custom field

Create a custom field.

**Inputs**

- Label (`label`, text, required): Label.
- Type (`type`, text, required): Type. One of: `Text`, `Number`, `Date`, `Dropdown`.
- Suffix (`suffix`, text): Suffix.
- Options (`options`, list, required): Options.
- Is default (`is_default`, true/false): Is default.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "deletedAt": "example",
    "deletedBy": "example",
    "id": "example",
    "isDefault": false,
    "label": "example",
    "legacyId": "example",
    "options": "example",
    "suffix": "example",
    "teamId": "example",
    "type": "Text",
    "updatedAt": "example",
    "updatedBy": "example"
  }
}
```

### Create a lead submission

Create a lead submission.

**Inputs**

- Submission (`submission`, object, required): Submission.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "activities": [],
    "branding": "example",
    "contactData": null,
    "createdAt": "example",
    "reference": null,
    "requestedAgentId": "example",
    "source": null,
    "status": "created",
    "submissionId": "example",
    "updatedAt": "example"
  }
}
```

### Create contact activities

Create contact activities.

**Inputs**

- Contact ID (`contact_id`, text, required): The ObjectId of the contact
- Records (`records`, list, required): Records.

**Outputs**

- `data` (list): The response from Keller Williams Command.

**Example output**

```json
{
  "data": []
}
```

### Delete a contact note

Delete a contact note.

**Inputs**

- Note ID (`note_id`, text, required): The ObjectId of the note to delete

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {}
}
```

### Get a contact

Get a contact.

**Inputs**

- Contact ID (`contact_id`, text, required): The ObjectId of the contact

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "account": {
      "id": "example",
      "name": "example",
      "type": "TEAM"
    },
    "addresses": {
      "mailing": {
        "addressLine1": "example",
        "addressLine1Search": "example",
        "addressLine2": "example",
        "city": "example",
        "country": "example",
        "county": "example",
        "formattedAddress": "example",
        "label": "Home",
        "location": null,
        "neighborhoodName": "example",
        "state": "example",
        "zipCode": "example"
      },
      "others": [],
      "primary": {
        "addressLine1": "example",
        "addressLine1Search": "example",
        "addressLine2": "example",
        "city": "example",
        "country": "example",
        "county": "example",
        "formattedAddress": "example",
        "label": "Home",
        "location": null,
        "neighborhoodName": "example",
        "state": "example",
        "zipCode": "example"
      }
    },
    "anniversaries": [],
    "areas": [],
    "assignee": {
      "grantedBy": "example",
      "grantedByName": "example",
      "grantedTo": "example",
      "grantedToName": "example",
      "id": "example",
      "outcome": "PrimaryAssignee",
      "type": "claimed",
      "updatedAt": "example"
    },
    "collaborators": [],
    "cotalityData": {
      "contactEnrichment": {
        "emails": [],
        "lastUpdatedAt": "example",
        "names": [],
        "phones": []
      },
      "meta": {
        "lastUpdatedAt": "example",
        "source": "Cotality",
        "status": "Pending",
        "vendorRef": "example"
      },
      "properties": {
        "items": [],
        "lastUpdatedAt": "example"
      }
    },
    "createdAt": "example",
    "customDates": {},
    "customDropdowns": {},
    "customFields": [],
    "customNumbers": {},
    "customTexts": {},
    "description": "example",
    "emails": {
      "others": [],
      "primary": {
        "email": "example",
        "label": "Personal",
        "undeliverable": "example",
        "unsubscribed": []
      }
    },
    "id": "example",
    "job": {
      "companyName": "example",
      "title": "example"
    },
    "links": [],
    "name": {
      "first": "example",
      "firstSearch": "example",
      "last": "example",
      "lastSearch": "example",
      "legal": "example",
      "middle": "example",
      "preferred": "example",
      "prefix": "example",
      "suffix": "example"
    },
    "neighborhoods": {
      "others": [],
      "primary": {
        "addedBy": "Contact",
        "id": "example",
        "location": null,
        "name": "example"
      }
    },
    "originalOwnerId": "example",
    "owner": {
      "id": "example",
      "name": "example"
    },
    "phones": {
      "others": [],
      "primary": {
        "isoPhoneNumber": "example",
        "label": "Personal"
      }
    },
    "preferredMethodOfContact": "Email",
    "references": [],
    "relationships": [],
    "source": {
      "id": "example"
    },
    "tags": [],
    "teamId": "example",
    "updatedAt": "example"
  }
}
```

### Get a lead submission

Get a lead submission.

**Inputs**

- Submission ID (`submission_id`, text, required): The ObjectId of the submission

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "activities": [],
    "branding": "example",
    "contactData": null,
    "createdAt": "example",
    "reference": null,
    "requestedAgentId": "example",
    "source": null,
    "status": "created",
    "submissionId": "example",
    "updatedAt": "example"
  }
}
```

### List contact notes

List contact notes.

**Inputs**

- Contact ID (`contact_id`, text, required): The ObjectId of the contact
- Sort (`sort`, text): Sort by createdAt. One of: `Asc`, `Desc`.
- Limit (`limit`, number): Maximum notes. From 1 to 100.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "data": [],
    "meta": {
      "count": 1.0,
      "limit": 1.0,
      "nextToken": "example",
      "prevToken": "example",
      "total": 1.0
    }
  }
}
```

### List contact sources

List contact sources.

**Inputs**

- Offset (`offset`, number): Zero-based number of items to skip before returning results. Default: 0.
- Max (`max`, number): Maximum number of sources to return per page. Unit: items. Default: 999. At most 999.
- Sort (`sort`, text): Sort. One of: `Id`, `LabelSort`, `LabelSearch`, `LabelDisplay`, `Owner`.
- Order (`order`, text): Sort direction. Canonical values are `asc` and `desc`. One of: `asc`, `desc`.

**Outputs**

- `data` (list): The response from Keller Williams Command.

**Example output**

```json
{
  "data": []
}
```

### List custom fields

List custom fields.

**Inputs**

- Offset (`offset`, number): Zero-based number of items to skip before returning results. Default: 0.
- Max (`max`, number): Maximum number of custom fields to return per page. Unit: items. Default: 50. At most 999.

**Outputs**

- `data` (list): The response from Keller Williams Command.

**Example output**

```json
{
  "data": []
}
```

### List tags

List tags.

**Inputs**

- Offset (`offset`, number): Zero-based number of items to skip before returning results. Default: 0.
- Max (`max`, number): Maximum number of tags to return per page. Unit: items. Default: 999. At most 999.
- Sort (`sort`, text): Sort. One of: `Id`, `LabelSearch`.
- Order (`order`, text): Sort direction. Canonical values are `asc` and `desc`. One of: `asc`, `desc`.
- Label (`label`, text): Label.

**Outputs**

- `data` (list): The response from Keller Williams Command.

**Example output**

```json
{
  "data": []
}
```

### Search contact sources

Search contact sources.

**Inputs**

- Query (`query`, object, required): Query.
- Pagination (`pagination`, object): Pagination.
- Sort (`sort`, object): Sort.

**Outputs**

- `data` (list): The response from Keller Williams Command.

**Example output**

```json
{
  "data": []
}
```

### Search contacts

Search contacts.

**Inputs**

- Query (`query`, object): Query.
- Sort (`sort`, object): Sort.
- Page size (`page_size`, number): Page size. At least 1.
- Offset (`offset`, number): Offset. At least 0.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "pagination": {
      "max": 1.0,
      "offset": 1.0,
      "total": 1.0
    },
    "results": []
  }
}
```

### Search custom fields

Search custom fields.

**Inputs**

- Query (`query`, object): Query.
- Pagination (`pagination`, object): Pagination.
- Sort (`sort`, object): Sort.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "pagination": {
      "max": 1.0,
      "offset": 1.0,
      "total": 1.0
    },
    "results": []
  }
}
```

### Update a contact

Update a contact.

**Inputs**

- Contact ID (`contact_id`, text, required): The ObjectId of the contact
- Collaborator IDs (`collaborator_ids`, list): Array of collaborator IDs. The requestedAgentId must not be included in this array.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "account": {
      "id": "example",
      "name": "example",
      "type": "TEAM"
    },
    "addresses": {
      "mailing": {
        "addressLine1": "example",
        "addressLine1Search": "example",
        "addressLine2": "example",
        "city": "example",
        "country": "example",
        "county": "example",
        "formattedAddress": "example",
        "label": "Home",
        "location": null,
        "neighborhoodName": "example",
        "state": "example",
        "zipCode": "example"
      },
      "others": [],
      "primary": {
        "addressLine1": "example",
        "addressLine1Search": "example",
        "addressLine2": "example",
        "city": "example",
        "country": "example",
        "county": "example",
        "formattedAddress": "example",
        "label": "Home",
        "location": null,
        "neighborhoodName": "example",
        "state": "example",
        "zipCode": "example"
      }
    },
    "anniversaries": [],
    "areas": [],
    "assignee": {
      "grantedBy": "example",
      "grantedByName": "example",
      "grantedTo": "example",
      "grantedToName": "example",
      "id": "example",
      "outcome": "PrimaryAssignee",
      "type": "claimed",
      "updatedAt": "example"
    },
    "collaborators": [],
    "cotalityData": {
      "contactEnrichment": {
        "emails": [],
        "lastUpdatedAt": "example",
        "names": [],
        "phones": []
      },
      "meta": {
        "lastUpdatedAt": "example",
        "source": "Cotality",
        "status": "Pending",
        "vendorRef": "example"
      },
      "properties": {
        "items": [],
        "lastUpdatedAt": "example"
      }
    },
    "createdAt": "example",
    "customDates": {},
    "customDropdowns": {},
    "customFields": [],
    "customNumbers": {},
    "customTexts": {},
    "description": "example",
    "emails": {
      "others": [],
      "primary": {
        "email": "example",
        "label": "Personal",
        "undeliverable": "example",
        "unsubscribed": []
      }
    },
    "id": "example",
    "job": {
      "companyName": "example",
      "title": "example"
    },
    "links": [],
    "name": {
      "first": "example",
      "firstSearch": "example",
      "last": "example",
      "lastSearch": "example",
      "legal": "example",
      "middle": "example",
      "preferred": "example",
      "prefix": "example",
      "suffix": "example"
    },
    "neighborhoods": {
      "others": [],
      "primary": {
        "addedBy": "Contact",
        "id": "example",
        "location": null,
        "name": "example"
      }
    },
    "originalOwnerId": "example",
    "owner": {
      "id": "example",
      "name": "example"
    },
    "phones": {
      "others": [],
      "primary": {
        "isoPhoneNumber": "example",
        "label": "Personal"
      }
    },
    "preferredMethodOfContact": "Email",
    "references": [],
    "relationships": [],
    "source": {
      "id": "example"
    },
    "tags": [],
    "teamId": "example",
    "updatedAt": "example"
  }
}
```

### Update a contact note

Update a contact note.

**Inputs**

- Note ID (`note_id`, text, required): The ObjectId of the note to update
- Title (`title`, text): Updated note title
- Note (`note`, text): Updated note content/body

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "id": "example",
    "note": "example",
    "personId": "example",
    "title": "example",
    "type": "CONTACT",
    "updatedAt": "example"
  }
}
```

### Update a custom field

Update a custom field.

**Inputs**

- Custom field ID (`custom_field_id`, text, required): Custom field id.
- Label (`label`, text): Label.
- Options (`options`, list): Options.
- Is default (`is_default`, true/false): Is default.

**Outputs**

- `data` (object): The response from Keller Williams Command.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "createdBy": "example",
    "deletedAt": "example",
    "deletedBy": "example",
    "id": "example",
    "isDefault": false,
    "label": "example",
    "legacyId": "example",
    "options": "example",
    "suffix": "example",
    "teamId": "example",
    "type": "Text",
    "updatedAt": "example",
    "updatedBy": "example"
  }
}
```
