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

# POST 请求

> 使用 `post` 命令对 WaaS 2.0 服务执行 POST HTTP 请求。

<Tip>
  即刻安装 [Cobo WaaS Skill](/developers/v2_cn/guides/overview/cobo-waas-skill)，在 Claude Code、Cursor 等 AI 开发环境中使用自然语言集成 WaaS API，显著提升开发效率 🚀
</Tip>

使用 `post` 命令对 WaaS 2.0 服务的指定端点执行 POST HTTP 请求。

如果提供了 `path` 参数，命令将向该端点发起 POST 请求。否则，它将检索所有可用 POST 操作的列表或显示 WaaS 2.0 API 中指定操作的描述。

<Note>要通过 Cobo CLI 发起 API 请求，您需要登录并使用 Org Access Tokens 或 API Key对请求进行身份验证。有关更多信息，请参阅 [使用 Org Access Tokens 进行身份验证](/developers/v2_cn/developer-tools/cobo-cli/login-and-authentication#authenticate-with-org-access-tokens) 和 [使用 API Key进行身份验证](/developers/v2_cn/developer-tools/cobo-cli/login-and-authentication#authenticate-with-api-keys)。</Note>

## 用法

```shell theme={null}
cobo post <path> [options]
```

## 参数

`<path>`：POST 请求将被发送到的端点 URL。

## 选项

* `-d, --describe`：显示指定 POST 操作的描述，包括其预期响应和错误信息（如果有）。您可以使用此选项与参数名称一起检索特定描述，例如：

  ```shell theme={null}
  cobo post -d /wallets/mpc/vaults --name --vault_type
  ```

  此命令显示有关创建 Vault 的 API 操作的 `name` 和 `vault_type` 参数的信息。
* `-l, --list`：列出 WaaS 2.0 服务的所有可用 POST 操作。

## 示例

### 创建新钱包

```shell theme={null}
cobo post /wallets --name "我的新钱包" --wallet_type Custodial --wallet_subtype Asset
```

此命令创建一个名为 `我的新钱包` 的全托管钱包（资产钱包）。

### POST 操作描述

```shell theme={null}
cobo post /wallets -d
```

此命令检索 [创建钱包](/developers/v2/api-references/wallets/create-wallet) 操作的描述。

### 列出所有 POST 操作

```shell theme={null}
cobo post -l
```

此命令列出 WaaS 2.0 服务的所有可用 POST 操作。

## API 参考

有关可用 POST 端点及其参数的完整列表，请参阅 [API 参考](/developers/v2/api-references)。
