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

# ILIOT as a data source

> Bring your ILIOT maintenance data to Nekt: service orders and their checklist items, assets and maintenance plans, customers, sites, alerts and issue bulletins.

ILIOT is an asset maintenance management platform used by service companies to run field service: service orders with checklists, assets (machines) with maintenance plans and hour meters, customers, sites and technicians. This connector reads your ILIOT data through the ILIOT integration API and brings service orders with their answered checklist items, assets with their maintenance plan items, active alerts, customers, sites, projects, professionals, issue bulletins and the maintenance catalogs.

> [!NOTE]
>
> The connector only reads data. It never creates, changes or deletes anything in ILIOT.

## Before you start

The connector uses your company's **ILIOT integration token**, the same token ILIOT gives for API integrations (it is sent as the `iliot-company-token` header). There is one token per company, and it already defines which company's data is read.

If you don't have the token, ask ILIOT support for your company's API integration token.

> [!WARNING]
>
> ILIOT limits the number of requests per token, and the limit is shared with every other integration that uses the same token (for example, your ERP). The connector reads slowly and waits whenever ILIOT asks it to, but a run can take longer when another integration is busy at the same time.

## Configuring ILIOT as a Source

In the [Sources](https://app.nekt.ai/sources) tab, click on the "Add source" button located on the top right of your screen. Then, select the ILIOT option from the list of connectors.

Click **Next** and you'll be prompted to add your access.

### 1. Add account access

The following configurations are available:

* **Company Integration Token**: your company's ILIOT integration token. Paste only the token.
* **Start Date**: the earliest last-change date of the service orders (and their checklist items) read on the first sync or on a Full Sync. All the other tables are always read in full.

Once you're done, click **Next**.

### 2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. You can select entire groups of streams or pick specific ones.

> Tip: The stream can be found more easily by typing its name.

Select the streams and click **Next**.

### 3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.

* **Layer**: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
* **Folder**: a folder can be created inside the selected layer to group all tables being created from this new data source.
* **Table name**: we suggest a name, but feel free to customize it. You have the option to add a **prefix** to all tables at once and make this process faster!
* **Sync Type**: you can choose between INCREMENTAL and FULL\_TABLE.
  * Incremental: every time the extraction happens, we'll get only the new data, which is good if, for example, you want to keep every record ever fetched.
  * Full table: every time the extraction happens, we'll get the current state of the data, which is good if, for example, you don't want to have deleted data in your catalog.

Once you are done configuring, click **Next**.

### 4. Configure data source

Describe your data source for easy identification within your organization, not exceeding 140 characters.

To define your [Trigger](https://docs.nekt.com/runs/scheduling-and-triggers.md), consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times).

Optionally, you can define some additional settings:

* Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource [here](https://docs.nekt.com/get-started/core-concepts/resource-control).
* Determine when to execute an **Additional [Full Sync](https://docs.nekt.com/get-started/core-concepts/types-of-sync#additional-full-sync)**. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.

Once you are ready, click **Next** to finalize the setup.

### 5. Check your new source

You can view your new source on the [Sources](https://app.nekt.ai/sources) page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.

> [!WARNING]
>
> For you to be able to see it on your [Catalog](https://app.nekt.ai/catalog), you need at least one successful source run.

# Streams and Fields

## Available streams

The table below lists every stream, its **slug** (the exact identifier to pass when creating the source via API), how it is synced and a short description. Column names are the ILIOT field names.

| Stream | Slug | Sync | Description |
| :- | :- | :- | :- |
| Service orders | `service_orders` | Incremental | Service orders (ordens de serviço) with status, planned date, asset, customer, site, responsible professional and event history. |
| Service order items | `service_order_items` | Incremental | Checklist items answered in each service order: answer, comment, alert, hours and up to 10 measurements. |
| Checklists | `checklists` | Full table | Checklists used by service orders (metadata only). |
| Service types | `service_types` | Full table | Service types; a service type is the name of a maintenance plan (for example, REVISÃO 2000 HORAS). |
| Machines | `machines` | Full table | Assets (ativos) with their customer, site, project, warranty, hour meter and pictures. |
| Service plan items | `service_plan_items` | Full table | Maintenance plan items of each asset: service type, triggers by hours or time, last service and planned resources. |
| Alerts | `alerts` | Full table | Alerts already raised and still active (maintenance due by hour meter, warranty). The table holds the current set. |
| Maintenance resources | `maintenance_resources` | Full table | Labor (resource) and parts (material) used in maintenance, with unit cost and NCM code. |
| Customers | `customers` | Full table | Customers (clientes) with CNPJ or CPF, contact and address. |
| Sites | `sites` | Full table | Sites (localidades) where assets are installed, with address and coordinates. |
| Projects | `projects` | Full table | Projects, with cost center and dates. |
| Users | `users` | Full table | Professionals (field technicians and other users) with roles and rating. |
| Issue bulletins | `issue_bulletins` | Full table | Issue bulletins (ocorrências) with type, asset, status and urgency. |
| Issue bulletin types | `issue_bulletin_types` | Full table | Types of issue bulletins. |

## Fields by stream

### Service orders

> [accordion] Service orders
>
> Service orders (ordens de serviço) with status, planned date, asset, customer, site, responsible professional and event history.
>
> Table: `service_orders` · Primary key: `id` · Sync: Incremental (`updated_at`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the service order in ILIOT. |
> | `number` | Integer | Number of the service order shown in ILIOT. |
> | `checklist_id` | Integer | ID of the checklist used by the service order (see the checklists table). |
> | `site_id` | Integer | ID of the site (location) of the service order. |
> | `customer_id` | Integer | ID of the customer of the service order. |
> | `machine_id` | Integer | ID of the asset serviced by the service order. |
> | `company_id` | Integer | ID of the ILIOT company (tenant) that owns the service order. |
> | `planned_date` | Date | Date the service is planned for. |
> | `planned_date_hour` | String | Planned time of the service, as typed in ILIOT. |
> | `service_order_status` | String | Status of the service order: non\_inspected, non\_reviewed, reviewed, published or awaiting\_integration (other values may appear). |
> | `observations` | String | Notes of the service order. |
> | `activity_description` | String | Description of the activity done or to be done. |
> | `predicted_hours` | Number | Hours predicted for the service. |
> | `service_type` | String | Name of the service type of the order (text, not the ID). |
> | `user_id` | Integer | ID of the professional (technician) responsible for the service order (see the users table). |
> | `user_name` | String | Name of the professional responsible for the service order. |
> | `user` | String (JSON) | Professional responsible for the service order as embedded by ILIOT (JSON object). |
> | `extra_users` | String (JSON) | Other professionals assigned to the service order (JSON array of objects). |
> | `event_log` | String (JSON) | History of events of the service order (JSON array of objects). |
> | `created_at` | Datetime | When the service order was created in ILIOT. |
> | `updated_at` | Datetime | When the service order was last changed in ILIOT, used as the incremental replication key. |

> [accordion] Service order items
>
> Checklist items answered in each service order: answer, comment, alert, hours and up to 10 measurements.
>
> Table: `service_order_items` · Primary key: `service_order_id`, `id` · Sync: Incremental (`service_order_updated_at`)
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Identifier of the checklist item answered in the service order. |
> | `group` | String | Group (section) of the checklist the item belongs to. |
> | `name` | String | Name of the checklist item. |
> | `buttons` | String | Answer options of the item, as ILIOT sends them. |
> | `selected_button` | String | Answer option selected for the item. |
> | `comment` | String | Comment written for the item. |
> | `alert` | String | Alert raised by the item, if any. |
> | `name_maintenance` | String | Maintenance name linked to the item. |
> | `hours` | Number | Hours reported for the item. |
> | `measurement_unit` | String | Measurement unit of the item. |
> | `required_items_list` | String (JSON) | Required items (parts or materials) listed for the item (JSON array). |
> | `has_number1` | Boolean | Whether the checklist item asks for measurement #1. |
> | `number1` | String | Value answered for measurement #1, as ILIOT sends it (text). |
> | `number1_prefix` | String | Label (prefix) of measurement #1. |
> | `number1_type` | String | Type of measurement #1. |
> | `number1_collection` | String | Options offered for measurement #1 (JSON when ILIOT sends a list). |
> | `has_number2` | Boolean | Whether the checklist item asks for measurement #2. |
> | `number2` | String | Value answered for measurement #2, as ILIOT sends it (text). |
> | `number2_prefix` | String | Label (prefix) of measurement #2. |
> | `number2_type` | String | Type of measurement #2. |
> | `number2_collection` | String | Options offered for measurement #2 (JSON when ILIOT sends a list). |
> | `has_number3` | Boolean | Whether the checklist item asks for measurement #3. |
> | `number3` | String | Value answered for measurement #3, as ILIOT sends it (text). |
> | `number3_prefix` | String | Label (prefix) of measurement #3. |
> | `number3_type` | String | Type of measurement #3. |
> | `number3_collection` | String | Options offered for measurement #3 (JSON when ILIOT sends a list). |
> | `has_number4` | Boolean | Whether the checklist item asks for measurement #4. |
> | `number4` | String | Value answered for measurement #4, as ILIOT sends it (text). |
> | `number4_prefix` | String | Label (prefix) of measurement #4. |
> | `number4_type` | String | Type of measurement #4. |
> | `number4_collection` | String | Options offered for measurement #4 (JSON when ILIOT sends a list). |
> | `has_number5` | Boolean | Whether the checklist item asks for measurement #5. |
> | `number5` | String | Value answered for measurement #5, as ILIOT sends it (text). |
> | `number5_prefix` | String | Label (prefix) of measurement #5. |
> | `number5_type` | String | Type of measurement #5. |
> | `number5_collection` | String | Options offered for measurement #5 (JSON when ILIOT sends a list). |
> | `has_number6` | Boolean | Whether the checklist item asks for measurement #6. |
> | `number6` | String | Value answered for measurement #6, as ILIOT sends it (text). |
> | `number6_prefix` | String | Label (prefix) of measurement #6. |
> | `number6_type` | String | Type of measurement #6. |
> | `number6_collection` | String | Options offered for measurement #6 (JSON when ILIOT sends a list). |
> | `has_number7` | Boolean | Whether the checklist item asks for measurement #7. |
> | `number7` | String | Value answered for measurement #7, as ILIOT sends it (text). |
> | `number7_prefix` | String | Label (prefix) of measurement #7. |
> | `number7_type` | String | Type of measurement #7. |
> | `number7_collection` | String | Options offered for measurement #7 (JSON when ILIOT sends a list). |
> | `has_number8` | Boolean | Whether the checklist item asks for measurement #8. |
> | `number8` | String | Value answered for measurement #8, as ILIOT sends it (text). |
> | `number8_prefix` | String | Label (prefix) of measurement #8. |
> | `number8_type` | String | Type of measurement #8. |
> | `number8_collection` | String | Options offered for measurement #8 (JSON when ILIOT sends a list). |
> | `has_number9` | Boolean | Whether the checklist item asks for measurement #9. |
> | `number9` | String | Value answered for measurement #9, as ILIOT sends it (text). |
> | `number9_prefix` | String | Label (prefix) of measurement #9. |
> | `number9_type` | String | Type of measurement #9. |
> | `number9_collection` | String | Options offered for measurement #9 (JSON when ILIOT sends a list). |
> | `has_number10` | Boolean | Whether the checklist item asks for measurement #10. |
> | `number10` | String | Value answered for measurement #10, as ILIOT sends it (text). |
> | `number10_prefix` | String | Label (prefix) of measurement #10. |
> | `number10_type` | String | Type of measurement #10. |
> | `number10_collection` | String | Options offered for measurement #10 (JSON when ILIOT sends a list). |
> | `service_order_id` | Integer | ID of the service order this item belongs to (see the service\_orders table). |
> | `service_order_updated_at` | Datetime | Last change of the service order when this item was read; used as the incremental replication key. |

> [accordion] Checklists
>
> Checklists used by service orders (metadata only).
>
> Table: `checklists` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the checklist in ILIOT. |
> | `name` | String | Name of the checklist. |
> | `acronym` | String | Acronym of the checklist. |
> | `description` | String | Description of the checklist. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

> [accordion] Service types
>
> Service types; a service type is the name of a maintenance plan (for example, REVISÃO 2000 HORAS).
>
> Table: `service_types` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the service type in ILIOT. |
> | `code` | String | Code of the service type. |
> | `name` | String | Name of the service type; it works as the name of a maintenance plan (e.g. REVISÃO 2000 HORAS). |
> | `is_active` | Boolean | Whether the service type is active. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

### Assets and maintenance plans

> [accordion] Machines
>
> Assets (ativos) with their customer, site, project, warranty, hour meter and pictures.
>
> Table: `machines` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the asset (machine) in ILIOT. |
> | `name` | String | Name of the asset. |
> | `machine_type` | String | Type of the asset (e.g. compressor, dryer). |
> | `serial_number` | String | Serial number of the asset. |
> | `manufacturer` | String | Manufacturer of the asset. |
> | `model` | String | Model of the asset. |
> | `manufacture_year` | Integer | Year the asset was manufactured. |
> | `customer_id` | Integer | ID of the customer that owns or operates the asset (see the customers table). |
> | `customer_name` | String | Name of the customer of the asset. |
> | `customer` | String (JSON) | Customer of the asset as embedded by ILIOT (JSON object). |
> | `site_id` | Integer | ID of the site (location) where the asset is installed; empty for assets without a site. |
> | `site_name` | String | Name of the site where the asset is installed. |
> | `site` | String (JSON) | Site of the asset as embedded by ILIOT (JSON object); empty for assets without a site. |
> | `project_id` | Integer | ID of the project the asset belongs to (see the projects table). |
> | `project_name` | String | Name of the project the asset belongs to. |
> | `project` | String (JSON) | Project of the asset as embedded by ILIOT (JSON object). |
> | `acquisition_date` | Date | Date the asset was acquired. |
> | `purchase_date` | Date | Purchase date of the asset. |
> | `installation_date` | Date | Date the asset was installed. |
> | `warranty_in_months` | Integer | Warranty period of the asset, in months. |
> | `warranty_start_date` | Date | Date the asset's warranty started. |
> | `owner` | String | Owner of the asset. |
> | `cost_center` | String | Cost center of the asset. |
> | `account` | String | Accounting account of the asset. |
> | `price` | Number | Price (value) of the asset. |
> | `obs` | String | Notes about the asset. |
> | `criticality` | String | Criticality level of the asset. |
> | `initial_reading_date` | Date | Date of the first hour-meter reading of the asset. |
> | `last_reading_date` | Date | Date of the last hour-meter reading of the asset. |
> | `load_working_time` | Number | Hours the asset has worked under load. |
> | `working_time` | Number | Hour meter of the asset: total hours worked. |
> | `has_virtual_sensor` | Boolean | Whether the asset's hours are estimated by a virtual sensor instead of readings. |
> | `virtual_sensor_name` | String | Name of the virtual sensor of the asset. |
> | `virtual_sensor_daily_hours` | Number | Hours per day the virtual sensor adds to the hour meter. |
> | `virtual_sensor_days_in_week` | Number | Days per week the virtual sensor counts. |
> | `temperature` | String | Temperature reported for the asset. |
> | `picture` | String (JSON) | Main picture of the asset: URLs of the thumb, medium and original sizes (JSON object). |
> | `picture2` | String (JSON) | Second picture of the asset (JSON object with the URLs of each size). |
> | `picture3` | String (JSON) | Third picture of the asset (JSON object with the URLs of each size). |
> | `picture4` | String (JSON) | Fourth picture of the asset (JSON object with the URLs of each size). |
> | `sensors` | String (JSON) | Sensors of the asset (JSON array of objects). |
> | `machine_modules` | String (JSON) | Modules (components) of the asset (JSON array of objects). |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

> [accordion] Service plan items
>
> Maintenance plan items of each asset: service type, triggers by hours or time, last service and planned resources.
>
> Table: `service_plan_items` · Primary key: `machine_id`, `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the service plan item in ILIOT. |
> | `service_type_id` | Integer | ID of the service type that names this maintenance plan item (see the service\_types table). |
> | `work_trigger` | Number | Hours of work after which the maintenance is due. |
> | `time_trigger` | Number | Time interval after which the maintenance is due. |
> | `last_service_date` | Date | Date this maintenance was last done. |
> | `service_order_id` | Integer | ID of the service order linked to this plan item, if any. |
> | `working_time` | Number | Hour meter of the asset when the plan item was last updated. |
> | `load_working_time` | Number | Hours under load of the asset when the plan item was last updated. |
> | `hours` | Number | Hours set for this plan item. |
> | `last_budget_sent_at` | Date | Date the last budget for this maintenance was sent. |
> | `maintenance_resources_service_plan_items` | String (JSON) | Maintenance resources (parts and labor) planned for this item, with their quantities (JSON array of objects). |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |
> | `machine_id` | Integer | ID of the asset this plan item belongs to (see the machines table). |

> [accordion] Alerts
>
> Alerts already raised and still active (maintenance due by hour meter, warranty). The table holds the current set.
>
> Table: `alerts` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the alert in ILIOT. |
> | `alert_type` | String | Type of the alert, e.g. working\_time (maintenance due by hour meter) or warranty. |
> | `machine_id` | Integer | ID of the asset the alert is about (see the machines table). |
> | `critical` | Boolean | Whether the alert is critical. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

> [accordion] Maintenance resources
>
> Labor (resource) and parts (material) used in maintenance, with unit cost and NCM code.
>
> Table: `maintenance_resources` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the maintenance resource in ILIOT. |
> | `resource_type` | String | Kind of resource: resource (labor/service) or material (part). |
> | `code` | String | Code of the resource. |
> | `description` | String | Description of the resource. |
> | `measurement_unit` | String | Measurement unit of the resource. |
> | `unit_cost` | Number | Unit cost of the resource. |
> | `ncm_code` | String | NCM fiscal code of the resource. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

### Customers, sites and people

> [accordion] Customers
>
> Customers (clientes) with CNPJ or CPF, contact and address.
>
> Table: `customers` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the customer in ILIOT. |
> | `customer_type` | String | Customer type: company (legal entity, uses the CNPJ) or person (uses the CPF). |
> | `cnpj` | String | CNPJ (Brazilian company tax id) of the customer, as typed in ILIOT. |
> | `cpf` | String | CPF (Brazilian individual tax id) of the customer, as typed in ILIOT. |
> | `name` | String | Name (legal name) of the customer. |
> | `name2` | String | Trade name or second name of the customer. |
> | `email` | String | Main email address of the customer. |
> | `email2` | String | Secondary email address of the customer. |
> | `phone1` | String | Main phone number of the customer. |
> | `phone2` | String | Secondary phone number of the customer. |
> | `contact_name` | String | Name of the contact person at the customer. |
> | `state` | String | State of the customer's address (free text). |
> | `city` | String | City of the customer's address. |
> | `address` | String | Street address of the customer. |
> | `extra_info` | String | Additional information about the customer. |
> | `obs` | String | Notes about the customer. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

> [accordion] Sites
>
> Sites (localidades) where assets are installed, with address and coordinates.
>
> Table: `sites` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the site (location) in ILIOT. |
> | `name` | String | Name of the site, including its internal code. |
> | `name_without_code` | String | Name of the site without the internal code. |
> | `internal_code` | String | Internal code of the site. |
> | `rfid_tag` | String | RFID tag of the site. |
> | `lat` | String | Latitude of the site (text, as ILIOT sends it). |
> | `lng` | String | Longitude of the site (text, as ILIOT sends it). |
> | `state` | String | State of the site (free text: abbreviation or full name). |
> | `city` | String | City of the site. |
> | `address` | String | Street address of the site. |
> | `contact_name` | String | Name of the contact person at the site. |
> | `planned_date` | Date | Planned date of the site's next visit. |
> | `accomplished_date` | Date | Date of the site's last completed visit. |
> | `with_service_order` | Boolean | Whether the site has service orders. |
> | `customers` | String (JSON) | Customers linked to the site (JSON array of objects); may be empty even when the site is in use. |
> | `site_basic_info` | String | Basic information about the site. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

> [accordion] Projects
>
> Projects, with cost center and dates.
>
> Table: `projects` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the project in ILIOT. |
> | `name` | String | Name of the project. |
> | `cost_center` | String | Cost center of the project. |
> | `start_date` | Date | Start date of the project. |
> | `effective_date` | Date | Effective date of the project. |
> | `details` | String | Details of the project. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

> [accordion] Users
>
> Professionals (field technicians and other users) with roles and rating.
>
> Table: `users` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the professional (user) in ILIOT. |
> | `name` | String | Name of the professional. |
> | `roles` | Array of strings | Roles of the professional in ILIOT. |
> | `email` | String | Email address of the professional. |
> | `picture` | String | URL of the professional's picture. |
> | `phone1` | String | Main phone number of the professional. |
> | `phone2` | String | Secondary phone number of the professional. |
> | `rating` | Number | Average rating of the professional. |
> | `amount_rating` | Integer | Number of ratings the professional received. |
> | `company_id` | Integer | ID of the ILIOT company the professional belongs to. |
> | `company` | String (JSON) | Company of the professional as embedded by ILIOT (JSON object). |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

### Issue bulletins

> [accordion] Issue bulletins
>
> Issue bulletins (ocorrências) with type, asset, status and urgency.
>
> Table: `issue_bulletins` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the issue bulletin (occurrence) in ILIOT. |
> | `number` | Integer | Number of the issue bulletin shown in ILIOT. |
> | `title` | String | Title of the issue bulletin. |
> | `urgent` | Boolean | Whether the issue bulletin is urgent. |
> | `issue_bulletin_type_id` | Integer | ID of the type of the issue bulletin (see the issue\_bulletin\_types table). |
> | `machine_id` | Integer | ID of the asset the issue bulletin is about, if any. |
> | `customer_can_visualize` | Boolean | Whether the customer can see the issue bulletin. |
> | `description` | String | Description of the issue. |
> | `planned_date` | Date | Date planned to handle the issue. |
> | `status` | String | Status of the issue bulletin, e.g. pending\_internal, approved or solved. |
> | `link_url_api` | String | Link to the issue bulletin. |
> | `picture` | String (JSON) | Picture of the issue: URLs of the thumb, medium and original sizes (JSON object). |
> | `created_at` | Datetime | When the issue bulletin was created in ILIOT. |

> [accordion] Issue bulletin types
>
> Types of issue bulletins.
>
> Table: `issue_bulletin_types` · Primary key: `id` · Sync: Full table
>
> | Field | Type | Description |
> | :- | :- | :- |
> | `id` | Integer | Unique identifier of the issue bulletin type in ILIOT. |
> | `name` | String | Name of the issue bulletin type. |
> | `description` | String | Description of the issue bulletin type. |
> | `created_at` | Datetime | When the record was created in ILIOT. |
> | `updated_at` | Datetime | When the record was last changed in ILIOT. |

## How data is synced

* **Service orders** are incremental: each run reads the service orders changed since the previous run (with a safety margin of one hour). The first run, and a Full Sync, read every service order changed since the Start Date. A service order changed while the run reads it is stored with its newest version.
* **Service order items** come inside each service order, so they are read together with their service order and follow the same rule: the items of a service order are read again whenever the service order changes. If you select this table after the service orders already ran, its first run reads all service orders since the Start Date, so the items get their full history; after that it reads only the changes again. A checklist item removed from a service order stays in the table with an older `service_order_updated_at`; to keep only the current items of each order, keep the rows whose `service_order_updated_at` equals the `updated_at` of their service order.
* **Service plan items** come inside each asset (`machines`) and are read with it.
* **All other tables** are read in full on every run, so they always show the current state, including deletions. `alerts` holds only the alerts that are currently active.
* If a full-table table that had rows in the previous run comes back empty, it is not emptied: the run marks it as failed and keeps the previous data. If the records were really deleted in ILIOT, run a Full Sync to accept the empty table. This applies to every full-table table except `alerts` and `issue_bulletins`, which can really become empty (no active alert; possibly no open issue bulletin) and are replaced by the current set even when it is empty.
* Nested data (for example a service order's event history, an asset's customer, site, project and pictures, a site's customers) is stored as JSON text. The IDs of the embedded customer, site, project, professional and company are also available as their own columns (`customer_id`, `site_id`, `project_id`, `user_id`, `company_id`).
* **Measurements of checklist items** (`number1` to `number10`) are stored as text, as ILIOT sends them. Cast them to numbers in your queries when the measurement type is numeric.

> [!TIP]
>
> Set an **Additional Full Sync once a week** for this source (step 4 of the setup). It is a source setting, so it re-reads every selected table, including `service_orders` and their items in `service_order_items`. The incremental read relies on ILIOT changing a service order's last-change date when one of its checklist items is edited; the weekly Full Sync re-reads every service order since the Start Date and brings any item edited without that.

## Permissions

The integration token gives access to all the data of your company in ILIOT; there are no per-module permissions. If ILIOT refuses one table, that table is skipped in the run with a warning naming it, and the other tables keep syncing.

## Implementation Notes

### API Limits & Performance

* ILIOT limits requests per token, and the limit is shared with your other ILIOT integrations. When ILIOT asks the connector to wait, it waits and reads more slowly; if the limit lasts too long, the table fails in that run and the next run tries again.
* The connector sends about one request per second, to leave room for your other ILIOT integrations.
* When the changed service orders fill more than one page, they are read twice in the same run, so an order that moves in the list while it is being read is not missed. Full-table lists are read once: a record missed because the list changed during the read is back on the next run.
* `issue_bulletins` is read without filters. The ILIOT API documents only searches by number or by customer CNPJ, so check after the first run whether the table brings every issue bulletin or only the open ones. If it brings only open ones, the table becomes empty when all of them are solved.

## Troubleshooting

| Error or symptom | What it means | What to do |
| :- | :- | :- |
| "ILIOT rejected the integration token of this source" | The token is wrong, expired or was replaced. | Ask ILIOT support for your company's current integration token and update the source configuration. |
| "ILIOT refused access to these tables with this integration token" | ILIOT does not allow that table for your token. | Ask ILIOT support to enable API access to it, or deselect those tables. |
| "ILIOT answered 'not found' for these tables" | The feature may not be enabled for your company in ILIOT. | If you use the feature, contact Nekt support; otherwise deselect those tables. |
| "ILIOT returned no rows for these tables although the previous run read some" | A table that had rows came back empty, so it was not emptied. | Check in ILIOT that the records still exist. If they were really deleted, run a Full Sync of the source. |
| "ILIOT kept refusing requests ... request limit" | The request limit of the token was reached and did not reset during the run. | Run again later, or schedule the source at a time when your other ILIOT integrations are quiet. |
| A service order older than the Start Date is missing | Service orders are read from their last change on. | Move the Start Date back and run a Full Sync. |

## Skills for agents

<Snippet file="agent-skills-intro.mdx" />

> [card] [Download ILIOT skills file](https://docs.nekt.com/sources/iliot.md)
>
> ILIOT connector documentation as plain markdown, for use in AI agent contexts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.