> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aibase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 身份认证

> 通过 AIBase-API-Key Header 认证开放平台请求。

AIBase 使用 API Key 认证每次开发者 API 请求。还没有凭证时，请先完成[创建 API Key](/quickstart/get-api-key)。

<ParamField header="AIBase-API-Key" type="string" required>
  开发者 API Key，例如 `AIBase_xxxxxxxxxxxxxxxx`。
</ParamField>

<ParamField header="AIBase-Request-Id" type="string">
  调用方自定义的请求 ID；不传时平台自动生成。生产环境建议传入唯一值。
</ParamField>

<ParamField header="Content-Type" type="string" required>
  固定为 `application/json`。
</ParamField>

## Header 示例

```http theme={null}
AIBase-API-Key: AIBase_xxxxxxxxxxxxxxxx
AIBase-Request-Id: req-20260908-000001
Content-Type: application/json
```

<Warning>
  API Key 仅可在服务端或密钥管理系统中保存和调用。不要将其暴露在浏览器前端、移动端 App、公开代码仓库或完整请求日志中。
</Warning>

## 请求追踪

`AIBase-Request-Id` 可用于关联一次业务操作与接口请求。无论是否由调用方传入，平台都会在成功响应的 `data.requestId` 中返回本次请求的追踪标识。

<Card title="继续：发送第一次请求" icon="arrow-right" href="/quickstart/request" horizontal>
  使用当前已上线的 AI 对话问题挖掘服务完成调用。
</Card>
