Overview
The Settings API allows administrators to view and modify Mission Control’s system configuration including retention policies, gateway settings, and feature toggles. Settings are organized into categories:- retention: Data retention periods for activities, logs, and other records
- gateway: Gateway connection configuration
- general: System-wide settings including backups and cleanup
Get All Settings
Response
Array of all setting objects
Setting key (e.g.,
retention.activities_days)Current value
Human-readable description
Setting category (retention, gateway, general)
Username of last modifier
Unix timestamp of last update
Whether this setting is at its default value
Settings organized by category for easier navigation
Available Settings
Retention Settings
retention.activities_days- Days to keep activity records (default: 90)retention.audit_log_days- Days to keep audit log entries (default: 180)retention.logs_days- Days to keep log files (default: 30)retention.notifications_days- Days to keep notifications (default: 30)retention.pipeline_runs_days- Days to keep pipeline run history (default: 90)retention.token_usage_days- Days to keep token usage data (default: 90)
Gateway Settings
gateway.host- Gateway hostnamegateway.port- Gateway port number
General Settings
general.site_name- Mission Control display name (default: “Mission Control”)general.auto_cleanup- Enable automatic data cleanup (default: false)general.auto_backup- Enable automatic daily backups (default: false)general.backup_retention_count- Number of backup files to keep (default: 10)
Update Settings
Request Body
Map of setting keys to new values. All values should be strings.
Response
Array of setting keys that were updated
Number of settings updated
Reset Setting to Default
Delete a custom setting value to restore its default.Request Body
Setting key to reset (e.g.,
retention.activities_days)Response
The key that was reset
The default value that will now be used
Error Responses
401 Unauthorized
User is not authenticated. Check session cookie.
403 Forbidden
User does not have admin role. Only admins can manage settings.
404 Not Found
Setting not found (DELETE only)
429 Too Many Requests
Rate limit exceeded. Wait before retrying.