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

# Authenticatie

> Authenticeer API-requests met X-API-Key vanuit je backend.

Houd elke Swipelux API-key op een beschermde backend. Plaats een key nooit in browsercode, een mobiele applicatiebundle of een clientzichtbaar configuratiebestand.

## Verstuur je API-key

Gebruik de gedeelde base URL `https://platform.swipelux.com` en verstuur je key in de `X-API-Key` header.

```bash theme={null}
export API_BASE='https://platform.swipelux.com'
export SWIPELUX_API_KEY='replace-with-your-api-key'

curl --request GET \
  "${API_BASE}/v3/capabilities" \
  --header "X-API-Key: ${SWIPELUX_API_KEY}"
```

[`GET /v3/capabilities`](/api-reference/capabilities/get-v3-capabilities) bevestigt dat de key geldig is en je backend de API kan bereiken.

## Sandbox en productie

Sandbox en productie gebruiken dezelfde API-host. De API-key bepaalt de omgeving.

Bewaar de omgevingskeuze in de deploymentconfiguratie. Een productie-deployment mag nooit terugvallen op een sandbox-key en een sandbox-deployment mag nooit productie-credentials ontvangen.

## Bewaar credentials veilig

Bewaar sandbox- en productie-keys in aparte secret manager-entries. Geef elke backend-deployment alleen toegang tot de entry die hij nodig heeft.

Houd keys buiten source control, logs, analytics, supportscreenshots en foutresponses. Roteer een key als je vermoedt dat deze is blootgesteld.

Configureer vervolgens [sandbox-testen](/nl/integration/sandbox) of start de [Quickstart](/nl/integration/quickstart).
