API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · vault_employee_keys

Vault Employee Key Schema

Schema ID
vault_employee_key
Collection
vault_employee_keys
Permissions
  • Reademployee_profile_view
  • Createemployee_profile_create
  • Editemployee_profile_edit
  • Deleteemployee_profile_delete

Fields

Vault Employee Key Schema

vault_employee_keys4 permissions

Multi-recipient wrap of an employee data-encryption key (DEK)

employeeProfileIduuidrequired

UUID of the employee_profile this key belongs to

keyVersionintegerrequired

Increments on rotation. Encrypted documents/contracts reference the version that produced their ciphertext.

≥ 1Default: 1read-only
memberKeysobject[]required

Per-recipient wraps of the DEK. Recipients are users, teams (e.g. HR group), or roles (e.g. payroll_manage).

Default: []read-only
typestringrequired
userteamrole
idstringrequired

For type=user: user UUID; type=team: team UUID; type=role: permission string (e.g. "payroll_manage")

max 200 characters
wrappedKeystringrequired

Base64-encoded ECDH-wrapped DEK

max 1024 characters
ephemeralPublicKeystringoptional

Base64-encoded ephemeral public key used during wrap

max 1024 charactersnullable
relationshipstringoptional

Why this recipient was added — drives auto-revoke when the relationship ends.

selfmanagerhrpayrollrecoverymanual
nullable
addedAtdatetimeoptional
nullable
addedByuuidoptional
nullable
groupKeyVersionintegeroptional

Version of the team/role group key used for the wrap, if applicable

nullable
needsRewrapbooleanoptional

Lazy-rewrap flag — set when manager/HR membership changes; client refreshes wraps on next access.

Default: false
lastRotatedAtdatetimeoptional
read-onlynullable
lastRotatedByuuidoptional
read-onlynullable

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 + filterable
  • GET /api/v1/vault_employee_keys/<id> — Single entity
  • POST /api/v1/vault_employee_keys — Create
  • PATCH /api/v1/vault_employee_keys/<id> — Partial update
  • DELETE /api/v1/vault_employee_keys/<id> — Soft delete
  • GET /api/v1/vault_employee_keys/<id>/timeline — Audit + activities

Search