> ## 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.

# TDS Visitor Management

> Connect TDS Visitor Management to KODE OS for reservations data

> Connect TDS Visitor Management to KODE OS for reservations data integration

## Overview

Use this integration to bring TDS Visitor Management into KODE OS. You collect visitor check-in, pre-registration, and scheduling history over REST for secure, auditable visitor operations.

| Property            | Value        |
| ------------------- | ------------ |
| **System Type**     | Reservations |
| **Communication**   | REST         |
| **Collection**      | Pull         |
| **Collection Mode** | HISTORICAL   |

## Supported Capabilities

* Collect Sensor Data
* Collect Non-Sensor Data

## Prerequisites

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

## Generate API Credentials

1. Log in to the TDS Visitor Management 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
5. Note the **Auth URL** for OAuth token exchange

## Configure Connector in KODE OS

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

| Field             | Required | Type     | Description                                                |
| ----------------- | -------- | -------- | ---------------------------------------------------------- |
| **URL**           | Yes      | text     | The base URL or IP address of the external system          |
| **Auth URL**      | Yes      | text     | The OAuth authorization URL for token exchange             |
| **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 |
| **Site ID**       | Yes      | text     | The site identifier in the external system                 |

## What Data You Get

### Bookings

Space reservation records including attendees, check-in/out times, confirmation status, and room/space details

KODE OS maps TDS Visitor Management data to these standard fields:

| KODE Field           | Source Field                       | Notes       |
| -------------------- | ---------------------------------- | ----------- |
| **id**               | `bookingReference`                 | --          |
| **description**      | `visitReasonDescription`           | --          |
| **createdAt**        | `Instant.now(`                     | --          |
| **updatedAt**        | `lastModifiedDateTimeUtc`          | --          |
| **createdBy**        | `bookerUsername`                   | --          |
| **locationId**       | `zoneCode`                         | --          |
| **locationName**     | `zoneDescription`                  | --          |
| **startDateTime**    | `inviteDateTimeUtc`                | transformed |
| **endDateTime**      | `endDateTimeUtc`                   | transformed |
| **hostName**         | `hostForename + " " + hostSurname` | --          |
| **attendeeName**     | `forename`                         | --          |
| **attendeeEmail**    | `emailAddress`                     | --          |
| **attendeePhone**    | `mobilePhoneNumber`                | --          |
| **attendeeCompany**  | `companyCode`                      | --          |
| **checkInDateTime**  | `checkedInDateTimeUtc`             | transformed |
| **checkOutDateTime** | `checkedOutDateTimeUtc`            | transformed |
| **canceledAt**       | `cancellationDateTimeUtc`          | transformed |
| **customFields**     | `department`                       | --          |

### Polling Schedule

* **Booking**

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

## Use Cases

Once connected, this integration enables you to:

* Centralize space and resource booking data across platforms
* Track no-show rates and actual utilization versus bookings
* Coordinate meeting room conditions (HVAC, lighting) with reservation schedules

## 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 TDS Visitor Management developer portal.
  </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 TDS Visitor Management API.
  </Accordion>
</AccordionGroup>
