Examples of using the PIIVault APIs with cURL (see script files piivault-curl.sh
and passthrough-curl.sh
for details)
An account id
and api key
for an active PII Vault subscription is required to run the examples.
You can create a Trial subscription at our online demo instance or contact Anonomatic Inc for an on-premise install.
PII Vault Admin Manage subscriptions in given vault instance; create subscription with accounts and apikey
PII Vault Passthrough A reference implementation of using the Passthrough APIs
The bash scripts require cURL and jq. On debian based systems you can install these with
sudo apt update
sudo apt upgrade
sudo apt install curl
sudo apt install jq
Example of loading profile data into the vault
export PIIVAULT_HOSTNAME="localhost:9443"
export PIIVAULT_ACCOUNTID=<subscription-account-id>
export PIIVAULT_APIKEY=<subscription-account-apikey>
rm getpolyidbulk-reponse.json
./piivault-commands.sh --VERB login
time ./piivault-curl.sh --VERB GetPolyIdBulk --REQUEST ./test-profiles-100.1.json
less getpolyidbulk-reponse.json
grep -Ei "^\w+\)" piivault-curl.sh
grep -Ei "^\w+\)" passthrough-curl.sh