Recommendations

The same recommendation runs that power the in-app Recommendations page, plus the endpoint that launches a new one.

GET/recommendations

Lists recommendation runs for a project with type/status filters.

Params:
  • project_idrequired
  • recommendation_typeai_visibility|social_community|brand_building|sentiment_reputation
  • statuspending|processing|completed|failed
  • page
  • per_page

Invalid enum values return ERR_INVALID_PARAM.

GET/recommendations/:id

One recommendation run with its items and report data: items array with title, priority, action steps, metadata, source references, plus item counts grouped by active, completed, archived.

Params:
  • project_idrequired
  • :idin URL
  • item_statusactive|completed|archived
  • resolve_source_refsdefault true

POST/recommendations

Launch a new generation (same engine as the in-app Recommendations page). Runs async (1-3 minutes); poll GET /recommendations/:id until status is completed. Consumes the project weekly recommendation-item budget (ERR_LIMIT_REACHED when exhausted, or when a run of the same type is already pending). sentiment_reputation requires Scale or above. Requires a writable API key.

Body (JSON):
  • project_idrequired
  • recommendation_typeai_visibility default | social_community | brand_building | sentiment_reputation

PATCH/recommendations/:id/items/:item_id

Mark one item of a recommendation run as completed, archive it (archived) or move it back to active, like the buttons on the Recommendations page. When archiving, an optional reason teaches later runs: not_relevant and too_complex steer the next recommendations away from similar ones, and on a PR & Citation Building item that targets a domain, competitor or not_relevant stops that site from being suggested again. Returns the item in the shape GET /recommendations/:id lists items. Requires a writable API key and, for team members, create permission on Recommendations. Also available as the MCP tool update_recommendation_item.

Path:
  • :idrecommendation run id
  • :item_id

Body (JSON): project_id (required), status (required: completed|archived|active), reason (optional, with archived only: not_relevant|too_complex|competitor; competitor only on items with metadata.domain). Returns ERR_NOT_FOUND for a run or item outside the project, and ERR_INVALID_PARAM for a reason that does not apply.