# Debug

Read and update WordPress debug configuration (WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY).

Requires the WordPress Toolkit add-on.


# Get Debug Info

# HTTP Request:

GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/wordpress-toolkit/debug/info

# Curl Request Example:

curl --request GET \
  --url "https://api.serveravatar.com/organizations/5/servers/15/applications/93/wordpress-toolkit/debug/info" \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Successful Response

  • 200 (Ok)
{
  "debug_info": {
    "debug_mode": "1",
    "debug_log": "1",
    "debug_display": ""
  },
  "status": "success"
}

# Update Debug Setting

Update a single debug constant in wp-config.php.

# HTTP Request:

POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/wordpress-toolkit/debug/update

# Parameter:

Parameter Required Type Description
setting Yes String WP_DEBUG, WP_DEBUG_LOG, or WP_DEBUG_DISPLAY
value Yes String "true" to enable; "false" to disable

# Curl Request Example:

curl --request POST \
  --url "https://api.serveravatar.com/organizations/5/servers/15/applications/93/wordpress-toolkit/debug/update" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
    "setting": "WP_DEBUG_DISPLAY",
    "value": "true"
  }'

# Response:

# Successful Response

  • 200 (Ok)
{
  "message": "WP Debug Display enabled successfully.",
  "status": "success"
}

# Validation Error

  • 422 (Unprocessable Entity)
{
  "message": "The setting field is required. The value field is required."
}
Last Updated: 5/19/2026, 11:40:55 AM