Setting up API user for production
1 min
Step-by-Step Instructions
- Generate Public-Private Key Pair:
- You have two secure options:
- Use this guide (Generate Public-Private key pair for API Userguide) to manually generate the key pair.
- Use AWS Key Management Service (KMS) to generate and manage your key pair. Read more here: Creating a KMS key from the UI
- Register Your Public Key:
- Enter your public key in the PrimeVault UI when creating the API user.
- The private key should remain securely stored in your environment and is required to initialize the API client in your code.
- Assign Roles:
- Admin or User
Read more about roles here: Permissions for API User
- Activate and Save API Key:
- Upon creation, approve the API addition on phone app. Then the API user would be active.
- Copy and save the API key as an environment variable. You’ll need it to initialize the SDK/API client.
- Production Security:
- Remove/deactivate any API users used only during testing.