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

# 认证

> 使用 `pubrio-api-key` 请求头对 Pubrio API 请求进行身份验证 — 设置、密钥管理与安全最佳实践。

## API 密钥

进行认证时，需要在请求头中包含 `pubrio-api-key`。该请求头应填写您的 API 密钥，例如 `a1b2c3d4e5f6g7h8`，这代表您的 API 密钥。

```
pubrio-api-key: a1b2c3d4e5f6g7h8
```

您需要创建 API 密钥以访问 Pubrio API。要创建 API 密钥，请前往 [设置](https://dashboard.pubrio.com/#/settings/) 页面进行操作。

<Note>
  API 密钥已包含您的工作区（Profile）信息，因此您无需在请求体中传递 `profile_id`。`profile_id` 参数仍然可用以保持向后兼容性，但不再是必填项。
</Note>
