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

# 选择正确的 API

> 为每种集成选择公开 API 和鉴权方式。

Anyway 为商户服务端、Webhook 接收端、智能体运行环境和已埋点应用提供彼此独立的受支持集成接口。

| 接口           | 使用方         | 鉴权               | 主要能力                |
| ------------ | ----------- | ---------------- | ------------------- |
| Merchant API | 商户服务端       | `X-API-Key`      | 交易记录                |
| Webhook 投递   | 商户 HTTPS 端点 | Ed25519 签名       | 接收订单生命周期事件          |
| 智能体钱包 API    | 智能体运行时      | P-256 请求签名       | 读取策略/历史并授权钱包操作      |
| 超级 API 目录    | 智能体和开发者     | 公开发现；付费调用使用智能体钱包 | 发现并调用 x402 服务       |
| 遥测收集器        | 已埋点应用       | 智能体追踪 API 密钥     | 导出 OpenTelemetry 追踪 |

## 公开集成规则

**Merchant API** 是受支持的服务端到服务端交易 API。智能体钱包、Webhook、超级 API 和遥测契约也记录在文档中，因为客户代码会直接调用或接收它们。

<Warning>
  不要把 Merchant API 密钥当作 Bearer 令牌发送，也不要把智能体钱包密钥当成商户凭据。
</Warning>

## 基础 URL

```text theme={null}
Merchant API:       https://merchant-api-prod.anyway.sh
Agent Wallet API:   https://api.anyway.sh
SuperAPI directory: https://marketplace-prod.anyway.sh
Telemetry:          https://collector.anyway.sh
```

请使用 Anyway 返回的 URL，包括 `paymentLinkUrl` 和超级 API 可调用 URL。不要自行推导其他链接，也不要假设所有接口共用一个主机名。
