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

Employee Profile Schema

Schema ID
employee_profile
Collection
employee_profiles
Permissions
  • Reademployee_profile_view
  • Createemployee_profile_create
  • Editemployee_profile_edit
  • Deleteemployee_profile_delete

Fields

Employee Profile Schema

employee_profiles4 permissions

Schema for validating employee profile entities (Personalstammdaten)

userIduuidoptional

User UUID (optional link to users collection)

nullable
firstNamestringoptional

First name (Vorname) — used when no user is linked

max 200 charactersnullable
lastNamestringoptional

Last name (Nachname) — used when no user is linked

max 200 charactersnullable
aliasesstring[]optional

Nicknames / aliases colleagues know the person by (searchable, visible to all staff)

max 10 itemsunique items
employeeNumberstringoptional

Auto-generated employee number (e.g. MA-2026-00001)

max 50 charactersread-onlynullable
emailstringoptional

Work email address. Used as the matching key for telephony integrations (Starface userlist → starfaceAccountId) so employees WITHOUT a linked user account can still be attributed in call analytics. Plain string (no strict format validation) to keep imports forgiving.

max 320 charactersnullable
orgUnitIduuidoptional

Primary org unit UUID (legacy — use primaryOrgUnitId going forward, ADR 0036b). Write-side it is a mirror of primaryOrgUnitId; changes to either sync the org_units member arrays server-side (ADR 0368).

nullable
primaryOrgUnitIduuidoptional

Arbeitsrechtlich maßgebliche Org-Unit (ADR 0036b). Wird vom Working-Time-Resolver für die Hierarchie-Auflösung benutzt. Bei Matrix-Orgs: eindeutig die primäre. Falls nicht gesetzt, fällt der Resolver auf orgUnitId zurück.

nullable
managerIduuidoptional

Direct manager user UUID

nullable
absenceApprovalConfigobjectoptional

ADR 0682 — Ob und durch wen Abwesenheitsanträge genehmigt werden. Jedes Feld ist optional; null/fehlend bedeutet „von der übergeordneten Ebene erben" (Mitarbeiter → Team → Abteilung → Bereich → Mandant → Standard).

nullable
modestringoptional

REQUIRED = Antrag muss genehmigt werden (Standard). NONE = Antrag wird beim Anlegen sofort genehmigt, es entsteht keine Genehmigungsanfrage.

REQUIREDNONEnull
nullable
approverModestringoptional

ORG_UNIT_LEAD = Leitung der Organisationseinheit (Standard, mit Kette über die übergeordnete Einheit). SPECIFIC_USERS = feste Personen. ROLE = alle Inhaber einer Rolle.

ORG_UNIT_LEADSPECIFIC_USERSROLEnull
nullable
approverUserIdsuuid[]optional

Nur bei approverMode=SPECIFIC_USERS: die genehmigenden Personen.

nullable
approverRoleSlugstringoptional

Nur bei approverMode=ROLE: Slug der Rolle aus role_definitions (z. B. "hr").

max 100 charactersnullable
allowSelfApprovalAsLeadbooleanoptional

Standard true. Darf eine Person ihren eigenen Antrag genehmigen, wenn sie selbst Leitung ihrer Einheit ist und weder Doppelspitze noch übergeordnete Leitung gepflegt sind? Gilt NUR für Leitungen — ein Mitarbeitender ohne gepflegte Teamleitung genehmigt sich dadurch nicht selbst.

nullable
fallbackApproverUserIdsuuid[]optional

Auffanglinie: greift, wenn die reguläre Kette keine erreichbaren Genehmiger liefert.

nullable
overtimeApprovalConfigobjectoptional

ADR 0709 — Ob eine Leitung die eigene Überstundenbuchung freigeben darf. Jedes Feld ist optional; null/fehlend bedeutet „von der übergeordneten Ebene erben" (Mitarbeiter → Team → Abteilung → Bereich → Mandant → Standard).

nullable
allowSelfApprovalAsLeadbooleanoptional

Standard FALSE (anders als bei der Urlaubsgenehmigung — ohne ausdrückliche Einstellung bleibt es beim 4-Augen-Prinzip). Darf eine Person ihre eigene Überstundenbuchung freigeben, wenn sie Leitung einer ihrer Einheiten ist? Gilt NUR für Leitungen; wer die Berechtigung overtime_approve ohne Leitungsfunktion hat, kann sich dadurch nicht selbst freigeben. Anders als beim Urlaub greift die Regel auch dann, wenn eine zweite oder übergeordnete Leitung verfügbar wäre.

nullable
employmentTypestringrequired

