# مثال على اتصال 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: 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/ar/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.
