> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/de/personal-account/developer/api-connection-sample.md).

# 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
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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
