> 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/ar/personal-account/developer/api-connection-sample.md).

# نموذج اتصال API

للاتصال بـ API عبر واجهة توثيق API. قد تنسخ في البداية رمز مفتاح REST API من  [Developer](/ar/personal-account/developer.md) .

![](/files/fa8e4494d0d69a021b29df2d8b56c9c4138695b4)

بمجرد الانتهاء من ذلك يمكنك فتح نقطة نهاية REST API في متصفحك وتفويض API باستخدام مفتاح API.

![](/files/ecc3c4dff85e3f0f1eab789071332dadfba1f073)

{% hint style="warning" %}
تأكد من تعيين **Bearer** الكلمة المفتاحية قبل مفتاح API الخاص بك.
{% endhint %}

الآن بعد أن قمت بتفويض API يمكنك تجربته باستخدام الواجهة المستندة إلى الويب، يمكنك على سبيل المثال البدء بجلب جميع الاستبيانات الخاصة بك باستخدام نقطة النهاية التالية.

![](/files/367ef70849b0f4696db20d3d59c38812a6126568)


---

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