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

# 快速入門

> 建立 Burokku API 金鑰，並第一次呼叫 REST API：只要一個請求，就能以 JSON 取得你的資產組合摘要。

Burokku 的 REST API 讀取的資產組合和你在應用程式中看到的相同：淨資產、持倉、倉位、風險、損益、活動紀錄和提醒。建立一個金鑰，然後呼叫它。

## 建立 API 金鑰

**1. 開啟設定 → 應用程式與 API**

在網頁版的 [Burokku](https://app.burokku.app) 中開啟**設定 → 應用程式與 API**，建立一個金鑰。除非你允許它也能觀察地址和設定提醒，否則它是唯讀的。如果你的帳戶有第二道登入步驟，請確認是本人。

**2. 複製一次**

金鑰以 `bk_live_` 開頭，而且只會顯示一次。請把它存放在安全的地方，例如密鑰管理工具。絕對不要把它放進 URL，或提交到 git。

**3. 呼叫 API**

```bash theme={null}
curl https://api.burokku.app/v1/portfolio \
  -H "Authorization: Bearer $BUROKKU_API_KEY"
```

回應是 JSON 格式的資產組合摘要，其中 `read_at` 表示這些數字的讀取時間。接下來，試試 `GET /v1/holdings`，或瀏覽 [API 參考](https://docs.burokku.app/zh-Hant/api-reference/introduction.md)。

> [!TIP]
>
> 每個方案都包含 API 金鑰。呼叫次數會計入與連接器共用的同一個每日限制。請參閱[限制與錯誤](https://docs.burokku.app/zh-Hant/developers/limits-and-errors.md)。


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