> For the complete documentation index, see [llms.txt](https://www.nl-portal.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.nl-portal.nl/next/functionaliteiten/integraties-en-bouwstenen/catalogi-api.md). Agents can also search and read this documentation through its [MCP server](https://www.nl-portal.nl/~gitbook/mcp).

# Catalogi API

De bouwsteen Catalogi API koppelt NL Portal aan een [ZGW Catalogi API](https://vng-realisatie.github.io/gemma-zaken/standaard/catalogi/), bijvoorbeeld Open Zaak. NL Portal haalt hier de typen op die bij zaken en besluiten horen: zaaktypen, statustypen, resultaattypen en besluittypen.

## Werking

De gebruiker ziet de Catalogi API niet direct. Met de typen toont NL Portal onder andere de naam van het zaaktype, de statussen voor track & trace (op volgorde van volgnummer), de uitleg bij een resultaat en het type van een besluit. Zie [Zaken](https://www.nl-portal.nl/next/functionaliteiten/zaken.md).

NL Portal authenticeert zich met een JWT-token (HS256) op basis van `client-id` en `secret`.

## Configuratie

| Property                                            | Env-variabele                                     | Standaard | Beschrijving                                  |
| --------------------------------------------------- | ------------------------------------------------- | --------- | --------------------------------------------- |
| `nl-portal.config.catalogiapi.enabled`              | `NLPORTAL_CONFIG_CATALOGIAPI_ENABLED`             | `false`   | Zet de bouwsteen aan.                         |
| `nl-portal.config.catalogiapi.properties.url`       | `NLPORTAL_CONFIG_CATALOGIAPI_PROPERTIES_URL`      |           | Basis-URL, zonder `/catalogi/api/v1`.         |
| `nl-portal.config.catalogiapi.properties.client-id` | `NLPORTAL_CONFIG_CATALOGIAPI_PROPERTIES_CLIENTID` |           | Client-id van de applicatie.                  |
| `nl-portal.config.catalogiapi.properties.secret`    | `NLPORTAL_CONFIG_CATALOGIAPI_PROPERTIES_SECRET`   |           | Secret van de applicatie, minimaal 32 tekens. |

```shell
NLPORTAL_CONFIG_CATALOGIAPI_ENABLED=true
NLPORTAL_CONFIG_CATALOGIAPI_PROPERTIES_URL=https://openzaak.example.com
NLPORTAL_CONFIG_CATALOGIAPI_PROPERTIES_CLIENTID=nl-portal
NLPORTAL_CONFIG_CATALOGIAPI_PROPERTIES_SECRET=<secret>
```

In te stellen via het [Configuration Panel](https://www.nl-portal.nl/next/configuratie/configuration-panel.md), op de pagina **Catalogi API**.

## Voor broncode-ontwikkelaars en maatwerkimplementaties

**Module:** `zgw:catalogi-api`, afhankelijk van `graphql` en `zgw:idtoken-authentication`. De module heeft geen eigen GraphQL-queries; hij levert de typen (`ZaakType`, `StatusType`, `ResultaatType`, `BesluitType`) die de schema's van zaken en besluiten gebruiken.

**Uitbreidingspunt** (`@ConditionalOnMissingBean`): `CatalogiApiService`.
