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
Array of all setting objects
string
required
Setting key (e.g.,
retention.activities_days)string
required
Current value
string
Human-readable description
string
required
Setting category (retention, gateway, general)
string
Username of last modifier
integer
Unix timestamp of last update
boolean
required
Whether this setting is at its default value
object
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
object
required
Map of setting keys to new values. All values should be strings.
Response
array
Array of setting keys that were updated
integer
Number of settings updated
Reset Setting to Default
Delete a custom setting value to restore its default.Request Body
string
required
Setting key to reset (e.g.,
retention.activities_days)Response
string
The key that was reset
string
The default value that will now be used
Error Responses
User is not authenticated. Check session cookie.
User does not have admin role. Only admins can manage settings.
Setting not found (DELETE only)
Rate limit exceeded. Wait before retrying.