# المصادقة

### رأس التفويض

للمصادقة، أضف رأس x-http-authorization إلى طلب API الخاص بك يحتوي على مفتاح API.

### مفاتيح API

يدعم واجهة برمجة تطبيقات IAF CertSearch Web API v1 استخدام مفاتيح API. تسمح مفاتيح API لك باستخدام طريقة مصادقة مستقلة عن اسم المستخدم وكلمة المرور الخاصة بحسابك. تضيف مفاتيح API طبقة إضافية من الأمان لحسابك ويمكن تعيينها لتحديد المناطق التي يمكن الوصول إليها في حسابك. يمكن إنشاء مفاتيح API في حسابك. لاستخدام المفاتيح ، يجب ضبط رأس نص نصي عادي باسم "x-http-authorization" بمحتويات الرأس هي "(مفتاح API)" حيث (مفتاح API) هو مفتاح سر API الخاص بك.

### رأس مثال

```http
GET https://api.iafcertsearch.com/api/client/v1/resource HTTP/1.1
x-http-authorization: Your.API.Key-HERE
```

```
curl -X "GET" "https://api.iafcertsearch.com/api/client/v1/templates" -H "x-http-authorization: Your.API.Key-HERE" -H "Content-Type: application/json"
```


---

# 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://support.iafcertsearch.org/api-developer-guide/api-ar/api-integration/authentication.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.
