API Reference
Plugin Onboard
Kick off the first-run Discovery + Site Audit for a newly connected WordPress site. Called by the plugin immediately after the site token is saved.
POST
/api/v1/plugin/onboardEnqueues an audit job for the calling site, returning the slug and initial status so the plugin can poll GET /api/v1/audits/[slug]/status (pipeline progress) and GET /api/v1/audits/[slug]/discovery (Discovery findings as soon as they land). If an audit job already exists for the domain, returns the current job status instead of queuing a duplicate.
Example
Try it
Response
201Onboarding audit queued
200Audit already in progress
400Missing site_url
The plugin typically calls this the moment the user completes the Google connect flow. The deterministic Discovery stage populates within ~30 seconds and can be fetched via GET /api/v1/audits/[slug]/discovery while the rest of the audit continues running.