> ## 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 Nmbrs to Neo

> Register a Nmbrs app and API subscription, give consent once and save it in Neo

You connect Nmbrs once at the MSP level, with your own app in the Nmbrs developer portal.

## Before you start

* Neo acts as the Nmbrs profile that gives consent (a client or company login), with that profile's access to your debtors and companies. Give consent with a profile that sees every company Neo should work in.
* Every leave request and hour component Neo books shows that profile as its author.

## 1. Register the app and the subscription

In the Nmbrs developer portal ([developer.nmbrs.com](https://developer.nmbrs.com)):

1. Open **My Integrations** and register an app named Neo, with the **Redirect URI** `http://localhost:8080`, exactly. Copy the **Client ID** and generate a **Client Secret**.
2. Open **Products** and subscribe to the Nmbrs API. In your profile, copy the subscription's **Primary Key**: that is the **Subscription Key**.

## 2. Give consent

Open this address in your browser, with your Client ID in place of `<Client ID>`:

```
https://identityservice.nmbrs.com/connect/authorize?client_id=<Client ID>&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A8080&scope=company.info%20company.payrollsettings%20company.payrollsettings.read%20company.leave.read%20company.document.read%20debtor.info.read%20user.info.read%20document.read%20employee.info%20employee.employment%20employee.payment%20employee.leave%20employee.orgstructure%20employee.bankaccount%20employee.document%20employee.document.read%20employee.payrollsettings%20employee.payrollsettings.read%20offline_access&state=neo
```

Sign in to Nmbrs, pick the profile and give consent. To keep an area from Neo altogether, remove its scope from the address before you open it (keep `offline_access`); Neo's permission groups below narrow it further.

Your browser then opens a page that does not load. That is expected: copy the whole address from the address bar. It starts with `http://localhost:8080/?code=`. The code works once and expires after five minutes, so do the next step straight away.

## 3. Save it in Neo

**1. Open Integrations**

In the Neo Dashboard, open **Integrations** and find the Nmbrs card, under HR & Business Apps.

**2. Save the app, the key and the consent**

Enter the Client ID, the Client Secret and the Subscription Key, paste the address you copied into **Authorization**, and click **Save settings**. Neo turns the code into a token before saving, so a wrong secret or an expired code is rejected straight away.

Neo keeps the connection alive from then on, also in months when no agent uses it. Nmbrs issues a new token each time Neo renews it, so the consent works for Neo alone: never paste it into another program.

If you revoke the consent in Nmbrs or change the app's Client Secret, Neo stops reaching Nmbrs and sends you a message in the dashboard. Give consent again (step 2) and save the new address.

## 4. Turn Nmbrs on per agent

Open the agent, go to the Integrations section, and pick an access profile for the Nmbrs block, or set each area yourself:

| Area | Access levels you can pick | Notes |
| - | - | - |
| **Companies & Settings** | Disabled, Read Only | Companies, payroll periods, hour codes and leave groups; most jobs need it. |
| **Employees** | Disabled, Read Only, Read / Write | Employees with their work email; matching technicians needs it. Neo never reads private contact details here. |
| **Private Data & Bank Accounts** | Disabled, Read Only, Read / Write | Social security number, home address, partner and children, the employees' and the company's bank accounts. Leave it off unless a job needs it. |
| **Contracts & Salaries** | Disabled, Read Only, Read / Write | Employments, contracts, schedules and salaries. |
| **Hours & Wage Components** | Disabled, Read Only, Read / Write | Hours and wage components per payroll period. |
| **Leave** | Disabled, Read Only, Read / Write | Leave groups' balances and requests; the overtime job books here. |
| **Absence** | Disabled, Read Only, Read / Write | Sick leave dossiers. |
| **Payroll Runs** | Disabled, Read Only | Payroll runs, wage tax declarations and pension exports. |
| **Employee Documents** | Disabled, Read Only, Read / Write | Uploading a document to an employee's file. |

For the overtime job, pick **Helpdesk**: it reads what the job needs and asks a technician before each booking. See [Nmbrs API](https://docs.neoagent.io/agents/tools/management/nmbrs-api.md) for the profiles and what the agent can read and change.


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