# Canopy Connect

> Read Canopy Connect insurance pulls, monitoring events, widgets and Policy Streams.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/canopy-connect

## Actions

### Get carrier

Read supported products for an insurance carrier.

**Inputs**

- Carrier id (`carrier_id`, text, required): Carrier id.
- Products (`products`, text): Cannot be used with `public_alias`. Comma separated list of products to include carriers for. Valid products: `personal`, `commercial`
- Public alias (`public_alias`, text): Cannot be used with `products`. The widget public alias that is used to include carriers with products that match the widget's supported products

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "carrier_id": "example",
    "color": "example",
    "createAccountUrl": "example",
    "disablePasswordField": false,
    "homepageUrl": "example",
    "name": "example",
    "products": [],
    "resetPasswordUrl": "example",
    "servicingActions": [],
    "subIssuerOf": "example",
    "thirdFieldPlaceholder": "example",
    "thirdFieldValidatorError": "example",
    "thirdFieldValidatorRgx": "example",
    "thirdFieldValidatorRgxFlags": "example",
    "usernameFieldPlaceholder": "example"
  }
}
```

### Get insurance pull

Read policy information collected from a connected carrier.

**Inputs**

- Pull id (`pull_id`, text, required): ID of Pull to return
- With property data (`with_property_data`, true/false): Fetch property data when unavailable on the pull.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "pull": {
      "account_email": "example",
      "account_identifier": "example",
      "addresses": [],
      "agents": [],
      "answers": [],
      "claims": [],
      "created_at": "example",
      "documents": [],
      "drivers": [],
      "driving_records": [],
      "email": "example",
      "encountered_mfa": false,
      "first_name": "example",
      "funnel": {
        "assignee": {
          "agent_id": "example",
          "email": "example",
          "first_name": "example",
          "last_name": "example"
        },
        "premium": 1.0,
        "stage": "WORKING"
      },
      "home_phone": "example",
      "insurance_provider_friendly_name": "example",
      "insurance_provider_name": "example",
      "is_archived": false,
      "last_name": "example",
      "loss_events": [],
      "meta_data": "example",
      "metadata": {},
      "middle_name": "example",
      "mobile_phone": "example",
      "no_claims": false,
      "no_documents": false,
      "no_drivers": false,
      "no_loss_events": false,
      "no_policies": false,
      "parent_pull_id": "example",
      "phone": "example",
      "policies": [],
      "policy_check_status": "NONE",
      "public_alias": "example",
      "public_url": "example",
      "pull_id": "example",
      "skipped_product_types": [],
      "status": "STARTED",
      "supported_servicing_actions": [],
      "team_id": "example",
      "type": "PULLING_DATA",
      "widget_id": "example",
      "work_phone": "example",
      "work_phone_extension": "example"
    },
    "success": false
  }
}
```

### Get monitoring

Read a monitor and optionally its pulls.

**Inputs**

- Monitoring id (`monitoring_id`, text, required): ID of Monitoring
- With pulls (`with_pulls`, true/false): Whether pulls should be included. One of: `true`.
- Limit (`limit`, text): Pagination limit for the pulls
- Before (`before`, text): Pagination before pointer for a pull_id

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "monitoring": {
      "interval": "example",
      "latest_pull_id": "example",
      "monitoring_id": "example",
      "next_pull_date": "example",
      "status": "ACTIVE",
      "stop_after_date": "example"
    },
    "pulls": []
  }
}
```

### Get policy stream object

Read a policy stream object by ID.

**Inputs**

- Object id (`object_id`, text, required): ID of the Policy Stream object

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "object": {
      "carrier": "example",
      "carrier_customer_identifier": "example",
      "change": "ADDED",
      "changed_at": "example",
      "details": {},
      "effective_at": "example",
      "id": "example",
      "last_verified_at": "example",
      "policy_id": "example",
      "policy_number": "example",
      "policy_stream_id": "example",
      "state": "ACTIVE",
      "type": "POLICY_TERM"
    },
    "pull": "example"
  }
}
```

