Set WVC plan data for a website
Activates the WordPress Vibe Coding (WVC) plan on a website by writing the wvc_plan_data option directly to WordPress via WP-CLI. This sets a WVC monthly plan with a 2-day trial period starting from today's date.
Call this endpoint before triggering WVC generation on an existing website to ensure the correct plan is in place.
Request body fields:
- option_name — Must be wvc_plan_data.
- option_value.plan_title — The name of the WVC plan displayed in the editor.
- option_value.trial_data.trial_period — Duration of the trial in days.
- option_value.trial_data.hosting_trial_expire_date — The date and time the trial expires (YYYY-MM-DD HH:MM:SS).
- option_value.timezone — The website's timezone as a UTC offset (e.g. UTC+0, UTC+4, UTC-5).
- option_value.upgrade_url — Optional. When provided, the editor will use it as the upgrade link for this specific website instead of the default upgrade URL.
⚠️ Service Requirement: This feature requires the WordPress Vibe Coding (WVC) service to be enabled for your account. If the WVC service is not enabled, this feature will be unavailable and API requests may return an error response. Please contact support to enable this service.
Request
- Base URLhttps://api.10web.io
- Authnone declared. Required headers: x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Headers
API key for authentication
Request body
Example request
{
"option_name": "wvc_plan_data",
"option_value": {
"plan_title": "WVC monthly",
"trial_data": {
"trial_period": 2,
"hosting_trial_expire_date": "2026-04-18 00:00:00"
},
"timezone": "UTC+0",
"upgrade_url": "https://example.com/upgrade"
}
}Response
WVC plan data set successfully
Example response
{
"status": "ok",
"data": {
"message": "wvc_plan_data option updated successfully"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.