Revoke a secret

To create a new API secret, you must send a DELETE request to the secret management API.

You must have at least one API secret at all times.

KeyDescription
VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

ACCOUNT_ID

The account ID to target

VONAGE_SECRET_ID

The ID of the secret to delete.

Write the code

Add the following to revoke-secret.sh:

View full source

Run your code

Save this file to your machine and run it:

bash revoke-secret.sh