# Exemple de connexion API

Pour vous connecter à l'API via l'interface de documentation de l'API. Vous pouvez d'abord copier le jeton de clé REST API depuis le  [Developer](/fr/personal-account/developer.md) .

![](/files/9399b75b94e0ded4568c78ee038e678895872de7)

Une fois cela effectué, vous pouvez ouvrir dans votre navigateur votre endpoint REST API et autoriser votre API en utilisant la clé API.

![](/files/5e3cfa56e6120855a6b2f4e60560bbe9015a9500)

{% hint style="warning" %}
Assurez-vous de définir le **Bearer** mot-clé avant votre clé API.
{% endhint %}

Maintenant que vous avez autorisé l'API, vous pouvez l'essayer via l'interface web ; vous pouvez par exemple commencer par récupérer tous vos Sondages en utilisant l'endpoint suivant.

![](/files/1f7e76703d4046b0e1c176b29830be198f0ad8af)


---

# 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/fr/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.
