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

# Connecting Webex to Neo

> Create a Webex Service App or Integration for Neo, authorize it, and save its client ID, secret and refresh token or authorization code in Neo

Neo signs in to Webex through an app you create for Neo on [developer.webex.com](https://developer.webex.com). Choose one of two kinds:

* **Service App**: a Webex machine account for one organization. A full administrator of that organization authorizes it in Control Hub. It keeps working when a person leaves. Use it when you manage one customer's Webex, or to give one customer its own connection.
* **Integration**: an app a person signs in to once. Sign in as a **partner administrator** and Neo reaches every customer organization you manage, or as a full administrator of one organization.

## 1. Choose the scopes

Every connection needs `spark-admin:organizations_read`: Neo checks the connection, and maps your customers, by listing organizations, so a save without it is refused. Add the admin scopes for the areas your agents use.

| Neo area | Webex scopes |
| - | - |
| Organization, Licenses & Admins | `spark-admin:organizations_read`, `spark-admin:licenses_read`, `spark-admin:roles_read`, `identity:organizations_rw` |
| People & Groups | `spark-admin:people_read`, `spark-admin:people_write`, `identity:people_rw` |
| Locations & Calling Settings | `spark-admin:locations_read`, `spark-admin:locations_write`, `spark-admin:telephony_config_read`, `spark-admin:telephony_config_write` |
| User Call Handling & Voicemail | `spark-admin:telephony_config_read`, `spark-admin:telephony_config_write`, `spark-admin:people_write` |
| Call Queues, Hunt Groups & Auto Attendants | `spark-admin:telephony_config_read`, `spark-admin:telephony_config_write` |
| Devices & Workspaces | `spark-admin:devices_read`, `spark-admin:devices_write`, `spark-admin:workspaces_read`, `spark-admin:workspaces_write` |
| Phone Numbers, PSTN & Routing | `spark-admin:telephony_config_read`, `spark-admin:telephony_config_write`, `spark-admin:telephony_pstn_read`, `spark-admin:telephony_pstn_write` |
| Call History & Reports | `spark-admin:calling_cdr_read`, `spark-admin:reports_read` |
| Recordings & Transcripts | `spark-admin:recordings_read`, `spark-admin:recordings_write` |
| Audit Events | `audit:events_read` |

Detailed Call History also needs the Control Hub role **Webex Calling Detailed Call History API access** on the administrator who signs in, or on the Service App.

## 2a. Connect with a Service App

**1. Create the Service App**

On [developer.webex.com](https://developer.webex.com), open **My Webex Apps**, choose **Create a New App**, then **Create a Service App**. Name it "Neo", choose the scopes from step 1, and submit it. Copy the **Client ID** and **Client Secret**: Webex shows the secret once.

**2. Authorize it in Control Hub**

A full administrator of the customer organization opens Control Hub, **Apps**, **Service Apps**, finds "Neo" and authorizes it.

**3. Copy the refresh token**

Back on the Service App's page on developer.webex.com, choose the organization under **Org Authorizations**, enter the client secret, and click **Generate tokens**. Copy the **Refresh token**.

**4. Save it in Neo**

In the Neo Dashboard, open **Integrations** and find the Webex card, under Phone & VoIP. Choose the sign-in **Service App (refresh token)**, enter the client ID, the client secret and the refresh token, and click **Save settings**. Neo signs in and lists the organization before it saves, so a wrong secret or token is refused at once, with Webex's reason.

**5. Confirm the company matches**

After the save, Neo matches your Webex organizations to your PSA companies. This usually takes under a minute. Open the card's [**Organization Mapping**](https://dashboard.neoagent.io/integrations?open=webex\&subtab=org-mapping\&mapping=to_confirm) tab on the **To confirm** filter, tick the matches that are right and click **Confirm**. Agents do not use a suggested match until you confirm it. The Webex card on the Integrations page shows how many matches wait. [Company Mapping](https://docs.neoagent.io/product/company-mapping.md#on-the-integrations-organization-mapping-tab) describes the rest of the tab.

## 2b. Or connect with an Integration

**1. Create the Integration**

On developer.webex.com, choose **Create a New App**, then **Create an Integration**. Add the redirect URI `https://localhost`, choose the scopes from step 1, and save. Copy the **Client ID**, the **Client Secret** and the **OAuth Authorization URL** Webex shows.

**2. Sign in once**

As the partner or full administrator Neo should act as, open the OAuth Authorization URL in a browser, sign in and accept. The browser then opens `https://localhost` and shows an error page: that is expected. Copy the value after `code=` from the address bar.

**3. Save it in Neo at once**

On the Webex card, choose the sign-in **Integration (sign in once in the browser)**, enter the client ID, the client secret, the redirect URI `https://localhost` and the code, and click **Save settings**. A code works once and for a few minutes. Neo exchanges it and keeps the connection alive from then on.

**4. Confirm the company matches**

After the save, Neo matches your Webex organizations to your PSA companies. This usually takes under a minute. Open the card's [**Organization Mapping**](https://dashboard.neoagent.io/integrations?open=webex\&subtab=org-mapping\&mapping=to_confirm) tab on the **To confirm** filter, tick the matches that are right and click **Confirm**. Agents do not use a suggested match until you confirm it. The Webex card on the Integrations page shows how many matches wait. [Company Mapping](https://docs.neoagent.io/product/company-mapping.md#on-the-integrations-organization-mapping-tab) describes the rest of the tab.

> [!WARNING]
>
> If the app's authorization is revoked, the refresh token is unused for 90 days, or the administrator who signed in loses their role, Neo loses access until you save new credentials here.

## 3. Map your customers

Neo lists the organizations the sign-in sees and suggests the PSA company for each on the **Organization Mapping** tab. Confirm them there. On a ticket, Neo works only in the organization mapped to the ticket's company, and refuses any call that names another. A customer can also have its own Service App beside your main sign-in. Map its organization on the tab first (your main sign-in must list it), then use **Add a customer's own key** on the card. That sign-in reaches only the organization mapped to that customer.

## 4. Turn Webex on per agent

Open the agent, go to its **Tools & Settings** tab, click **Phone & VoIP**, and expand the **Webex** block. Pick one of its **Presets**, or set each area yourself.

| Preset | What runs on its own | What asks a technician |
| - | - | - |
| **Read Only** | Every read | No write is allowed |
| **Helpdesk** | Every read | Every change to users, call handling, queues, phones, numbers, calls, meetings and messages. The organization, locations, webhooks and wholesale stay read only |
| **IT Admin** | Every read, and changes to users, call handling, phones and locations | Licenses and admin roles, numbers and routing, queues, hunt groups, call pickup and other shared call features, calls, meetings, messages, recordings, webhooks and wholesale provisioning |
| **Full Automation** | Every read and write | Deleting a location, emergency calling, sign-in and identity settings, admin grants and authority over another user's line, webhooks, revoking an app, room device commands, and updates that replace a whole record |

## Limits

Neo keeps each tenant to 100 Webex calls a minute and waits when Webex asks it to. Detailed Call History returns calls that ended between 5 minutes and 48 hours ago.


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