Skip to content

REST API

Ai discovery: 2 routes.

All under /wp-json/davo/v1. Every route has a description in the source.

  • GET2
  • POST1
  • DELETE1

/ai-discovery/mcp

POSTPublic

Handle a JSON-RPC message.

Handler: handle_mcp()

No parameters declared in the route registration.

curl
curl -X POST "https://example.com/wp-json/davo/v1/ai-discovery/mcp"

GETDELETEPublic

Answer GET/DELETE probes on the MCP route with 405 Method Not Allowed.

Handler: handle_method_not_allowed()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/ai-discovery/mcp"

src/domains/ai-discovery/routes.php:48

/ai-discovery/stats

GETAccess check: require_manager

Return agent-read analytics and live endpoint URLs for administrators.

Handler: get_stats()

Parameters of GET /ai-discovery/stats
ParameterTypeRequiredDefault or allowed values
daysinteger—30
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-discovery/stats"

src/domains/ai-discovery/routes.php:66

Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first