Guide

Trending News REST API

Admin settings for analysis defaults. Slack webhooks are owned by PRC Slack.

Auth summary

AccessRoutes
manage_optionsGET/POST /wp-json/prc-agents-trending-news/v1/settings

Settings

MethodPathPermission
GET/wp-json/prc-agents-trending-news/v1/settingsmanage_options
POST/wp-json/prc-agents-trending-news/v1/settingsmanage_options

POST rejects invalid payloads with HTTP 400 and { "error": "Invalid payload." }. The payload is analysis-only (google_news_api_key, max_fetch_multiplier, related_posts_lookback_months). Slack fields are not stored here.

Slack webhooks

Canonical Events API routes live on PRC Slack. TNA paths remain as one-release proxies:

MethodPathNotes
POST/wp-json/prc-agents-trending-news/v2/slack/eventsProxy → PRC Slack; Deprecation: true
POST/wp-json/prc-agents-trending-news/v2/slack/interactionsProxy → PRC Slack; Deprecation: true

See PRC Slack REST API for signature errors and the canonical /wp-json/prc-slack/v1/ routes.

Was this helpful?