> 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/cisco-webex.md).

# Cisco Webex

Cisco Webex is a collaboration platform. OctoXLabs uses the Webex APIs to add Webex devices and organization users, with their groups and administrator status, to the inventory.

## Use cases

* List Webex room and desk devices.

```
Adapters = cisco-webex
```

* Find Webex devices not seen in the last 30 days.

```
Adapters = cisco-webex AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                       | Port | Protocol |
| ------------------- | --------------------------------- | ---- | -------- |
| OctoXLabs connector | Webex API (default webexapis.com) | 443  | HTTPS    |

### Required permissions

| Scope or role                   | Permission | Needed for    |
| ------------------------------- | ---------- | ------------- |
| identity:people\_read           | Read       | Users (SCIM)  |
| spark-admin:devices\_read       | Read       | Devices       |
| spark-admin:organizations\_read | Read       | Organizations |

## Create credentials in Cisco Webex

{% stepper %}
{% step %}

### Create the integration

Sign in to `https://developer.webex.com` with a full administrator account of your organization. Open **My Webex Apps** and select **Create a New App > Create an Integration**.
{% endstep %}

{% step %}

### Grant scopes

Grant the **identity:people\_read**, **spark-admin:devices\_read** and **spark-admin:organizations\_read** scopes.
{% endstep %}

{% step %}

### Copy the credentials

Save the integration and copy the **Client ID** and **Client Secret**.
{% endstep %}

{% step %}

### Authorize and get the code

Open the **OAuth Authorization URL** shown on the integration page in a browser and sign in with the administrator account. After the redirect, copy the `code` parameter from the address bar.
{% endstep %}

{% step %}

### Exchange the code

Run this request, replacing the placeholders:

```
curl -X POST "https://webexapis.com/v1/access_token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=authorization_code" \
  -d "client_id=<Client ID>" \
  -d "client_secret=<Client Secret>" \
  -d "code=<code>" \
  -d "redirect_uri=<Redirect URI of the integration>"
```

{% endstep %}

{% step %}

### Save the refresh token

Enter the `refresh_token` from the response in the Refresh Token field.

{% hint style="warning" %}
The refresh token is valid for 90 days. If the connection fails with an authentication error, repeat these steps and update the Refresh Token.
{% endhint %}
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type     | Default       | Description                                                     |
| ------------- | -------- | -------- | ------------- | --------------------------------------------------------------- |
| Domain        | Yes      | Text     | webexapis.com | Host of the Webex REST API.                                     |
| Client ID     | Yes      | Text     |               | Client ID of the integration.                                   |
| Client Secret | Yes      | Password |               | Client secret of the integration.                               |
| Refresh Token | Yes      | Password |               | Used to get a new access token at the start of every discovery. |
| Proxy         | No       | Text     | Empty         | Proxy address.                                                  |
| Timeout       | No       | Number   | 30            | Seconds to wait for API responses.                              |

## Troubleshooting

| Error message                                    | Cause                                      | Fix                                                          |
| ------------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------ |
| Max retries exceeded for ...                     | The request kept failing after 5 attempts. | Check the credentials and rate limits.                       |
| Cisco Webex: token has access to no organization | The token lists no organization.           | Authorize with an administrator account of the organization. |

## Change history

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