# Protection operations

> Document-level protection state and editing restriction operations.



3 operations. Names, descriptions, and behavior flags come from the canonical contract.

## Operations

- [`protection.get`](/document-api/reference/protection/get) (read): Read the current document protection state including editing restrictions, write protection, and read-only recommendation.
- [`protection.setEditingRestriction`](/document-api/reference/protection/set-editing-restriction) (mutates): Enable Word-style editing restriction on the document. Only readOnly mode is supported in v1.
- [`protection.clearEditingRestriction`](/document-api/reference/protection/clear-editing-restriction) (mutates): Disable document-level editing restriction by setting enforcement to off. Preserves the protection element and its metadata for round-trip fidelity.

