> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/nl/features/settings/gestion-des-cles-dapi.md).

# API-sleutelbeheer

Deze pagina legt uit hoe je API-sleutels aanmaakt in Dastr

### Waar worden API-sleutels voor gebruikt?

* Maak een Dastra API\*\* client om data op te halen of te wijzigen buiten de applicatie. Deze client kan server-to-server (Client credential) of javascript (Autorisatie code) zijn. Voor meer informatie kunt u [de Dastra API authenticatie documentatie lezen](/nl/api-references/authentification.md).
* Een widget voor het uitoefenen van rechten\*\* configureren (alleen openbare sleutel). [Lees de documentatie over het instellen van de widget voor het uitoefenen van rechten](https://github.com/Dastrateam/dastra-doc/tree/main/nl/features/settings/broken-reference/README.md).
* Een cookie toestemmingswidget\*\* configureren (alleen openbare sleutel). [Lees de documentatie over het instellen van de cookie toestemmingswidget](/nl/features/gerer-le-consentement-aux-cookies.md)

### Hoe maak ik een API-sleutel aan?

1. [Krijg toegang tot de Dastra sleutelbeheerder](https://app.dastra.eu/general-settings/api) (Alleen accounteigenaren hebben toegang tot dit gedeelte)
2. Klik op "**maak een API-sleutel**".
3. Voer de naam van de sleutel en de redirection en cors urls in (als u de API in javascript wilt gebruiken in OAuth2)
4. Klik op "**registreer**".
5. Zodra uw API-sleutel is aangemaakt, kunt u deze rechtstreeks uit de manager kopiëren en plakken (private of public key)

{% hint style="warning" %}
\*\*Veilig uw API-sleutels! Onder geen enkele omstandigheid mag de privésleutel openbaar worden gemaakt!

**Als de veiligheid van je API sleutel in gevaar komt**, kun je deze verwijderen uit de manager en een nieuwe genereren.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/nl/features/settings/gestion-des-cles-dapi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
