AI chat proxy (X-Ai-Chat-Secret)
POST/wp-json/wp2tutor/ai/v1/chat
LLM proxy: provider-shaped body (no fixed schema) plus header X-Ai-Chat-Secret. This layer returns 401/429 for a bad secret or rate limit; provider fields are not invented here.
Request
Responses
- 200
- 400
- 401
- 403
- 429
- 500
Chat response
error
rest_forbidden
Insufficient capability or invalid REST nonce. WordPress REST: rest_forbidden / rest_cookie_invalid_nonce.
rate limit
error