# DoorLoop

> Manage tenants, owners, vendors, tasks and work orders, and read properties, units and leases in DoorLoop.

App · 31 actions. Web page: https://docs.lodol.com/docs/integrations/doorloop

## Actions

### Create a prospect

Add a prospective tenant. DoorLoop makes them a lease tenant once they are added to a lease.

**Inputs**

- First name (`first_name`, text, required): The prospect's first name.
- Last name (`last_name`, text, required): The prospect's last name.
- Middle name (`middle_name`, text): The prospect's middle name.
- Phone (`phone`, text): The prospect's mobile phone number. On an update it replaces the phone numbers DoorLoop has.
- Email (`email`, text): The prospect's email address. On an update it replaces the email addresses DoorLoop has.
- Company name (`company_name`, text): The prospect's company, if any.
- Job title (`job_title`, text): The prospect's job title.
- Notes (`notes`, text): Notes about the prospect.
- Date of birth (`date_of_birth`, date): The prospect's date of birth.
- Street (`street`, text): The street address.
- Street line 2 (`street_line_2`, text): The second address line, such as an apartment.
- City (`city`, text): The city.
- ZIP code (`zip`, text): The ZIP or postal code.
- Country (`country`, text): The country.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "dependants": [],
    "emails": [],
    "emergencyContacts": [],
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "pets": [],
    "phones": [],
    "pictureUrl": "example",
    "portalInfo": {
      "allowAccess": false,
      "invitationLastSentAt": "example",
      "lastSeenAt": "example",
      "loginEmail": "example",
      "status": "ACTIVE"
    },
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "prospectInfo": {
      "assignedToUser": "example",
      "campaignContent": "example",
      "campaignMedium": "example",
      "campaignName": "example",
      "campaignSource": "example",
      "campaignTerm": "example",
      "creditScore": 1,
      "expectedMoveInDate": "example",
      "interests": [],
      "leadSource": "example",
      "maxRent": 1.0,
      "minBathrooms": 1.0,
      "minBedrooms": 1.0,
      "monthlyIncome": 1.0,
      "nextTaskDate": "example",
      "status": "NEW"
    },
    "timezone": "example",
    "type": "LEASE_TENANT",
    "vehicles": []
  }
}
```

### Create a task

Create a task, a tenant or owner request, or a work order for a vendor.

**Inputs**

- Task type (`task_type`, text, required): What kind of task this is. One of: `INTERNAL_TASK` (Internal task), `TENANT_REQUEST` (Tenant request), `OWNER_REQUEST` (Owner request), `WORK_ORDER` (Work order).
- Subject (`subject`, text, required): A short title for the task.
- Description (`description`, text): What needs doing.
- Status (`status`, text, required): The task's status. One of: `NOT_STARTED` (Not started), `RECEIVED`, `IN_PROGRESS` (In progress), `COMPLETED`, `ARCHIVED`.
- Priority (`priority`, text): How urgent the task is. One of: `LOW`, `MEDIUM`, `HIGH`.
- Due date (`due_date`, date): When the task is due.
- Reference (`reference`, text): Your own reference for the task.
- Requested by user (`requested_by_user_id`, text): The user who asked for the task. Needed for an internal task.
- Requested by tenant (`requested_by_tenant_id`, text): The tenant who asked for the task. Needed for a tenant request.
- Requested by owner (`requested_by_owner_id`, text): The owner who asked for the task. Needed for an owner request.
- Assigned to (`assigned_user_ids`, list): The users the task is assigned to.
- Property (`property_id`, text): The property the task is about.
- Unit (`unit_id`, text): The unit the task is about.
- Entry notes (`entry_notes`, text): Notes on getting into the unit.
- Entry permission (`entry_permission`, text): Whether the tenant allows entry. One of: `NOT_APPLICABLE` (Not applicable), `YES`, `NO`.
- Notify tenant (`notify_tenant`, true/false): Tell the tenants about a tenant request when it is saved.
- Notify assignees (`notify_assignees`, true/false): Tell the assigned users when the task is saved.
- Vendor (`vendor_id`, text): For a work order, the vendor doing the work.
- Vendor instructions (`vendor_instructions`, text): For a work order, instructions for the vendor.
- Approved by owner (`approved_by_owner`, true/false): For a work order, whether the owner approved it.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "assignedToUsers": [],
    "createdAt": 1.0,
    "description": "example",
    "dueDate": "example",
    "entryNotes": "example",
    "entryPermission": "NOT_APPLICABLE",
    "id": "example",
    "notifyAssignees": false,
    "notifyTenant": false,
    "priority": "LOW",
    "property": "example",
    "reference": "example",
    "requestedByOwner": "example",
    "requestedByTenant": "example",
    "requestedByUser": "example",
    "status": "NOT_STARTED",
    "subject": "example",
    "type": "INTERNAL_TASK",
    "unit": "example",
    "updatedAt": 1.0,
    "workOrder": {
      "approvedByOwner": false,
      "assignedToVendor": "example",
      "billed": false,
      "instructionsToVendor": "example",
      "vendorBill": "example"
    }
  }
}
```

