POST Access check: check_access
Answer a question.
Handler: ask()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/ask" src/domains/ai-assistant/routes.php:107
POST Access check: check_access
Stream an answer over Server-Sent Events (text/event-stream).
Handler: ask_stream()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/ask/stream" src/domains/ai-assistant/routes.php:118
GET Public
What the front end needs to know before showing the assistant.
Handler: get_config()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/ai-assistant/config" src/domains/ai-assistant/routes.php:152
POST Access check: check_access
Rate an answer.
Handler: submit_feedback()
Parameters of POST /ai-assistant/feedback Parameter Type Required Default or allowed values id integer Yes — helpful boolean Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/feedback" \
-H "Content-Type: application/json" \
-d '{"id": 1, "helpful": true}' src/domains/ai-assistant/routes.php:129
GET Access check: require_manager
Content gaps: questions the help center did not answer or answered badly, grouped by meaning.
Handler: get_gaps()
Parameters of GET /ai-assistant/gaps Parameter Type Required Default or allowed values days see source — — limit integer — 50
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/gaps" src/domains/ai-assistant/routes.php:229
GET Access check: require_manager
Totals for the last N days.
Handler: get_stats()
Parameters of GET /ai-assistant/stats Parameter Type Required Default or allowed values days see source — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/stats" src/domains/ai-assistant/routes.php:197
POST Access check: check_access
Summarize one help-center article as a concise TL;DR.
Handler: summarize_article()
Parameters of POST /ai-assistant/summarize-article Parameter Type Required Default or allowed values article_id integer Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/summarize-article" \
-H "Content-Type: application/json" \
-d '{"article_id": 1}' src/domains/ai-assistant/routes.php:162
POST Access check: require_manager
Append one synonym pair from the admin gap report.
Handler: add_synonym()
Parameters of POST /ai-assistant/synonyms Parameter Type Required Default or allowed values term string Yes — alias string Yes —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/synonyms" \
-H "Content-Type: application/json" \
-d '{"term": "…", "alias": "…"}' src/domains/ai-assistant/routes.php:250
GET Access check: require_manager
The questions the help center could not answer.
Handler: get_unanswered()
Parameters of GET /ai-assistant/unanswered Parameter Type Required Default or allowed values days see source — — limit integer — 50
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/ai-assistant/unanswered" src/domains/ai-assistant/routes.php:208