API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · vault_employee_keys

Vault Employee Key Schema

Schema-ID
vault_employee_key
Collection
vault_employee_keys
Permissions
  • Lezenemployee_profile_view
  • Aanmakenemployee_profile_create
  • Wijzigenemployee_profile_edit
  • Verwijderenemployee_profile_delete

Velden

Vault Employee Key Schema

vault_employee_keys4 permissions

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

employeeProfileIduuidvereist

UUID of the employee_profile this key belongs to

keyVersionintegervereist

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

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

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

Default: []read-only
typestringvereist
userteamrole
idstringvereist

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

max. 200 tekens
wrappedKeystringvereist

Base64-encoded ECDH-wrapped DEK

max. 1024 tekens
ephemeralPublicKeystringoptioneel

Base64-encoded ephemeral public key used during wrap

max. 1024 tekensnullable
relationshipstringoptioneel

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

selfmanagerhrpayrollrecoverymanual
nullable
addedAtdatetimeoptioneel
nullable
addedByuuidoptioneel
nullable
groupKeyVersionintegeroptioneel

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

nullable
needsRewrapbooleanoptioneel

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

Default: false
lastRotatedAtdatetimeoptioneel
read-onlynullable
lastRotatedByuuidoptioneel
read-onlynullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/vault_employee_keys — Lijst, gepagineerd + filterbaar
  • GET /api/v1/vault_employee_keys/<id> — Enkele entity
  • POST /api/v1/vault_employee_keys — Aanmaken
  • PATCH /api/v1/vault_employee_keys/<id> — Gedeeltelijke update
  • DELETE /api/v1/vault_employee_keys/<id> — Soft-delete
  • GET /api/v1/vault_employee_keys/<id>/timeline — Audit + activiteiten

Zoeken