Version: 0.1.0
WP2Tutor REST API
AI / RAG / Embedding. {product}/{slug}/v1: wp2tutor/ai/v1, wp2tutor/embedding/v1, wp2tutor/rag/v1. POST /chat uses the X-Ai-Chat-Secret header. GET /chat is public. Embedding requires the manage_options capability. RAG DataTables is available to administrators. Bot webhooks are documented in the wp2tutor-bot specification.
Authentication
- API Key: cookie
- HTTP: Basic Auth
- API Key: aiChatSecret
WordPress logged-in cookie session plus REST nonce header X-WP-Nonce.
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | X-WP-Nonce |
WordPress Application Password (DualRest).
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | basic |
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | X-Ai-Chat-Secret |