# API-Verbindungsbeispiel

Um eine Verbindung zur API über die API-Dokumentationsoberfläche herzustellen. Sie können zunächst den REST-API-Key-Token kopieren von der  [Developer](/de/personal-account/developer.md) Registerkarte.

![](/files/0229966c9e041bc275dc6e3729cc520c70d5c915)

Sobald dies erledigt ist, können Sie Ihren REST-API-Endpunkt im Browser öffnen und Ihre API mit dem API-Key autorisieren.

![](/files/b79ff206fc3573374f42b324b6d00c57c854c26d)

{% hint style="warning" %}
Stellen Sie sicher, dass Sie das **Bearer** Schlüsselwort vor Ihrem API-Key setzen.
{% endhint %}

Nachdem Sie die API autorisiert haben, können Sie sie über die webbasierte Oberfläche testen. Sie können beispielsweise damit beginnen, alle Ihre Surveys über den folgenden Endpoint abzurufen.

![](/files/1841352fdc3e6f3701ade8c96a882d35d9351f4a)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/de/personal-account/developer/api-connection-sample.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
