文档

支持

Vivox Core SDK

Vivox Core SDK

Revoke an application API key

How to revoke an applicationAPI key.
阅读时间1 分钟最后更新于 12 天前

When you have enabled the Enable Remote API checkbox on the Organization Settings page in the Developer Portal, you can automate the process for revoking an application API key by calling the REST endpoint located at
developer-api.vivox.com/api/v1/applications/remote-api/key/revoke
with a tool such as cURL, Advanced REST Client (ARC), or Postman.
The following code displays an example of how to revoke the “key-to-revoke” application API key by using cURL:
curl "https://developer-api.vivox.com/api/v1/applications/remote-api/key/revoke" -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\"}"
A response in the following format indicates that you successfully revoked the key:
{"statusCode":200,"data":"some-new-key"}

Revoke an application API key • Vivox Core SDK • Unity Docs