### Create a vendor

Add a vendor to DoorLoop.

**Inputs**

- First name (`first_name`, text, required): The vendor's first name.
- Last name (`last_name`, text, required): The vendor's last name.
- Middle name (`middle_name`, text): The vendor's middle name.
- Phone (`phone`, text): The vendor's mobile phone number. On an update it replaces the phone numbers DoorLoop has.
- Email (`email`, text): The vendor's email address. On an update it replaces the email addresses DoorLoop has.
- Company name (`company_name`, text): The vendor's company, if any.
- Job title (`job_title`, text): The vendor's job title.
- Notes (`notes`, text): Notes about the vendor.
- Date of birth (`date_of_birth`, date): The vendor's date of birth.
- Street (`street`, text): The street address.
- Street line 2 (`street_line_2`, text): The second address line, such as an apartment.
- City (`city`, text): The city.
- ZIP code (`zip`, text): The ZIP or postal code.
- Country (`country`, text): The country.
- Active (`active`, true/false): Whether the vendor is active. New vendors are active. Default: `true`.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "balance": 1.0,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "insuranceInfo": {
      "coverage": 1.0,
      "effectiveDate": "example",
      "expirationDate": "example",
      "policyNumber": "example",
      "provider": "example"
    },
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "properties": [],
    "timezone": "example"
  }
}
```

### Create an owner

Add an owner to DoorLoop.

**Inputs**

- First name (`first_name`, text, required): The owner's first name.
- Last name (`last_name`, text, required): The owner's last name.
- Middle name (`middle_name`, text): The owner's middle name.
- Phone (`phone`, text): The owner's mobile phone number. On an update it replaces the phone numbers DoorLoop has.
- Email (`email`, text): The owner's email address. On an update it replaces the email addresses DoorLoop has.
- Company name (`company_name`, text): The owner's company, if any.
- Job title (`job_title`, text): The owner's job title.
- Notes (`notes`, text): Notes about the owner.
- Date of birth (`date_of_birth`, date): The owner's date of birth.
- Street (`street`, text): The street address.
- Street line 2 (`street_line_2`, text): The second address line, such as an apartment.
- City (`city`, text): The city.
- ZIP code (`zip`, text): The ZIP or postal code.
- Country (`country`, text): The country.
- Active (`active`, true/false): Whether the owner is active. New owners are active. Default: `true`.
- Management start date (`management_start_date`, date): When you started managing for this owner.
- Management end date (`management_end_date`, date): When management for this owner ends.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "managementEndDate": "example",
    "managementStartDate": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "timezone": "example"
  }
}
```

### Delete a task

Delete a task.

**Inputs**

