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

# API 概览

> 用于程序化访问的 REST API 与 WebSocket 端点。

# API 概览

Myrm 提供 REST API 与 WebSocket 端点供程序化访问。

## 基址

* **SaaS**：`https://app.myrmagent.ai/api`
* **自托管**：`http://localhost:3000/api`

## 认证

所有 API 请求需 Bearer Token：

```bash theme={null}
curl -H "Authorization: Bearer YOUR_TOKEN" \
  https://app.myrmagent.ai/api/agents
```

Token 管理见[认证](/zh/api-reference/authentication)。

## 响应格式

所有响应为 JSON，结构一致：

```json theme={null}
{
  "data": { ... },
  "meta": { "timestamp": "2026-05-30T00:00:00Z" }
}
```

## 速率限制

| 套餐        | 请求/分钟 |
| --------- | ----- |
| Free      | 30    |
| Companion | 120   |
| Pro       | 300   |
| Max       | 600   |