Type of employment (Beschäftigungsart)

FULL_TIMEPART_TIMEMINI_JOBWORKING_STUDENTINTERNFREELANCER
employmentStatusstringrequired

Current employment status

ACTIVEONBOARDINGON_LEAVEOFFBOARDINGTERMINATED
Default: "ONBOARDING"
hireDatedateoptional

First day of employment (ISO 8601 date: YYYY-MM-DD). Optional.

probationEndDatedateoptional

End of probation period (Probezeit)

nullable
terminationDatedateoptional

Last day of employment

nullable
terminationReasonstringoptional

Reason for termination

max 1000 charactersnullable
vacationDaysPerYearnumberoptional

Annual vacation entitlement in days

0 – 365nullable
vacationDaysRemainingnumberoptional

Remaining vacation days for current year

≥ 0nullable
vacationDaysCarryOvernumberoptional

Carried over vacation days from previous year (Resturlaub)

≥ 0nullable
weeklyScheduleobject[]optional

Per-weekday work schedule (Arbeitszeitplanung)

nullable
daynumberrequired

ISO weekday (1=Mon, 7=Sun)

1 – 7
startTimestringrequired

Work start time (e.g. "08:00")

Pattern
endTimestringrequired

Work end time (e.g. "17:00")

Pattern
breakMinutesnumberoptional

Break duration in minutes

0 – 480Default: 0
workingTimeModelIduuidoptional

Reference to working_time_model entity

nullable
skillProfileIdsuuid[]optional

Tätigkeitsprofile this employee works in (FK skill_profile, ADR 0639) — the ROW side of the skill matrix, mirroring skill_definition.profileIds on the column side. EMPTY = shown in every profile filter (backfill-free: nothing changes for existing tenants). 🔴 Deliberately NOT derived from the org unit: Team 2 and Team 3 are different departments but need the same skills, and a dispatcher who also works technically fits no single department. Multi-valued for exactly that case.

Default: []
skillsobject[]optional

Structured skill entries with levels

Default: []
skillIduuidrequired

UUID of the skill definition

levelstringrequired

Proficiency level. INTERESTED is a legacy level-0 interest marker (no proficiency, no XP, never satisfies a scheduling minimum) — deprecated as a level value in favour of the orthogonal `interested` flag below; still read as a fallback. BEGINNER..EXPERT is the legacy 4-tier enum kept in sync with currentLevel. Prefer currentXp/currentLevel for new proficiency logic.

INTERESTEDBEGINNERINTERMEDIATEADVANCEDEXPERT
interestedbooleanoptional

Orthogonal interest flag (ADR 0223): the employee wants to develop / is interested in this skill, INDEPENDENT of proficiency. Can be true alongside any real level (e.g. EXPERT + interested). Set self-service by the employee on their own profile. Legacy entries with level==="INTERESTED" are treated as interested at read time even when this flag is absent.

nullable
interestedAtdatetimeoptional

When the interest flag was last set to true.

nullable
currentXpintegeroptional

Accumulated XP for this skill. Awarded on ticket/task completion or via manual grant. Drives currentLevel.

≥ 0Default: 0nullable
currentLevelintegeroptional

Numeric level (1–400) across 4 tiers of 100 levels each. Derived from currentXp on XP award, but stored for efficient queries.

0 – 400Default: 0nullable
verifiedAtdatetimeoptional

When the skill was last verified

nullable
verifiedByuuidoptional

User UUID of the person who verified the skill

nullable
sourcestringoptional

How the skill was assigned. PERFORMANCE_REVIEW marks interests carried over from a completed Mitarbeitergespräch.

SELF_ASSESSEDMANAGER_ASSIGNEDCERTIFICATIONAUTO_DETECTEDPERFORMANCE_REVIEW
Default: "SELF_ASSESSED"
addedAtdatetimeoptional

When the skill entry was first added

nullable
updatedAtdatetimeoptional

When the skill entry was last updated (level change, re-verification)

read-onlynullable
languageSkillsobject[]optional

Spoken/written languages with CEFR proficiency level, used for language-aware ticket dispatch

Default: []
codestringrequired

ISO 639-1 language code

aaabaeafakamanarasavayazbabebgbhbibmbnbo
levelstringrequired

CEFR proficiency level (A1–C2) or NATIVE

A1A2B1B2C1C2NATIVE
addedAtdatetimeoptional
nullable
updatedAtdatetimeoptional
read-onlynullable
karmaintegeroptional

ADR 0224: running karma total (engagement/fairness score). Server-managed: awarded on verified task completion when tenant.features.karmaEnabled. Audit trail in karma_ledger.