- Task ID (`task_id`, text, required): The ID of the task to delete.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "assignedToUsers": [],
    "createdAt": 1.0,
    "description": "example",
    "dueDate": "example",
    "entryNotes": "example",
    "entryPermission": "NOT_APPLICABLE",
    "id": "example",
    "notifyAssignees": false,
    "notifyTenant": false,
    "priority": "LOW",
    "property": "example",
    "reference": "example",
    "requestedByOwner": "example",
    "requestedByTenant": "example",
    "requestedByUser": "example",
    "status": "NOT_STARTED",
    "subject": "example",
    "type": "INTERNAL_TASK",
    "unit": "example",
    "updatedAt": 1.0,
    "workOrder": {
      "approvedByOwner": false,
      "assignedToVendor": "example",
      "billed": false,
      "instructionsToVendor": "example",
      "vendorBill": "example"
    }
  }
}
```

### Delete a tenant

Delete a tenant or prospect.

**Inputs**

- Tenant (`tenant_id`, text, required): The tenant to delete.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "dependants": [],
    "emails": [],
    "emergencyContacts": [],
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "pets": [],
    "phones": [],
    "pictureUrl": "example",
    "portalInfo": {
      "allowAccess": false,
      "invitationLastSentAt": "example",
      "lastSeenAt": "example",
      "loginEmail": "example",
      "status": "ACTIVE"
    },
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "prospectInfo": {
      "assignedToUser": "example",
      "campaignContent": "example",
      "campaignMedium": "example",
      "campaignName": "example",
      "campaignSource": "example",
      "campaignTerm": "example",
      "creditScore": 1,
      "expectedMoveInDate": "example",
      "interests": [],
      "leadSource": "example",
      "maxRent": 1.0,
      "minBathrooms": 1.0,
      "minBedrooms": 1.0,
      "monthlyIncome": 1.0,
      "nextTaskDate": "example",
      "status": "NEW"
    },
    "timezone": "example",
    "type": "LEASE_TENANT",
    "vehicles": []
  }
}
```

### Delete a vendor

Delete a vendor.

**Inputs**

- Vendor (`vendor_id`, text, required): The vendor to delete.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "balance": 1.0,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "insuranceInfo": {
      "coverage": 1.0,
      "effectiveDate": "example",
      "expirationDate": "example",
      "policyNumber": "example",
      "provider": "example"
    },
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "properties": [],
    "timezone": "example"
  }
}
```

### Delete an owner

Delete an owner.

**Inputs**

- Owner (`owner_id`, text, required): The owner to delete.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "managementEndDate": "example",
    "managementStartDate": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "timezone": "example"
  }
}
```

### Get a lease

Get one lease by ID.

**Inputs**

- Lease ID (`lease_id`, text, required): The ID of the lease, from List leases.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "TotalRecurringCharges": 1.0,
    "end": "example",
    "evictonPending": false,
    "id": "example",
    "name": "example",
    "notes": "example",
    "proofOfInsuranceRequired": false,
    "property": "example",
    "reference": "example",
    "rolloverToAtWill": "example",
    "start": "example",
    "status": "ACTIVE",
    "term": "Fixed",
    "totalBalancedue": 1.0,
    "totalDepositsHeld": 1.0,
    "totalRecurringCredits": 1.0,
    "totalRecurringPayments": 1.0,
    "totalRecurringRent": 1.0,
    "units": []
  }
}
```

### Get a property

Get one property by ID.

**Inputs**

- Property (`property_id`, text, required): The property to get.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "address": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "amenities": [],
    "class": "RESIDENTIAL",
    "description": "example",
    "id": "example",
    "name": "example",
    "numActiveUnits": 1.0,
    "owners": [],
    "pictures": [],
    "settings": {
      "defaultAccounts": {
        "bank_operating": "example"
      }
    },
    "type": "RESIDENTIAL_SINGLE_FAMILY"
  }
}
```

### Get a task

Get one task by ID.

**Inputs**

