Create a secret

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

New API secrets must meet the following rules:

  • Minimum 8 characters
  • Maximum 25 characters
  • Minimum 1 lower case character
  • Minimum 1 upper case character
  • Minimum 1 digit
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).

NEW_SECRET

The new API secret for the API key.

Write the code

Add the following to create-secret.sh:

View full source

Run your code

Save this file to your machine and run it:

bash create-secret.sh