Update a mention
Set the engaged state, or update AI-judged relevance or sentiment. The action field selects the operation. For engage, pass engaged: true|false for an absolute, idempotent write; omitting it toggles the current value.
Returns the COMMITTED mention row (same shape as GET /api/v2/mentions/{sourceId}), 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.
For ids that cannot ride in a URL path segment, use PATCH /api/v2/mentions/by-id?sourceId=… with the same body.
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.
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 