Update a mention (id as query parameter)
Set the engaged state, or update AI-judged relevance or sentiment, addressing the mention by a sourceId query parameter. The action field in the body selects the operation — same body as PATCH /api/v2/mentions/{sourceId}.
Returns the COMMITTED mention row (same shape as GET /api/v2/mentions/by-id), never an echo of the request — e.g. relevance: 3 (clear) answers with the restored AI verdict, and the engaged field is the value the toggle actually stored. No follow-up GET is needed to learn the resulting state.
Query-parameter twin of the path route — identical behaviour, but safe for ids a URL path segment cannot carry.
Authorizations
Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>. Keys carry a scope — read, write (implies read) or admin (implies write) — chosen when the key is minted. Each operation's security requirement (and its x-required-scope extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.
Query Parameters
Stable platform-native mention id (e.g. reddit_t3_1abc234). The internal numeric id from a list row is also accepted — both resolve for recent and archived mentions. Unlike the /api/v2/mentions/{sourceId} path form, EVERY id is accepted here verbatim, including ids that are path-reserved (., ..) or equal to sibling route names (by-author, export).
"reddit_t3_1abc234"
Body
- Option 1
- Option 2
- Option 3
Mutation request for a mention. The action field discriminates which update to apply.
The mention's timestamp, copied verbatim from the list/export response. Tinybird-style format (YYYY-MM-DD HH:mm:ss.SSS, UTC, no Z suffix); ISO 8601 also accepted. Used together with sourceId / postId to uniquely key the mention.
^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(\.\d{1,9})?(Z|[+-]\d{2}:?\d{2})?$"2026-05-06 13:35:37.000"
Target state: true marks the mention engaged, false un-marks it. The write is absolute and idempotent — safe to retry and safe to call concurrently. OMITTING it toggles the current value, which is what the web app's engage button does; non-interactive callers should always pass it.
true
Response
200 response
A single mention collected from a social platform. Canonical shape shared by list_mentions (MCP), GET /api/v2/mentions (REST), and the tRPC feed.
Sentiment classification. null until the AI has scored this mention. Workspaces on the new relevance engine (gradual rollout) receive sentiment for the company: Positive = good news for your company, e.g. a competitor criticised.
Positive, Neutral, Negative "Neutral"
The author's emotion. null until the AI has scored this mention, for mentions scored before emotion detection existed, and for workspaces not yet on the new relevance engine (gradual rollout).
excited, satisfied, curious, confused, frustrated, angry, disappointed, concerned, neutral "frustrated"
AI-assigned topic tags applied to the mention.
AI-assigned topic tag. Applied by the relevance worker during scoring. A post can carry multiple tags.
buy_intent, competitor_mention, customer_testimonial, promotional_post, own_brand_mention, industry_insights, hiring, event, product_question, pricing, churn_intent, launch_announcement, bug_report, user_feedback, ai_generated 