Metadata
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/metadata/events/ |
Get event metadata |
| GET | /api/metadata/features/ |
Get feature flag metadata |
| GET | /api/metadata/permissions/ |
Get permission metadata |
| GET | /api/metadata/settings/ |
Get overridable settings metadata |
Get event metadata
Retrieves metadata for all available event types, grouped by categories. This endpoint is publicly accessible and is useful for building UIs for event filtering or webhook configuration.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
metadata_events_retrieve
1 2 3 4 5 6 7 8 9 10 | |
200 -
| Field | Type | Description |
|---|---|---|
event_groups |
object (free-form) | Map of event group keys to lists of event type enums from EventType |
Get feature flag metadata
Retrieves metadata for all available feature flags, including their keys, descriptions, and grouping sections. This endpoint is publicly accessible and helps UIs to dynamically render feature-related settings.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
metadata_features_retrieve
1 2 3 4 5 6 7 8 9 10 | |
200 -
| Field | Type | Description |
|---|---|---|
features |
array of objects | List of feature sections with descriptions |
feature_enums |
object (free-form) | Nested feature enum values by section |
Get permission metadata
Retrieves metadata about roles, permissions, and their descriptions. This endpoint is publicly accessible and provides data needed for UI components, such as role selection dropdowns and permission management interfaces.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
metadata_permissions_retrieve
1 2 3 4 5 6 7 8 9 10 | |
200 -
| Field | Type | Description |
|---|---|---|
roles |
object (free-form) | Map of role keys to role enum values from RoleEnum |
permissions |
object (free-form) | Map of permission keys to permission enum values from PermissionEnum |
permission_map |
object (free-form) | Map of resource types to create permission enums |
permission_descriptions |
array of objects | Grouped permission descriptions for UI |
Get overridable settings metadata
Retrieves metadata for all settings that can be configured via the Constance backend. This includes setting keys, human-readable descriptions, default values, and types. This endpoint is publicly accessible.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
metadata_settings_retrieve
1 2 3 4 5 6 7 8 9 10 | |
200 -
| Field | Type | Description |
|---|---|---|
settings |
array of objects | List of settings sections with configuration items |