GET Access check: require_login
What the current user's editors need: usable surfaces with their endpoints, the limits and a fresh REST nonce. No credentials.
Handler: get_config()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/config" src/domains/ai/routes.php:73
GET Access check: require_manage_options
The source has no description for this route.
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/connections" src/domains/ai/routes.php:90
DELETE Access check: require_manage_options
Remove a saved key.
Handler: clear_key()
Parameters of DELETE /ai/connections/{provider}/key Parameter Type Required Default or allowed values provider string Yes —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/connections/{provider}/key" src/domains/ai/routes.php:117
POST Access check: require_manage_options
Test a provider connection.
Handler: test_connection()
Parameters of POST /ai/connections/{provider}/test Parameter Type Required Default or allowed values provider string Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/connections/{provider}/test" src/domains/ai/routes.php:100
POST Access check: require_login
Handle an editor AI request, answering in the shape the editor's transport reads.
Handler: handle_editor()
Parameters of POST /ai/editor Parameter Type Required Default or allowed values surface string — admin
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/editor" src/domains/ai/routes.php:56
GET Access check: require_manage_options
One page of the usage log, with pagination headers.
Handler: list_log()
Parameters of GET /ai/log Parameter Type Required Default or allowed values page integer — 1 per_page integer — 25 feature string — (empty)
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/log" src/domains/ai/routes.php:151
GET Access check: require_manage_options
The source has no description for this route.
Parameters of GET /ai/usage Parameter Type Required Default or allowed values days integer — 30
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai/usage" src/domains/ai/routes.php:134