≥ 0Default: 0read-only
skillUpdateLogobject[]optional

Audit trail of automatic skill-level changes triggered by survey responses or other sources

max 100 itemsDefault: []nullable
responseIduuidoptional

survey_response UUID that triggered this update (idempotency key)

nullable
appliedAtdatetimerequired
sourcestringoptional
satisfaction-surveymanualcertificationticket-closetask-donemanual-grantsurveytraining-completednull
nullable
changesobject[]required
skillIduuidrequired
previousLevelstringoptional
BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
newLevelstringrequired
BEGINNERINTERMEDIATEADVANCEDEXPERT
xpDeltaintegeroptional

XP amount awarded in this change (new XP system)

nullable
reasonstringoptional

Optional human-readable reason for the change

max 500 charactersnullable
phonestringoptional

Personal phone number

max 50 charactersnullable
dateOfBirthdateoptional

Date of birth

nullable
emergencyContactNamestringoptional

Emergency contact name

max 200 charactersnullable
emergencyContactPhonestringoptional

Emergency contact phone number

max 50 charactersnullable
timeZonestringoptional

IANA-Zeitzone (z.B. "Europe/Berlin"). Override gegenüber org_unit.timeZone / tenant default. Wird u.a. für Zuschlag-Zeitfenster und DST-Handling genutzt.

max 64 charactersnullable
holidayRegionstringoptional

ISO 3166-2 Feiertagsregion (z.B. "DE-NW"). Override gegenüber org_unit.holidayRegion / tenant.settings.defaultHolidayRegion. Relevant für MA im Homeoffice in anderem Bundesland.

Patternnullable
mentorUserIduuidoptional

Assigned mentor for trainees / juniors

nullable
isMentorbooleanoptional

Marked as available mentor in the picker

Default: false
isSuitableForInternsbooleanoptional

Marked as senior who can supervise intern-grade work

Default: false
defaultSubstituteUserIduuidoptional

Fallback user for sick-leave auto-reassign

nullable
isApprenticebooleanoptional

Auszubildender: befindet sich in der Ausbildung und hat noch keinen Abschluss. Dient als Gate für den (separat gebauten) Berichtsheft-/Ausbildungsnachweis-Bereich, der nur für Auszubildende sichtbar ist.

Default: false
isAusbilderbooleanoptional

Markiert den Mitarbeiter als Ausbilder (kann Auszubildende ausbilden / ist im Ausbilder-Picker eines Auszubildenden wählbar).

Default: false
ausbilderEmployeeIduuidoptional

employee_profiles-UUID des diesem Auszubildenden zugewiesenen Ausbilders. Referenziert einen Mitarbeiter (nicht user), damit auch Ausbilder ohne Login zuordenbar sind.

nullable
legalEntityIduuidoptional

Rechtliche Einheit (party UUID — typically the operating company, e.g. ITF or Codemeta).

nullable
workLocationIduuidoptional

Primary work location (asset/site UUID; references the company address/site).

nullable
qualificationobjectoptional

Berufs- oder Studienabschluss. `kind: "ausbildung"` referenziert einen Eintrag aus dem BIBB-Verzeichnis (apps/api/src/data/ausbildungsberufe-2026.jsonl); `kind: "hochschule"` erfasst Abschlussgrad + freies Studienfach.

nullable
kindstringrequired
ausbildunghochschule
ausbildungNamestringoptional

Berufsbezeichnung aus dem BIBB-Verzeichnis (z. B. "Tierwirt/Tierwirtin")

max 250 charactersnullable
fachrichtungstringoptional

Fachrichtung der Ausbildung, falls anwendbar (z. B. "Imkerei")

max 200 charactersnullable
berufsgattungCodestringoptional

BIBB-Berufsgattung (5-stellige Nummer)

Patternnullable
kategoriestringoptional

Kategorie aus dem BIBB-Verzeichnis (s. Reference-Data-Endpoint)

ausbildung-bbigausbildung-ausserhalb-bbigausbildung-gesundheit-bundesrechtausbildung-gesundheit-landesrechtausbildung-zustaendige-stelleumschulung-zustaendige-stelle
nullable
hochschulabschlussstringoptional

Akademischer Abschlussgrad

BACHELORMASTERDIPLOMMAGISTERSTAATSEXAMENPROMOTIONHABILITATIONBERUFSAKADEMIEOTHER
nullable
fachstringoptional

Studienfach (Freitext, z. B. "Wirtschaftsinformatik")

max 200 charactersnullable
safetyRolesobject[]optional

