> For the complete documentation index, see [llms.txt](https://support.iafcertsearch.org/api-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.iafcertsearch.org/api-developer-guide/api-zh/api-integration/authentication.md).

# 身份验证

### 授权头

要进行身份验证，请将x-http-authorization头添加到您的API请求中，其中包含API密钥。

### API密钥

IAF CertSearch的Web API v1支持使用API密钥。API密钥允许您使用与帐户用户名和密码分离的另一种身份验证方法。API密钥为您的帐户增加了额外的安全层，并且可以分配给限制可以访问您的帐户的区域。API密钥可以在您的帐户中生成。要使用密钥，您必须设置一个名为“x-http-authorization”的明文头，其内容为“(API Key)”其中(API Key)是您的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
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://support.iafcertsearch.org/api-developer-guide/api-zh/api-integration/authentication.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.
