Get all custom field definitions for the tenant. Filter by entityType to get fields for a specific entity.
Optional BCP 47 locale (e.g. de, de-AT). Translatable fields are returned in this locale, falling back per field to the base text; the fields that came from a translation are listed in localizedFields. Absent or invalid values are ignored. Accept-Language is deliberately not used (browsers send it on every request, and localization must stay opt-in so editing flows keep reading base text) and no Content-Language is sent (a response can mix localized and base text).
- Mock serverhttps://docs.pers.ninja/_mock/swagger/custom-field-definitions
- https://api.pers.ninja/v2https://api.pers.ninja/v2/custom-field-definitions
curl -i -X GET \
'https://docs.pers.ninja/_mock/swagger/custom-field-definitions?entityType=user&include=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-locale: de-AT'List of custom field definitions
Entity type this field applies to
Field type: text, email, phone, number, date, boolean, url, select, multiselect
Per-locale translations of label, description and select option labels (option.<value>), keyed by locale. Only returned with include=translations.
Marker to distinguish from built-in fields. Custom fields are stored in user.customData
[ { "id": "string", "tenantId": "string", "entityType": "user", "key": "string", "label": "string", "description": {}, "fieldType": "text", "selectOptions": [ … ], "selectOptionsSource": {}, "validation": {}, "translations": { … }, "sortOrder": 0, "isCustom": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]