- Task ID (`task_id`, text, required): The ID of the task, from List tasks.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "assignedToUsers": [],
    "createdAt": 1.0,
    "description": "example",
    "dueDate": "example",
    "entryNotes": "example",
    "entryPermission": "NOT_APPLICABLE",
    "id": "example",
    "notifyAssignees": false,
    "notifyTenant": false,
    "priority": "LOW",
    "property": "example",
    "reference": "example",
    "requestedByOwner": "example",
    "requestedByTenant": "example",
    "requestedByUser": "example",
    "status": "NOT_STARTED",
    "subject": "example",
    "type": "INTERNAL_TASK",
    "unit": "example",
    "updatedAt": 1.0,
    "workOrder": {
      "approvedByOwner": false,
      "assignedToVendor": "example",
      "billed": false,
      "instructionsToVendor": "example",
      "vendorBill": "example"
    }
  }
}
```

### Get a tenant

Get one tenant by ID.

**Inputs**

- Tenant (`tenant_id`, text, required): The tenant to get.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "dependants": [],
    "emails": [],
    "emergencyContacts": [],
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "pets": [],
    "phones": [],
    "pictureUrl": "example",
    "portalInfo": {
      "allowAccess": false,
      "invitationLastSentAt": "example",
      "lastSeenAt": "example",
      "loginEmail": "example",
      "status": "ACTIVE"
    },
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "prospectInfo": {
      "assignedToUser": "example",
      "campaignContent": "example",
      "campaignMedium": "example",
      "campaignName": "example",
      "campaignSource": "example",
      "campaignTerm": "example",
      "creditScore": 1,
      "expectedMoveInDate": "example",
      "interests": [],
      "leadSource": "example",
      "maxRent": 1.0,
      "minBathrooms": 1.0,
      "minBedrooms": 1.0,
      "monthlyIncome": 1.0,
      "nextTaskDate": "example",
      "status": "NEW"
    },
    "timezone": "example",
    "type": "LEASE_TENANT",
    "vehicles": []
  }
}
```

### Get a unit

Get one unit by ID.

**Inputs**

- Unit (`unit_id`, text, required): The unit to get.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "address": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "addressSameAsProperty": false,
    "amenities": [],
    "baths": 1.0,
    "beds": 1.0,
    "description": "example",
    "id": "example",
    "listing": {
      "activeListing": false,
      "companySiteListingOnly": false,
      "contact": "example",
      "dateAvailable": "example",
      "deposit": 1.0,
      "leaseLength": "example",
      "rent": 1.0
    },
    "marketRent": 1.0,
    "name": "example",
    "pictures": [],
    "property": "example",
    "rentalApplicationListing": {
      "activeListing": false,
      "dateAvailable": "example",
      "rent": 1.0
    },
    "size": 1.0
  }
}
```

### Get a vendor

Get one vendor by ID.

**Inputs**

- Vendor (`vendor_id`, text, required): The vendor to get.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "balance": 1.0,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "insuranceInfo": {
      "coverage": 1.0,
      "effectiveDate": "example",
      "expirationDate": "example",
      "policyNumber": "example",
      "provider": "example"
    },
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "properties": [],
    "timezone": "example"
  }
}
```

### Get an owner

Get one owner by ID.

**Inputs**

- Owner (`owner_id`, text, required): The owner to get.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "managementEndDate": "example",
    "managementStartDate": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "timezone": "example"
  }
}
```

### Get the connected user

Get the DoorLoop user who created the API key.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "lastSeenAt": "example",
    "loginEmail": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "properties": "example",
    "role": "example",
    "timezone": "example"
  }
}
```

### List leases

List leases, filtered by property, unit, tenant, status or dates.

**Inputs**

