2. Connect to revault-api
This part will cover how to setup API HTTP client and authenticate as API user.
Setup environment variables
Create a .env
file with this content, replacing <your-api-key>
and <your-api-secret>
with your user's credentials and <your-workspace>
by your target workspace:
Login to API
Edit the script file
Update the main.ts
file content:
Test the script
Run the command again:
It should output:
If you don't see the successful message, please verify that you followed all the steps precisely and that your credentials are valid.
If the problem persists, please contact support.
Last updated