Skip to main content
POST
/
wp-json
/
getmcp
/
v1
/
settings
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "log_retention_days": 60,
    "analytics_retention_days": 180,
    "enable_email_alerts": true,
    "notification_email": "ops@yourcompany.com",
    "usage_alert_threshold": 500
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/settings"
{
  "default_rate_limit": 60,
  "default_timeout": 30,
  "log_retention_days": 60,
  "analytics_retention_days": 180,
  "log_response_data": false,
  "enable_health_checks": true,
  "health_check_interval": 60,
  "notification_email": "ops@yourcompany.com",
  "enable_email_alerts": true,
  "usage_alert_threshold": 500,
  "keep_data_on_uninstall": false
}
Updates one or more plugin settings. Only include the fields you want to change. Returns the complete updated settings object.

Body Parameters

default_rate_limit
integer
Default rate limit (requests per minute) for new servers.
default_timeout
integer
Default request timeout in seconds for new tools.
log_retention_days
integer
How many days to keep call log entries. Set to 0 for indefinite retention.
analytics_retention_days
integer
How many days to keep aggregated daily analytics.
log_response_data
boolean
Whether to store API response bodies in call logs. Disabled by default for privacy.
enable_health_checks
boolean
Enable or disable background health checks.
health_check_interval
integer
Health check interval in minutes.
notification_email
string
Email address for alert notifications.
enable_email_alerts
boolean
Enable or disable email alerts.
usage_alert_threshold
integer
Calls per hour threshold that triggers an alert email.
keep_data_on_uninstall
boolean
If true, all plugin data is preserved when the plugin is deleted.
curl -X POST \
  -H "Authorization: Bearer gmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "log_retention_days": 60,
    "analytics_retention_days": 180,
    "enable_email_alerts": true,
    "notification_email": "ops@yourcompany.com",
    "usage_alert_threshold": 500
  }' \
  "https://yoursite.com/wp-json/getmcp/v1/settings"
{
  "default_rate_limit": 60,
  "default_timeout": 30,
  "log_retention_days": 60,
  "analytics_retention_days": 180,
  "log_response_data": false,
  "enable_health_checks": true,
  "health_check_interval": 60,
  "notification_email": "ops@yourcompany.com",
  "enable_email_alerts": true,
  "usage_alert_threshold": 500,
  "keep_data_on_uninstall": false
}