> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.trackleads.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.trackleads.io/_mcp/server.

# API-Überblick

> Einstieg in die öffentliche Trackleads-API.

Mit der Trackleads-API schreibst du Daten aus deinen eigenen Systemen in ein Trackleads-Business. Typische Anwendungen sind eigene Formulare, Checkouts, CRM-Systeme und individuelle Automationen.

## Basis-URL

```text
https://api.trackleads.io/api/v1
```

Alle Endpunkte sind `POST`-Endpunkte mit JSON-Body. Ein API-Key gehört zu genau einem Business, alle Aufrufe wirken auf dieses Business.

## Die APIs

| API               | Zweck                                                                                                           |
| ----------------- | --------------------------------------------------------------------------------------------------------------- |
| **Leads**         | Legt eine Person an oder aktualisiert sie und trägt die Tracking-Zuordnung.                                     |
| **Deals**         | Der Kauf und sein Lebenszyklus: Einmalzahlungen, Zahlungspläne, Erstattungen und Stornos. Hier entsteht Umsatz. |
| **Lead-Notizen**  | Notizen an einem Lead.                                                                                          |
| **Funnel-Events** | Eigene Events für Funnel-Schritte und Trigger.                                                                  |

## Erster Aufruf

```bash
curl -X POST https://api.trackleads.io/api/v1/leads/upsert \
  -H "X-API-Key: DEIN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "email": ["jane@example.com"],
    "name": "Jane Doe",
    "utm_parameters": {"utm_source": "facebook", "tlio_adid": "120211478283920123"}
  }'
```

```json
{ "ok": true, "id": "K7Q2M9XA", "created": true }
```

## Weiter

#### [Authentifizierung](/api/authentifizierung)

API-Key erhalten und mitsenden.

#### [Käufe senden](/api/kaeufe-senden)

Der empfohlene Ablauf vom Lead bis zur Erstattung.

#### [Konventionen und Limits](/api/konventionen)

Formate, Rate-Limit und Wiederholungen.

#### [Fehler](/api/fehler)

Statuscodes und Fehlerformate.