Vault Employee Key Schema
Fields
Vault Employee Key Schema
Multi-recipient wrap of an employee data-encryption key (DEK)
employeeProfileId
UUID of the employee_profile this key belongs to
keyVersion
Increments on rotation. Encrypted documents/contracts reference the version that produced their ciphertext.
memberKeys
Per-recipient wraps of the DEK. Recipients are users, teams (e.g. HR group), or roles (e.g. payroll_manage).
type
userteamroleid
For type=user: user UUID; type=team: team UUID; type=role: permission string (e.g. "payroll_manage")
wrappedKey
Base64-encoded ECDH-wrapped DEK
ephemeralPublicKey
Base64-encoded ephemeral public key used during wrap
relationship
Why this recipient was added — drives auto-revoke when the relationship ends.
selfmanagerhrpayrollrecoverymanualaddedAt
addedBy
groupKeyVersion
Version of the team/role group key used for the wrap, if applicable
needsRewrap
Lazy-rewrap flag — set when manager/HR membership changes; client refreshes wraps on next access.
lastRotatedAt
lastRotatedBy
No fields match the filter.
Standard endpoints
This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:
GET /api/v1/vault_employee_keys— List, paginated + filterableGET /api/v1/vault_employee_keys/<id>— Single entityPOST /api/v1/vault_employee_keys— CreatePATCH /api/v1/vault_employee_keys/<id>— Partial updateDELETE /api/v1/vault_employee_keys/<id>— Soft deleteGET /api/v1/vault_employee_keys/<id>/timeline— Audit + activities