---
title: "BlockReq API"
description: "通过 BlockReq REST API 以编程方式管理端点、计费与用量"
url: "https://blockreq.com/docs/zh-cn/build/api-reference/blockreq-api/"
---

# BlockReq API

BlockReq 在 **Web**（`https://blockreq.com/api/...`）提供 **REST API**，用于管理账户、RPC 端点、Request Count、用量、钱包、API Key、通知与设置。管理请求不要发到 `*-rpc.blockreq.com`。

## 快速开始

1. 前往 **Dashboard → Settings** 创建 API Key
2. 在请求头 `Authorization` 中使用 Bearer Token
3. 在公开 OpenAPI 文档中查看全部可用接口

<p><a href="https://blockreq.com/docs/api"><strong>交互式 API 文档</strong></a> — 查看 BlockReq REST API 的确定性公开 OpenAPI 文档</p>

<p><a href="https://blockreq.com/dashboard/settings"><strong>Dashboard 设置页</strong></a> — 创建并管理 API Key</p>

## 鉴权方式

使用 Dashboard → Settings 的 **Management API Key**（`akv1_...`）。它与已登录 Dashboard 会话是同一所有者。`{chain}-rpc.blockreq.com/v1/rpc/...` 路径里的 RPC Endpoint Key 只用于 JSON-RPC。

```bash
curl -H "Authorization: Bearer akv1_YOUR_MANAGEMENT_API_KEY" \
  https://blockreq.com/api/dashboard/credits
```

## 主要资源

| 资源 | 说明 |
| --- | --- |
| **Endpoints** | [列出](https://blockreq.com/docs/zh-cn/build/api-reference/blockreq/blockreq-listendpoints/index.md)、[创建](https://blockreq.com/docs/zh-cn/build/api-reference/blockreq/blockreq-createendpoint/index.md)、[删除](https://blockreq.com/docs/zh-cn/build/api-reference/blockreq/blockreq-deleteendpoint/index.md) |
| **网络** | [可用链](https://blockreq.com/docs/zh-cn/build/api-reference/blockreq/blockreq-supportednetworks/index.md) |
| **用量** | [Stats / analytics / overview](https://blockreq.com/docs/zh-cn/build/api-reference/blockreq/usage-stats/index.md) |
| **Request Count 与钱包** | [余额与 Request Pack](https://blockreq.com/docs/zh-cn/build/api-reference/blockreq/blockreq-walletbalance/index.md) |
| **Billing** | 查看付款历史与支付方式 |
| **Teams** | 管理团队成员与邀请 |
| **API Keys** | 创建与吊销 API Key |
| **Plans** | 查看 effective plan 并切换自助计费模式 |

> [!NOTE]
> 完整公开接口列表和请求/响应结构见 [交互式 API 文档](https://blockreq.com/docs/api)。创建或轮换 API Key 请前往 [Dashboard Settings](https://blockreq.com/dashboard/settings)。
