Fetch a secret

This will return the details of a single secret. The value of the secret will never be shown.

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 retrieve.

Write the code

Add the following to get-secret.sh:

View full source

Run your code

Save this file to your machine and run it:

bash get-secret.sh