Title: Forbidden access
Last modified: June 16, 2026

---

# Forbidden access

 *  [imcphone](https://wordpress.org/support/users/imcphone/)
 * (@imcphone)
 * [2 weeks, 6 days ago](https://wordpress.org/support/topic/forbidden-access-7/)
 * Hello,
 * I am using SmartSearchWP version 2.7.3 on a WordPress website hosted by OVH with
   Divi builder theme.
 * I have successfully configured my OpenAI API key and added API credits. The key
   is validated correctly by the plugin.
 * Current status:
    - OpenAI API key is valid
    - OpenAI billing is active
    - Contexts are generated successfully
    - Pages are trained and marked as active (green status)
    - REST API is enabled and working (`/wp-json/` loads correctly)
    - The route `/wp-json/wdgpt/v1` is registered correctly
 * However, the chatbot does not work.
 * When a visitor sends a message, the request:
 * `POST /wp-json/wdgpt/v1/retrieve-prompt`
 * returns:
 * `403 Forbidden`
 * Response:
 *     ```wp-block-code
       <title>403 Forbidden</title>
       <h1>Forbidden</h1>
       <p>You don't have permission to access this resource.</p>
       ```
   
 * Additional information:
    - Hosting: OVH
    - CDN: OVH Basic CDN enabled
    - WP-Optimize cache disabled during testing
    - Permalinks refreshed
    - Context generation works correctly
    - Only chatbot requests fail
 * In Chrome DevTools, the failed request is:
 * `https://domainedesclauzes.com/wp-json/wdgpt/v1/retrieve-prompt`
 * Status code:
 * `403 Forbidden`
 * Could you please advise what could cause the `retrieve-prompt` endpoint to return
   a 403 error while context generation works correctly?
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fforbidden-access-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [supportwebdigit](https://wordpress.org/support/users/supportwebdigit/)
 * (@supportwebdigit)
 * [2 weeks, 6 days ago](https://wordpress.org/support/topic/forbidden-access-7/#post-18940179)
 * Hello,
 * Your request has been received. We will get back to you shortly.
 * Thank you
 * JC

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fforbidden-access-7%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/smartsearchwp/assets/icon-256x256.png?rev=3002658)
 * [Chatbot with ChatGPT Wordpress](https://wordpress.org/plugins/smartsearchwp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smartsearchwp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smartsearchwp/)
 * [Active Topics](https://wordpress.org/support/plugin/smartsearchwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smartsearchwp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smartsearchwp/reviews/)

## Tags

 * [forbidden](https://wordpress.org/support/topic-tag/forbidden/)

 * 1 reply
 * 2 participants
 * Last reply from: [supportwebdigit](https://wordpress.org/support/users/supportwebdigit/)
 * Last activity: [2 weeks, 6 days ago](https://wordpress.org/support/topic/forbidden-access-7/#post-18940179)
 * Status: not resolved