# 添加应用程序 API 密钥

> How to automate the process of adding an application API key.

启用了 **Enable Remote API** 复选框时，可以通过使用 cURL、高级 REST 客户端 (ARC) 或 Postman 等工具调用位于 `developer-api.vivox.com/api/v1/applications/remote-api/key/add` 的 REST 终端，来自动执行添加应用程序 API 密钥的过程。

> **Note:**
>
> 最多可以同时有两个 API 密钥。

以下代码演示有关如何使用 cURL 添加“somenewkey”应用程序 API 密钥的示例：

```plaintext
curl "https://developer-api.vivox.com/api/v1/applications/remote-api/key/add" -X POST -d
"{\"remoteApiUsername\":\"remote-api-username-from-org-settings-page\",\"remoteApiPassword\":\"remote-api-password-from-org-settings-page\",\"issuer\":\"issuer-from-app-details-page\",\"key\":\"somenewkey\"}"
```

以下格式的响应指示已成功添加了密钥：

`{"statusCode":200,"data":"some-new-key"}`
