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

# 身份验证

`https://li.quest` 的公开路由端点允许不带密钥访问，但受速率限制约束。这不代表所有 LI.FI 产品都无需认证：`https://earn.li.fi` 上的 Earn 要求 `x-lifi-api-key`，`/v1/keys/test` 等受保护端点也要求有效密钥。需要更高的路由限额时，可通过合作伙伴门户申请密钥。

一旦您有了密钥，您可以通过在 x-lifi-api-key 标头中附加它来验证您的所有请求：

```cURL cURL theme={"system"}
curl --location 'https://li.quest/v1/quote?fromChain=100&fromAmount=1000000&fromToken=0x4ecaba5870353805a9f068101a40e0f32ed605c6&fromAddress=0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0&toChain=137&toToken=0x2791bca1f2de4661ed88a30c99a7a9449aa84174&slippage=0.03' \
--header 'x-lifi-api-key: YOUR_CUSTOM_KEY'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.