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

# ERPNext - How do I link my account?

## Overview

To authenticate with ERPNext, you need:

1. **Site Hostname** — the hostname of your ERPNext site, for example `erp.example.com`.
2. **API Key** — the API key of the ERPNext user the integration acts as.
3. **API Secret** — the API secret generated together with the API key.

This guide will show you how to find all three.

### Prerequisites

* An ERPNext site, self-hosted or on [Frappe Cloud](https://frappecloud.com/erpnext/signup). Frappe Cloud offers a 14-day free trial.
* A user with the **System Manager** role. Only System Managers can generate API keys.

### Step 1: Find your site hostname

1. Open your ERPNext site in your browser.
2. Copy the hostname from the address bar, without `https://` or any path. On Frappe Cloud it ends in `.frappe.cloud`; on a self-hosted install it is your own domain, such as `erp.example.com`.

### Step 2: Generate your API key and API secret

API requests run with the permissions of the user the keys belong to, so pick a user whose roles cover the data your integration needs.

1. In your ERPNext site, go to **Setup** > **Users** and open the user the API key should act as.

![ERPNext user list under Setup with a user to open](https://mintcdn.com/nango/sAwU7ss2B_vZyzM9/api-integrations/erpnext/user_list.png?fit=max\&auto=format\&n=sAwU7ss2B_vZyzM9\&q=85\&s=79db129c2ad1e13323118472e8c8898e)

2. Open the **Settings** tab, expand **API Access** and click **Generate Keys**.

![ERPNext user Settings tab with the API Access section expanded and the Generate Keys button](https://mintcdn.com/nango/sAwU7ss2B_vZyzM9/api-integrations/erpnext/generate_keys.png?fit=max\&auto=format\&n=sAwU7ss2B_vZyzM9\&q=85\&s=2bc2b27b35e8466421fc7f7b2f019531)

3. In the **API Keys** popup, copy the **API Secret** and the **API Key**. The API Secret is shown only once: store it somewhere safe. If you lose it, click **Generate Keys** again to get a new secret.

![ERPNext API Keys popup showing the API Key and API Secret fields](https://mintcdn.com/nango/sAwU7ss2B_vZyzM9/api-integrations/erpnext/api_keys_created.png?fit=max\&auto=format\&n=sAwU7ss2B_vZyzM9\&q=85\&s=6713e1180e98fc9739e5528c7571d03b)

### Step 3: Enter your credentials in the Connect UI

1. Open the form where you need to authenticate with ERPNext.
2. In **Site Hostname**, enter your hostname from Step 1 (for example, `erp.example.com`).
3. In **API Key**, paste the API Key from Step 2.
4. In **API Secret**, paste the API Secret from Step 2.
5. Submit the form. Nango checks the credentials with your ERPNext site before saving the connection.

![ERPNext Connect UI form with the Site Hostname, API Key and API Secret fields](https://mintcdn.com/nango/sAwU7ss2B_vZyzM9/api-integrations/erpnext/form.png?fit=max\&auto=format\&n=sAwU7ss2B_vZyzM9\&q=85\&s=c9e3c8682a7335d33e2c308f34c26e81)

You are now connected to ERPNext.


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