SDK reference

Authenticator backup

Each route's function in the SDK, its call beside the same request in cURL.
meAuthenticatorVault

GET/v1/me/authenticator/vault

Your Authenticator backup: version (the format), salt and ciphertext (base64, encrypted on the phone with a key from your passphrase), revision and times; null when there's none. From the Authenticator app's sign-in only.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/authenticator/vault' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeAuthenticatorVault

PUT/v1/me/authenticator/vault

Saves the backup (version 1, salt, ciphertext) if revision is still the current one (0 when there's none) and returns it at the next revision. Otherwise 409 with the backup there now (vault, or null): nothing is overwritten unseen. From the Authenticator app's sign-in only.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/authenticator/vault' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "version": 1,
    "salt": "example",
    "ciphertext": "example",
    "revision": 1
  }'
deleteMeAuthenticatorVault

DELETE/v1/me/authenticator/vault

Deletes the backup from your account; deleted: false when there wasn't one. The accounts on the phone stay.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/authenticator/vault' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"