- Portfolio (`portfolio_id`, text): Only records in this portfolio.
- Property (`property_id`, text): Only records for this property.
- Owner (`owner_id`, text): Only records of this owner.
- Search (`search`, text): Text to find in the lease's name.
- Starts on or after (`starts_on_or_after`, date): Only leases starting on or after this date.
- Starts on or before (`starts_on_or_before`, date): Only leases starting on or before this date.
- Ends on or after (`ends_on_or_after`, date): Only leases ending on or after this date.
- Ends on or before (`ends_on_or_before`, date): Only leases ending on or before this date.
- Unit (`unit_id`, text): Only records for this unit.
- Tenant (`tenant_id`, text): Only leases of this tenant.
- Status (`status`, text): Only active or only inactive leases. One of: `ACTIVE`, `INACTIVE`.
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### List owners

List owners, sorted by name.

**Inputs**

- Portfolio (`portfolio_id`, text): Only records in this portfolio.
- Property (`property_id`, text): Only records for this property.
- Active (`active`, true/false): Only active records when on, only inactive ones when off. Leave blank for both.
- Search (`search`, text): Text to find in the owner's name or email.
- Created on or after (`created_on_or_after`, date): Only owners created on or after this date.
- Created on or before (`created_on_or_before`, date): Only owners created on or before this date.
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1
  }
}
```

### List portfolios

List portfolios, the groups properties are organized into.

**Inputs**

- Page (`page`, number): The page to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### List properties

List the properties in DoorLoop, sorted by name.

**Inputs**

- Search (`search`, text): Text to find in the property's name.
- Portfolio (`portfolio_id`, text): Only records in this portfolio.
- Property class (`property_class`, text): Only residential or only commercial properties. One of: `RESIDENTIAL`, `COMMERCIAL`.
- Owner (`owner_id`, text): Only records of this owner.
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### List tasks

List tasks, work orders and requests, filtered by type, status, property or dates. Sorted by due date.

**Inputs**

- Portfolio (`portfolio_id`, text): Only records in this portfolio.
- Property (`property_id`, text): Only records for this property.
- Unit (`unit_id`, text): Only records for this unit.
- Task type (`task_type`, text): Only tasks of this type. One of: `INTERNAL_TASK` (Internal task), `WORK_ORDER` (Work order), `TENANT_REQUEST` (Tenant request), `OWNER_REQUEST` (Owner request).
- Status (`status`, text): Only tasks in this status. One of: `NOT_STARTED` (Not started), `IN_PROGRESS` (In progress), `COMPLETED`, `NOT_COMPLETED` (Not completed), `RECEIVED`, `ARCHIVED`.
- Created on or after (`created_on_or_after`, date): Only tasks created on or after this date.
- Created on or before (`created_on_or_before`, date): Only tasks created on or before this date.
- Due on or after (`due_on_or_after`, date): Only tasks due on or after this date.
- Due on or before (`due_on_or_before`, date): Only tasks due on or before this date.
- Assigned to (`assigned_user_id`, text): Only tasks assigned to this user. Type unassigned for tasks assigned to nobody.
- Search (`search`, text): Text to find in the task's subject, description or reference.
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1
  }
}
```

### List tenants

List tenants and prospects, filtered by property, unit, lease or type.

**Inputs**

- Portfolio (`portfolio_id`, text): Only records in this portfolio.
- Property (`property_id`, text): Only records for this property.
- Lease ID (`lease_id`, text): Only tenants on this lease, by its ID from List leases.
- Search (`search`, text): Text to find in the tenant's name or email.
- Unit (`unit_id`, text): Only records for this unit.
- Tenant type (`tenant_type`, text): Only tenants on a lease, or only prospects. One of: `LEASE_TENANT` (On a lease), `PROSPECT_TENANT` (Prospect).
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### List units

List units, optionally only those of one property, portfolio or owner.

**Inputs**

- Portfolio (`portfolio_id`, text): Only records in this portfolio.
- Property (`property_id`, text): Only records for this property.
- Owner (`owner_id`, text): Only records of this owner.
- Search (`search`, text): Text to find in the unit's name.
- Status (`status`, text): Which units to list. Leave blank for active ones only. One of: `true` (Active only), `false` (Inactive only), `all` (Active and inactive).
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### List users

