# Alle Listen abrufen (https://webmetic.de/docs/api/referenz/enrichment/lists)

## GET /enrichment/lists

Lists of the account with their counts, newest first, paged with `page` and `page_size`.

### Parameter

| Name | Ort | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- | --- |
| `page` | query | integer | nein | Seite, beginnt bei 1 |
| `page_size` | query | integer | nein | Listen pro Seite |

### Antworten

| Status | Beschreibung |
| --- | --- |
| 200 | Listen mit Fortschritt, neueste zuerst |
| 403 | ENRICHMENT_KEY_MISSING, ENRICHMENT_KEY_INVALID oder ENRICHMENT_KEY_NOT_FOUND: der Enrichment-Key fehlt, hat das falsche Format oder ist unbekannt; ACCOUNT_NOT_ELIGIBLE: das Konto kann Enrichment derzeit nicht nutzen |
| 422 | VALIDATION_ERROR: ein Parameter oder der Body fehlt oder ist ungültig; `errors` nennt jedes Problem |
| 500 | INTERNAL_ERROR: unerwarteter Serverfehler |

Felder der Antwort 200:

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `lists` | EnrichmentList[] | ja | Listen des Kontos, neueste zuerst |
| `lists[].id` | string | ja | Id der Liste |
| `lists[].name` | string | ja | Name der Liste |
| `lists[].desc` | string | ja | Beschreibung, leer wenn keine |
| `lists[].created_at` | string | ja | Angelegt, ISO 8601 in UTC |
| `lists[].updated_at` | string | ja | Zuletzt geändert, ISO 8601 in UTC |
| `lists[].total_rows` | integer | ja | Zeilen insgesamt |
| `lists[].done_rows` | integer | ja | Angereicherte Zeilen |
| `lists[].miss_rows` | integer | ja | Zeilen ohne Unternehmensdaten |
| `lists[].pending_rows` | integer | ja | Noch offene Zeilen; bei 0 ist die Liste fertig |
| `pagination` | Pagination[] | ja | Immer genau ein Eintrag |
| `pagination[].total` | integer | ja | Entries over all pages |
| `pagination[].page_total` | integer | ja | Number of pages; 0 on an empty result |
| `pagination[].isFirst` | boolean | ja | true on page 1 |
| `pagination[].current` | integer | ja | This page, from 1 |
| `pagination[].isLast` | boolean | ja | true when current >= page_total, also on an empty result |
| `pagination[].page_size` | integer | ja | Entries per page as requested |

### Beispiel

```bash
curl -X GET 'https://hub.webmetic.de/enrichment/lists' \
  -H 'Authorization: wmtc_IHR_API_SCHLUESSEL'
```