Arbeitsrechtliche Sicherheitsrollen (Ersthelfer, Brandschutzhelfer, Sicherheitsbeauftragter, Datenschutzbeauftragter, ...). Mehrfachzuweisung erlaubt; freie Werte sind zugelassen, damit nicht-katalogisierte Rollen gepflegt werden können.

Default: []nullable
keystringrequired

Stabiler Bezeichner (für Standardrollen einer aus SAFETY_ROLE_CATALOG; für Sonstige der frei eingegebene Rollenname).

1–200 characters
assignedAtdateoptional

Datum der Bestellung / Beauftragung

nullable
validUntildateoptional

Gültig bis — triggert escalation_rule-Reminder vor Ablauf

nullable
notesstringoptional
max 500 charactersnullable
educationCertificatesobject[]optional

Studienbescheinigungen / Ausbildungsnachweise. The actual file lives in the DMS; this is metadata + expiry.

Default: []nullable
_iduuidoptional
read-only
titlestringrequired
1–200 characters
issuerstringoptional
max 200 charactersnullable
issuedAtdateoptional
nullable
validUntildateoptional

Ablaufdatum — when set, an escalation_rule reminder fires before expiry.

nullable
documentIduuidoptional

Reference to dms_document holding the certificate file

nullable
assignedAssetIdsuuid[]optional

UUIDs of assets handed out to the employee (laptop, phone, keycard, …). Asset entity carries the canonical assignment record; this is a denormalised quick-access list.

Default: []nullable
idDocumentVerificationsobject[]optional

Append-only Liste der HR-Sichtprüfungen des Ausweisdokuments. Jede Verifikation speichert wer und wann geprüft hat — Dokumentennummer wird DSGVO-konform nicht erfasst.

max 200 itemsDefault: []read-onlynullable
_iduuidoptional
read-only
verifiedAtdatetimerequired

Zeitpunkt der Sichtprüfung (server-issued)

verifiedByuuidrequired

User-UUID der prüfenden HR-Person

verifiedByNamestringoptional

Anzeigename zum Zeitpunkt der Prüfung (Snapshot)

max 200 charactersnullable
documentTypestringoptional

Dokumenttyp zum Zeitpunkt der Prüfung (PERSONALAUSWEIS, REISEPASS, AUFENTHALTSTITEL, …) — Snapshot, damit Typänderungen die Historie nicht verfälschen.

max 64 charactersnullable
documentCountrystringoptional

ISO 3166-1 alpha-2 Ausstellerstaat zum Zeitpunkt der Prüfung — Snapshot.

max 2 charactersPatternnullable
notesstringoptional
max 500 charactersnullable
encryptedFieldsobjectoptional

Map of field-name → encrypted envelope (AES-256-GCM, employee DEK). See EMPLOYEE_PROFILE_ZK_FIELDS for the registered field set and visibility category.

nullable
starfaceAccountIdstringoptional

Starface ACCOUNT_ID this employee maps to (matched by email).

max 32 charactersread-onlynullable
starfaceLoginIdstringoptional

Starface LOGIN_ID (informational).

max 64 charactersread-onlynullable
starfaceInternalNumberstringoptional

Starface primary internal number (informational).

max 64 charactersread-onlynullable
starfaceExternalNumberstringoptional

Starface primary external number (informational).

max 64 charactersread-onlynullable
pbxAccountsobject[]optional

Provider-neutral PBX account mapping (ADR 0941 §6). System-managed via roster or the integration mapping view.

max 16 itemsread-onlynullable
providerstringrequired
starfaceteamsfreeswitchxelionsipgateinnovaphone3cxnfonagfeo
accountIdstringrequired
1–128 characters
loginIdstringoptional
max 128 charactersnullable
internalNumberstringoptional
max 64 charactersnullable
externalNumberstringoptional
max 64 charactersnullable
assignedBystringoptional
manualroster
notesstringoptional

Free-text notes for HR admin

max 10000 charactersnullable
externalReferencesobject[]optional

Cross-System-Verknüpfungen (ADR 0147 §3). Pro Fremdsystem ein Eintrag mit stabiler externer Id und den beiden Echo-Hashes. Wird ausschließlich von Sync-Pfaden geschrieben, nie über die generische CRUD-Oberfläche.

Default: []read-only
systemstringrequired
max 100 characters
externalIdstringrequired
max 200 characters
externalVersionstringoptional
nullable
externalNumberstringoptional
max 200 charactersnullable
syncedAtdatetimeoptional
nullable
lastSyncCorrelationIdstringoptional
nullable
lastInboundHashstringoptional
max 64 charactersnullable
lastOutboundHashstringoptional
max 64 charactersnullable

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

Search