---
title: KeyProtectionMode enum | Wartiva GraphQL API
description: Controls when user input is required to access stored private keys. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/key-protection-mode.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `KeyProtectionMode` enum

Controls when user input is required to access stored private keys.

## Values

| Enum Value | Description |
|---|---|
| `USER_INPUT_NOT_REQUIRED_WHEN_KEYS_ARE_STORED_AND_USED` | User input is not required when keys are stored and used. |
| `USER_IS_PROMPTED_WHEN_KEY_FIRST_USED` | User is prompted when the key is first used. |
| `USER_MUST_ENTER_PASSWORD_EACH_TIME_KEY_IS_USED` | User must enter a password each time the key is used. |

## Used by

- [`LocalSystemPolicy`](https://wartiva.com/api-docs/types/local-system-policy.html) type: Local System Policy type definition

## Example

### Example

```json
"USER_INPUT_NOT_REQUIRED_WHEN_KEYS_ARE_STORED_AND_USED"

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
