> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/c/crestron-xio-cloud.md).

# Crestron XiO Cloud

Crestron XiO Cloud manages Crestron room and AV devices. OctoXLabs uses the XiO Cloud API to add the devices of an account, with their network details, to the inventory.

## Use cases

* List Crestron devices that XiO Cloud reports.

```
Adapters = crestron-xio-cloud
```

* Find Crestron devices that are missing from the CMDB.

```
Adapters = crestron-xio-cloud AND NOT Adapters = servicenow-cmdb
```

## Before you begin

### Network

| Source              | Destination                             | Port | Protocol |
| ------------------- | --------------------------------------- | ---- | -------- |
| OctoXLabs connector | XiO Cloud API (default api.crestron.io) | 443  | HTTPS    |

### Required permissions

| Scope or role                | Permission | Needed for         |
| ---------------------------- | ---------- | ------------------ |
| Account with Read permission | Read       | Device status list |

## Create credentials in Crestron XiO Cloud

{% stepper %}
{% step %}

### Enable the public API

A user with Global Administrator permissions enables the XiO Cloud REST API in the XiO Cloud portal. This issues the customer account ID.
{% endstep %}

{% step %}

### Get the subscription key

The portal generates an API subscription key. The key must belong to an account with Read permission.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter        | Required | Type     | Default         | Description                                                                 |
| ---------------- | -------- | -------- | --------------- | --------------------------------------------------------------------------- |
| Domain           | Yes      | Text     | api.crestron.io | XiO Cloud API host. Keep the default unless Crestron directs you elsewhere. |
| Account ID       | Yes      | Text     |                 | Customer account ID issued after you enable public API access.              |
| Subscription Key | Yes      | Password |                 | Sent as the `XiO-subscription-key` header.                                  |
| Is Secure        | No       | Boolean  | True            | Use HTTPS.                                                                  |
| Proxy            | No       | Text     |                 | Proxy URL.                                                                  |
| Timeout          | No       | Number   | 30              | Seconds to wait for API responses.                                          |

## Troubleshooting

| Error message                | Cause                               | Fix                   |
| ---------------------------- | ----------------------------------- | --------------------- |
| Max retries exceeded for ... | HTTP 429 persisted after 5 retries. | Wait and retry later. |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
