> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.kodelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Corrigo

> Connect Corrigo to KODE OS for work orders data

> Connect Corrigo to KODE OS for work orders data integration

## Overview

Use this integration to connect Corrigo to KODE OS. You can discover devices and points, collect work order and facilities data over REST with hybrid snapshot collection, and use supported actions for maintenance workflows across your portfolio.

| Property            | Value                |
| ------------------- | -------------------- |
| **System Type**     | Work Orders          |
| **Communication**   | REST                 |
| **Collection**      | Hybrid (Pull + Push) |
| **Collection Mode** | SNAPSHOT             |
| **Actions**         | Supported            |

## Supported Capabilities

* Discover Devices & Points
* Collect Sensor Data
* Collect Non-Sensor Data

## Prerequisites

* An active account with Corrigo and access to their API or developer portal
* OAuth client credentials (Client ID and Client Secret) from the Corrigo developer portal
* KODE OS environment with access to Data Sources

### Vendor Onboarding References

Use these official vendor resources to verify API access, credentials, and permission prerequisites:

* [Corrigo developer hub](https://developer.corrigo.com/)
* [Corrigo entities and operations](https://developer.corrigo.com/reference/entities)

## Generate API Credentials

1. Log in to the Corrigo developer portal or admin console
2. Navigate to the API or developer settings section
3. Create a new API application or client
4. Note the **Client ID** and **Client Secret** -- you will need these when configuring the connector in KODE OS

## Configure Connector in KODE OS

1. Navigate to **Data Sources** in your building
2. Click **API Catalog** and search for **Corrigo**
3. Click **+ Add Datasource**
4. Fill in the fields below and complete the three-page setup flow

| Field             | Required | Type     | Description                                                |
| ----------------- | -------- | -------- | ---------------------------------------------------------- |
| **Client Name**   | Yes      | text     | The client application name registered with the vendor     |
| **URL**           | Yes      | text     | The base URL or IP address of the external system          |
| **Client ID**     | Yes      | password | The OAuth client ID from the vendor's developer portal     |
| **Client Secret** | Yes      | password | The OAuth client secret from the vendor's developer portal |

## Discover Devices and Points

After configuring the connector, click **Discover** on the connector detail page. KODE OS will query the Corrigo system and return a list of available devices and their data points.

Review the discovered items and select the devices you want to register in KODE OS.

For more details on the discovery process, see the [Discovery guide](/products/integrations/capabilities/discovery).

## Devices and Points

When you discover devices from Corrigo, KODE OS maps them to the following device types and data points:

### IO Reader / Controller

Canonical Type: `IOREADER`

| # | Point           | Description                                                                           | Unit | Writable | Collection |
| - | --------------- | ------------------------------------------------------------------------------------- | ---- | -------- | ---------- |
| 1 | `is_online`     | **True** -- device is connected and reporting / **False** -- device is not responding | --   | No       | Polling    |
| 2 | `is_locked`     | **True** -- access point is locked / **False** -- access point is unlocked            | --   | No       | Polling    |
| 3 | `is_restricted` | **True** -- access is restricted / **False** -- access is not restricted              | --   | No       | Polling    |

## What Data You Get

### Point History

Time-series readings including is\_online, is\_locked, is\_restricted, collected at regular intervals from connected devices

### Work Orders

Maintenance and service requests including title, description, status, priority, assignee, due dates, vendor response, resolution details, and cost estimates

KODE OS maps Corrigo data to these standard fields:

| KODE Field        | Source Field                                 | Notes       |
| ----------------- | -------------------------------------------- | ----------- |
| **assignedTo**    | `additionalInfo.employeeDisplay`             | --          |
| **lastComment**   | `additionalInfo.lastActionComment`           | --          |
| **priority**      | `additionalInfo.priorityDisplay`             | --          |
| **id**            | `number`                                     | --          |
| **description**   | `taskRefinement`                             | --          |
| **status**        | `statusId`                                   | --          |
| **category**      | `typeCategory`                               | --          |
| **location**      | `shortLocation`                              | --          |
| **createdAt**     | `createdDateUtc`                             | transformed |
| **updatedAt**     | `lastActionDateUtc`                          | transformed |
| **dueDate**       | `dueDateUtc`                                 | transformed |
| **duration**      | `duration`                                   | --          |
| **estimatedCost** | `vendorNte.value + vendorNte.currencyTypeId` | --          |
| **assetId**       | `mainAsset.stringValue`                      | transformed |

### Polling Schedule

* **Point History** -- Default polling: 1 hours (min: 1 hours, max: 1 hours)
* **WorkOrder** -- Default polling: 5 minutes (min: 5 minutes, max: 1 hours)

For more details on collection modes, see the [Data Collection guide](/products/integrations/capabilities/data-collection).

## Available Actions

### Create Corrigo Work Order

**Type:** Write

Creates a new work order in Corrigo Enterprise. Requires only a comment; work order context (building, device, priority) is auto-populated from the KODE OS alarm or device.

| Field       | Type   | Required | Input     | Options / Default |
| ----------- | ------ | -------- | --------- | ----------------- |
| **Comment** | STRING | Yes      | Text Area | --                |

#### Example Request

```json theme={null}
{
  "comment": "example-value"
}
```

#### Expected Result

* KODE OS sends the action to the external API using the configured connector credentials
* The external system returns success (typically HTTP 2xx) and processes the requested operation

For more details on how actions work, see the [Actions guide](/products/integrations/capabilities/actions).

## Use Cases

Once connected, this integration enables you to:

* Centralize maintenance requests and work order status from facility management systems
* Create and update work orders directly from KODE OS when issues are detected
* Track maintenance KPIs including response time, completion rate, and cost

## Troubleshooting

<AccordionGroup>
  <Accordion title="Authentication or connection error">
    Verify that the credentials are correct and have not expired. Check that the URL is reachable from the KODE OS environment. Ensure the Client ID and Client Secret match the values from the Corrigo developer portal.
  </Accordion>

  <Accordion title="Discovery returns no devices">
    Verify the connector credentials have sufficient permissions in the Corrigo system to list devices. Run a test connection first to confirm connectivity. Some systems require specific API scopes or roles for device enumeration.
  </Accordion>

  <Accordion title="Data collection stops or gaps appear">
    Check the connector status on the Data Sources page. If the status shows an error, review the error logs on the connector detail page. Common causes include expired credentials, network changes, or rate limiting by the Corrigo API.
  </Accordion>
</AccordionGroup>
