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

# 导出小组件线索（CSV）

> 以 CSV 格式下载小组件捕获的所有线索。

返回一个 CSV 附件。列为所有已捕获线索字段的并集，另加 `country`、`referrer` 和 `date`。

## 身份验证

需要 Bearer 令牌（API 密钥）或仪表盘会话。

## 路径参数

<ParamField path="id" type="string" required>
  小组件配置的 UUID。
</ParamField>

## 查询参数

<ParamField query="from" type="string">
  ISO 时间戳下限（含）。
</ParamField>

<ParamField query="to" type="string">
  ISO 时间戳上限（含）。
</ParamField>

## 示例

```bash curl theme={null}
curl -L "https://www.hitheo.ai/api/v1/iframes/CONFIG_ID/leads/export" \
  -H "Authorization: Bearer $THEO_API_KEY" \
  -o widget-leads.csv
```


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