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

# Introduction

> Cufea issues Colombian DIAN electronic invoices, credit and debit notes over a REST API.

Cufea issues Colombian electronic invoices and related documents through the DIAN. You send
JSON; Cufea builds the UBL XML, computes the CUFE or CUDE, signs it, sends it to the DIAN,
follows its status and tells you the outcome by webhook.

> [card] [Quickstart](https://docs.cufea.com/en/quickstart.md)
>
> A first sandbox invoice and a verified webhook in minutes.

> [card] [API reference](https://docs.cufea.com/en/api-reference/introduction.md)
>
> Every endpoint, generated from the OpenAPI contract, with a playground.

> [card] [Get a sandbox key](https://app.cufea.com/signup)
>
> Sign up in the developer console.

> [card] [Changelog](https://docs.cufea.com/en/changelog.md)
>
> What changed in each version of the contract.

## Three stages

Every API key drives one stage, and a key sees only the documents of its own stage:

| Stage | Key prefix | What it talks to |
| - | - | - |
| Sandbox | `cufea_sandbox_` | Cufea's simulated DIAN. No certificate, no RUT and no DIAN habilitación needed; nothing reaches a real DIAN endpoint. |
| DIAN test (habilitación) | `cufea_test_` | The DIAN test environment, with your certificate and the DIAN test set. |
| DIAN production | `cufea_prod_` | The DIAN production environment: documents with legal effect. It opens per tenant, only after the [promotion](https://docs.cufea.com/en/production.md). |

Every tenant gets a sandbox key from sign-up. See [Authentication](https://docs.cufea.com/en/authentication.md).

## Base URL

```
https://api.cufea.com
```

All routes are under `/v1`. Requests and answers are JSON; errors are
`application/problem+json` (see [Errors](https://docs.cufea.com/en/errors.md)).

## Who owns what

**Cufea owns** the DIAN logic: XML generation, CUFE and CUDE, signing, submission, status
tracking, numbering, credit and debit notes and RADIAN events. It keeps a minimal registry
(numbering, event chain, state, signed XML and DIAN responses) and always returns the signed
XML.

**You own** your business data (customers, products, accounting), your RUT, your numbering
resolution and your DIAN habilitación.

The DIAN rules cited in these docs (FAK07, FAN04, ...) are those of the *Anexo Técnico Factura
Electrónica de Venta v1.9*.

## For AI agents

This site publishes [`llms.txt`](https://docs.cufea.com/llms.txt) and a Markdown version of every page, so an agent
can read the documentation without the HTML. The [MCP server](https://docs.cufea.com/en/mcp.md) lets an agent issue
sandbox invoices directly.


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