List the people on the DoorLoop account.

**Inputs**

- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### List vendors

List vendors, sorted by name.

**Inputs**

- Property (`property_id`, text): Only records for this property.
- Active (`active`, true/false): Only active records when on, only inactive ones when off. Leave blank for both.
- Created on or after (`created_on_or_after`, date): Only vendors created on or after this date.
- Created on or before (`created_on_or_before`, date): Only vendors created on or before this date.
- Page (`page`, number): The page to return, starting at 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1000. From 1 to 1000.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "data": [],
    "total": 1.0
  }
}
```

### Post a task update

Post an update on a task: a message, with any change to its status, priority, due date or assignment.

**Inputs**

- Task ID (`task_id`, text, required): The ID of the task, from List tasks.
- Message (`message`, text): The update to post, up to 10,000 characters.
- Due date (`due_date`, date): When the task is due.
- Priority (`priority`, text): How urgent the task is. One of: `LOW`, `MEDIUM`, `HIGH`.
- Status (`status`, text): The task's status. One of: `NOT_STARTED` (Not started), `RECEIVED`, `IN_PROGRESS` (In progress), `COMPLETED`, `ARCHIVED`.
- Assigned to (`assigned_user_ids`, list): The users the task is assigned to.
- Notify tenant (`notify_tenant`, true/false): Tell the tenants about the update.
- Notify assignees (`notify_assignees`, true/false): Tell the assigned users about the update.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "assignedToUsers": [],
    "createdAt": 1.0,
    "description": "example",
    "dueDate": "example",
    "entryNotes": "example",
    "entryPermission": "NOT_APPLICABLE",
    "id": "example",
    "notifyAssignees": false,
    "notifyTenant": false,
    "priority": "LOW",
    "property": "example",
    "reference": "example",
    "requestedByOwner": "example",
    "requestedByTenant": "example",
    "requestedByUser": "example",
    "status": "NOT_STARTED",
    "subject": "example",
    "type": "INTERNAL_TASK",
    "unit": "example",
    "updatedAt": 1.0,
    "workOrder": {
      "approvedByOwner": false,
      "assignedToVendor": "example",
      "billed": false,
      "instructionsToVendor": "example",
      "vendorBill": "example"
    }
  }
}
```

### Update a task

Change a task's subject, status, due date or assignment. Only the fields you fill in are changed.

**Inputs**

