> ## 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.

# FacturaDirecta - How do I link my account?

## Overview

To authenticate with FacturaDirecta, you need:

1. **Company ID** — the identifier of your company in the FacturaDirecta API.
2. **API Key** — an API key created for that company.

This guide will show you how to get both.

### Prerequisites

* A FacturaDirecta account with a company. API keys are available on every plan, including the free Gratis plan.

### Step 1: Copy your company ID

1. Log in to [FacturaDirecta](https://app.facturadirecta.com) and open the company you want to connect.
2. Click the **Settings** (gear) icon in the top bar.

![FacturaDirecta top bar with the Settings gear icon highlighted](https://mintcdn.com/nango/b0pCQfD88SNgAvQl/api-integrations/facturadirecta/open_settings.png?fit=max\&auto=format\&n=b0pCQfD88SNgAvQl\&q=85\&s=341ef35b8a2bbb4fb5c7c46d5a386b8f)

3. In the Settings menu, click **API and integrations** (**API e integraciones**).
4. In the **API** card, copy the value under **Your company identifier in the API**: this is your **Company ID**.

![FacturaDirecta API settings with the company identifier field and the Create new API key button](https://mintcdn.com/nango/b0pCQfD88SNgAvQl/api-integrations/facturadirecta/api_settings_create_key.png?fit=max\&auto=format\&n=b0pCQfD88SNgAvQl\&q=85\&s=652855287f04aae7cc2868844c97b392)

> [!NOTE]
>
> An API key only works for the company it was created in. Use the company ID of that same company.

### Step 2: Create an API key

1. On the same page, click **Create new API key**.
2. Enter a **Name** for the key, then set the permissions your integration needs. Click **Read only** to grant read access to every resource.
3. Click **Create key**, then confirm with **Yes, create key**.

![FacturaDirecta New API key dialog with the Name field, the Read only preset and the Create key button](https://mintcdn.com/nango/b0pCQfD88SNgAvQl/api-integrations/facturadirecta/new_api_key_dialog.png?fit=max\&auto=format\&n=b0pCQfD88SNgAvQl\&q=85\&s=34cf337aa8417d1cf188ba0a97371720)

4. In the **New API key created** dialog, click **Copy** to copy the full API key. It is shown only once.

![FacturaDirecta New API key created dialog with the copy button for the full key](https://mintcdn.com/nango/b0pCQfD88SNgAvQl/api-integrations/facturadirecta/api_key_created.png?fit=max\&auto=format\&n=b0pCQfD88SNgAvQl\&q=85\&s=500cb7b35540e7e6978706e814facb6e)

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

1. Open the form where you need to authenticate with FacturaDirecta.
2. Enter your company ID in the **Company ID** field.
3. Enter your API key in the **API Key** field.
4. Submit the form, and you should be successfully authenticated.

![FacturaDirecta Connect UI form with the Company ID and API Key fields](https://mintcdn.com/nango/b0pCQfD88SNgAvQl/api-integrations/facturadirecta/form.png?fit=max\&auto=format\&n=b0pCQfD88SNgAvQl\&q=85\&s=460aeec90a9b1a51374f4229e849e339)

You are now connected to FacturaDirecta.


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