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

# API

> 通过 API 将外部系统连接到 Agent。

<img src="https://mintcdn.com/ascn-b377dab5/gJOzWPSTEzSbhz3B/images/en/14-api.png?fit=max&auto=format&n=gJOzWPSTEzSbhz3B&q=85&s=77916351b2a26abc7fd34bec31e89297" alt="API" width="2747" height="1654" data-path="images/en/14-api.png" />

1. **设置 → API**
2. 复制 **Base URL**
3. 复制 **授权密钥**
4. Header `Authorization: Bearer ...`

```bash theme={null}
curl -X POST "https://api.clawman.ascn.ai/api/v1/workspaces/{workspace_id}/session/{session_id}/messages" \
  -H "Authorization: Bearer {API_KEY}" \
  -d '{"content": "检查邮件"}'
```