### Get team

Read the connected Canopy Connect team.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "client_id": "example",
    "company_name": "example",
    "team_id": "example"
  }
}
```

### Get widget

Read a connection widget by ID.

**Inputs**

- Widget id (`widget_id`, text, required): Widget id.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "success": false,
    "widget": {
      "agents": [],
      "brand_color_hex": "example",
      "cobranded_intro_screen": false,
      "company_name": "example",
      "icon_src": "example",
      "intro_title": "example",
      "is_sandbox": false,
      "logo_src": "example",
      "on_success_redirect_url": "example",
      "public_alias": "example",
      "public_url": "example",
      "success_message": "example",
      "widget_id": "example"
    }
  }
}
```

### List carriers

Read supported insurance carriers.

**Inputs**

- Products (`products`, text): Cannot be used with `public_alias`. Comma separated list of products to show carriers for. Valid products: `personal`, `commercial`
- Public alias (`public_alias`, text): Cannot be used with `products`. The widget public alias that is used to return carriers with products that match the widget's supported products

**Outputs**

- `data` (list): The response from Canopy Connect.

**Example output**

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

### List insurance pulls

Read insurance pulls by date with limit and offset.

**Inputs**

- Since (`since`, date and time): Filter by Pulls that occurred since the supplied date (inclusive)
- Before (`before`, date and time): Filter by Pulls that occurred before the supplied date (inclusive)
- Limit (`limit`, number): Optionally limit the number of Pulls that are returned in the response to a maximum of limit. Use along with offset. From 1 to 100.
- Offset (`offset`, number): Optionally return Pulls starting from the supplied offset within the total list of Pulls matching the query. Use along with limit

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "pulls": [],
    "total_pulls": 1
  }
}
```

### List monitoring events

Read the differences between the two most recent pulls.

**Inputs**

- Monitoring id (`monitoring_id`, text, required): ID of Monitoring

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "events": [],
    "latest_pull_id": "example",
    "previous_pull_id": "example"
  }
}
```

### List monitorings

Read recurring insurance monitors and their status.

**Inputs**

- Limit (`limit`, number): Pagination limit
- Before (`before`, text): Pagination before pointer of a monitoring_id
- Pull id (`pull_id`, text): Filter used to list Monitorings related to a Pull (cannot be used with account_identifier)
- Account identifier (`account_identifier`, text): Filter used to list Monitorings related to an Account Identifier (cannot be used with pull_id)
- Status (`status`, text): Filter used to list Monitorings of a certain status. One of: `ACTIVE`, `STOPPED`.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "monitorings": [],
    "monitorings_count": 1
  }
}
```

### List policy streams

Read policy streams available to the team.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

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

### List widgets

Read the team’s connection widgets.

**Inputs**

- Limit (`limit`, number): Pagination limit for the widgets. From 1 to 100.
- Before (`before`, text): Pagination before pointer for a widget_id

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "success": false,
    "widgets": []
  }
}
```

### Read policy stream updates

Read policy stream objects after a saved cursor.

**Inputs**

- Cursor (`cursor`, text): The `next_cursor` from your previous sync. Leave it out to start from the beginning. Cursors are opaque; store and send them back as-is.
- Limit (`limit`, number): Maximum number of objects to return. From 1 to 500.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "next_cursor": "example",
    "objects": [],
    "streams": []
  }
}
```

### Read policy stream updates by stream

Read policy stream objects for a specific stream.

**Inputs**

- Policy stream (`policy_stream_id`, text, required): ID of the Policy Stream
- Cursor (`cursor`, text): The `next_cursor` from your previous sync. Leave it out to start from the beginning. Cursors are opaque; store and send them back as-is.
- Limit (`limit`, number): Maximum number of objects to return. From 1 to 500.

**Outputs**

- `data` (object): The response from Canopy Connect.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "next_cursor": "example",
    "objects": [],
    "streams": []
  }
}
```
