Add getSecrets support in API