[wp-trac] [WordPress Trac] #64872: WP AI Client: Add AI REST API Endpoints (`wp-ai/v1`)

WordPress Trac noreply at wordpress.org
Wed Apr 29 12:12:31 UTC 2026


#64872: WP AI Client: Add AI REST API Endpoints (`wp-ai/v1`)
-------------------------------------------------+-------------------------
 Reporter:  gziolo                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  7.1
Component:  AI                                   |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  ai-client has-patch has-unit-tests   |     Focuses:  rest-api
  2nd-opinion                                    |
-------------------------------------------------+-------------------------

Comment (by dhrumilk):

 The REST API endpoints look well-structured and consistent with
 wp_ai_client_prompt(), which is great for keeping parity across PHP and
 REST usage. Also agree with the earlier suggestion in the PR to keep REST
 and JS client as separate concerns for easier review.

 On capabilities, manage_options for prompt_ai feels a bit broad given
 potential cost implications. A more restrictive or opt-in approach might
 be safer. Also, separating list_ai_providers and list_ai_models seems
 unnecessary and could be simplified.

 Using map_meta_cap instead of user_has_cap would also align better with
 Core standards.

 Overall, this is a solid foundation and worth continuing to iterate on for
 Core inclusion.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64872#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list