- Task ID (`task_id`, text, required): The ID of the task to change.
- Subject (`subject`, text): A short title for the task.
- Description (`description`, text): What needs doing.
- Status (`status`, text): The task's status. One of: `NOT_STARTED` (Not started), `RECEIVED`, `IN_PROGRESS` (In progress), `COMPLETED`, `ARCHIVED`.
- Priority (`priority`, text): How urgent the task is. One of: `LOW`, `MEDIUM`, `HIGH`.
- Due date (`due_date`, date): When the task is due.
- Reference (`reference`, text): Your own reference for the task.
- Requested by user (`requested_by_user_id`, text): The user who asked for the task. Needed for an internal task.
- Requested by tenant (`requested_by_tenant_id`, text): The tenant who asked for the task. Needed for a tenant request.
- Requested by owner (`requested_by_owner_id`, text): The owner who asked for the task. Needed for an owner request.
- Assigned to (`assigned_user_ids`, list): The users the task is assigned to.
- Property (`property_id`, text): The property the task is about.
- Unit (`unit_id`, text): The unit the task is about.
- Entry notes (`entry_notes`, text): Notes on getting into the unit.
- Entry permission (`entry_permission`, text): Whether the tenant allows entry. One of: `NOT_APPLICABLE` (Not applicable), `YES`, `NO`.
- Notify assignees (`notify_assignees`, true/false): Tell the assigned users when the task is saved.
- Vendor (`vendor_id`, text): For a work order, the vendor doing the work.
- Vendor instructions (`vendor_instructions`, text): For a work order, instructions for the vendor.
- Approved by owner (`approved_by_owner`, true/false): For a work order, whether the owner approved it.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "assignedToUsers": [],
    "createdAt": 1.0,
    "description": "example",
    "dueDate": "example",
    "entryNotes": "example",
    "entryPermission": "NOT_APPLICABLE",
    "id": "example",
    "notifyAssignees": false,
    "notifyTenant": false,
    "priority": "LOW",
    "property": "example",
    "reference": "example",
    "requestedByOwner": "example",
    "requestedByTenant": "example",
    "requestedByUser": "example",
    "status": "NOT_STARTED",
    "subject": "example",
    "type": "INTERNAL_TASK",
    "unit": "example",
    "updatedAt": 1.0,
    "workOrder": {
      "approvedByOwner": false,
      "assignedToVendor": "example",
      "billed": false,
      "instructionsToVendor": "example",
      "vendorBill": "example"
    }
  }
}
```

### Update a tenant

Change a tenant's name, contact details or notes. Fields left blank keep their current values.

**Inputs**

- Tenant (`tenant_id`, text, required): The tenant to change.
- First name (`first_name`, text): The tenant's first name.
- Last name (`last_name`, text): The tenant's last name.
- Phone (`phone`, text): The tenant's mobile phone number. On an update it replaces the phone numbers DoorLoop has.
- Email (`email`, text): The tenant's email address. On an update it replaces the email addresses DoorLoop has.
- Middle name (`middle_name`, text): The tenant's middle name.
- Company name (`company_name`, text): The tenant's company, if any.
- Job title (`job_title`, text): The tenant's job title.
- Notes (`notes`, text): Notes about the tenant.
- Date of birth (`date_of_birth`, date): The tenant's date of birth.
- Street (`street`, text): The street address.
- Street line 2 (`street_line_2`, text): The second address line, such as an apartment.
- City (`city`, text): The city.
- ZIP code (`zip`, text): The ZIP or postal code.
- Country (`country`, text): The country.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "dependants": [],
    "emails": [],
    "emergencyContacts": [],
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "pets": [],
    "phones": [],
    "pictureUrl": "example",
    "portalInfo": {
      "allowAccess": false,
      "invitationLastSentAt": "example",
      "lastSeenAt": "example",
      "loginEmail": "example",
      "status": "ACTIVE"
    },
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "prospectInfo": {
      "assignedToUser": "example",
      "campaignContent": "example",
      "campaignMedium": "example",
      "campaignName": "example",
      "campaignSource": "example",
      "campaignTerm": "example",
      "creditScore": 1,
      "expectedMoveInDate": "example",
      "interests": [],
      "leadSource": "example",
      "maxRent": 1.0,
      "minBathrooms": 1.0,
      "minBedrooms": 1.0,
      "monthlyIncome": 1.0,
      "nextTaskDate": "example",
      "status": "NEW"
    },
    "timezone": "example",
    "type": "LEASE_TENANT",
    "vehicles": []
  }
}
```

### Update a unit

Change a unit's name, market rent, size or layout. Fields left blank keep their current values.

**Inputs**

- Unit (`unit_id`, text, required): The unit to change.
- Name (`name`, text): The unit's name.
- Market rent (`market_rent`, number): The unit's market rent. At least 0.
- Bedrooms (`beds`, number): The number of bedrooms. At least 0.
- Bathrooms (`baths`, number): The number of bathrooms. At least 0.
- Size (sq ft) (`size`, number): The unit's size in square feet. At least 0.
- Description (`description`, text): The unit's description.
- Active (`active`, true/false): Whether the unit is active.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "address": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "addressSameAsProperty": false,
    "amenities": [],
    "baths": 1.0,
    "beds": 1.0,
    "description": "example",
    "id": "example",
    "listing": {
      "activeListing": false,
      "companySiteListingOnly": false,
      "contact": "example",
      "dateAvailable": "example",
      "deposit": 1.0,
      "leaseLength": "example",
      "rent": 1.0
    },
    "marketRent": 1.0,
    "name": "example",
    "pictures": [],
    "property": "example",
    "rentalApplicationListing": {
      "activeListing": false,
      "dateAvailable": "example",
      "rent": 1.0
    },
    "size": 1.0
  }
}
```

### Update a vendor

Change a vendor's name, contact details or notes. Only the fields you fill in are changed.

**Inputs**

- Vendor (`vendor_id`, text, required): The vendor to change.
- First name (`first_name`, text): The vendor's first name.
- Last name (`last_name`, text): The vendor's last name.
- Phone (`phone`, text): The vendor's mobile phone number. On an update it replaces the phone numbers DoorLoop has.
- Email (`email`, text): The vendor's email address. On an update it replaces the email addresses DoorLoop has.
- Middle name (`middle_name`, text): The vendor's middle name.
- Company name (`company_name`, text): The vendor's company, if any.
- Job title (`job_title`, text): The vendor's job title.
- Notes (`notes`, text): Notes about the vendor.
- Date of birth (`date_of_birth`, date): The vendor's date of birth.
- Street (`street`, text): The street address.
- Street line 2 (`street_line_2`, text): The second address line, such as an apartment.
- City (`city`, text): The city.
- ZIP code (`zip`, text): The ZIP or postal code.
- Country (`country`, text): The country.
- Active (`active`, true/false): Whether the vendor is active. New vendors are active.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "balance": 1.0,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "insuranceInfo": {
      "coverage": 1.0,
      "effectiveDate": "example",
      "expirationDate": "example",
      "policyNumber": "example",
      "provider": "example"
    },
    "jobTitle": "example",
    "lastName": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "properties": [],
    "timezone": "example"
  }
}
```

### Update an owner

Change an owner's name, contact details or notes. Only the fields you fill in are changed.

**Inputs**

- Owner (`owner_id`, text, required): The owner to change.
- First name (`first_name`, text): The owner's first name.
- Last name (`last_name`, text): The owner's last name.
- Phone (`phone`, text): The owner's mobile phone number. On an update it replaces the phone numbers DoorLoop has.
- Email (`email`, text): The owner's email address. On an update it replaces the email addresses DoorLoop has.
- Middle name (`middle_name`, text): The owner's middle name.
- Company name (`company_name`, text): The owner's company, if any.
- Job title (`job_title`, text): The owner's job title.
- Notes (`notes`, text): Notes about the owner.
- Date of birth (`date_of_birth`, date): The owner's date of birth.
- Street (`street`, text): The street address.
- Street line 2 (`street_line_2`, text): The second address line, such as an apartment.
- City (`city`, text): The city.
- ZIP code (`zip`, text): The ZIP or postal code.
- Country (`country`, text): The country.
- Active (`active`, true/false): Whether the owner is active. New owners are active.
- Management start date (`management_start_date`, date): When you started managing for this owner.
- Management end date (`management_end_date`, date): When management for this owner ends.

**Outputs**

- `data` (object): The response from DoorLoop.

**Example output**

```json
{
  "data": {
    "active": false,
    "company": "example",
    "companyName": "example",
    "dateOfBirth": "example",
    "emails": [],
    "federalTaxInfo": {
      "addressFor1099": {
        "city": "example",
        "country": "example",
        "lat": "example",
        "lng": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "addressFor1099SameAsPrimaryAddress": false,
      "taxpayerId": "example",
      "taxpayerName": "example"
    },
    "firstName": "example",
    "fullName": "example",
    "gender": "MALE",
    "id": "example",
    "jobTitle": "example",
    "lastName": "example",
    "managementEndDate": "example",
    "managementStartDate": "example",
    "middleName": "example",
    "name": "example",
    "notes": "example",
    "phones": [],
    "pictureUrl": "example",
    "primaryAddress": {
      "city": "example",
      "country": "example",
      "lat": "example",
      "lng": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "timezone": "example"
  }
}
```
