API referencePOST

Explain mention

Generate or fetch AI relevance reasoning and tags for a mention.

POSThttps://ai.redreplier.com/ai-app/api/v1/mentions/{mentionId}/explain

Generate or fetch AI relevance reasoning and tags for a mention.

Bearer Token (RedReplier API token)

Parameters

  • mentionId (path, UUID, required): Mention to explain.

Request body

This endpoint does not require a JSON body.

Response

Returns one public Mention object with relevanceReason and tags, or null if the mention is not available.

  • id (string): Mention UUID.
  • websiteId (string | null): Website UUID.
  • source (string): REDDIT_POST, REDDIT_COMMENT, TWITTER (X), BLUESKY, or HACKERNEWS.
  • keyword (string | null): Keyword value that matched.
  • title, contentText, url, author, subreddit (string | null): Title/body/link context. subreddit is set only for Reddit sources and is null for X, Bluesky, and Hacker News.
  • status (string): NEW, APPROVED, or REJECTED.
  • relevanceScore (number | null): AI relevance score from 0 to 100, or null.
  • relevanceReason (string | null): AI explanation for the match, or null.
  • tags (string[]): AI-generated relevance tags.
  • publishedAt, ingestedAt, reviewedAt, createdAt, updatedAt (ISO string | null): Publication, ingestion, review, creation, and update timestamps in ISO 8601 format, or null.

Notes

If the explanation does not exist yet, RedReplier generates it lazily.

Errors

  • 400 Bad Request: Invalid input, URL, UUID, enum, query parameter, or body.
  • 401 Unauthorized: Missing or invalid Bearer token.
  • 404 Not Found: The resource does not exist for the token account.
  • 500 Internal Server Error: Unexpected server error.
Example request (curl)
curl --request POST \
  --url https://ai.redreplier.com/ai-app/api/v1/mentions/6a9f0e8b-2c65-44f7-b6e6-7f88a7df8301/explain \
  --header 'Authorization: Bearer redreplier_test_1234567890'
200
{
  "id": "6a9f0e8b-2c65-44f7-b6e6-7f88a7df8301",
  "websiteId": "9b0f2b8d-4a76-4f59-9f0b-6b4b6f6c2a10",
  "source": "REDDIT_POST",
  "keyword": "agency CRM",
  "title": "Best CRM for a small agency?",
  "contentText": "We need a lightweight CRM for client follow-ups and deal tracking.",
  "url": "https://reddit.com/r/sales/comments/example/best_crm_for_a_small_agency",
  "author": "agency_ops",
  "subreddit": "sales",
  "status": "NEW",
  "relevanceScore": 86,
  "relevanceReason": "The thread asks for an agency CRM, which directly matches the monitored product category.",
  "tags": ["recommendation-request", "high-intent"],
  "publishedAt": "2026-05-29T09:20:00.000Z",
  "ingestedAt": "2026-05-29T09:24:12.000Z",
  "reviewedAt": null,
  "createdAt": "2026-05-29T09:24:12.000Z",
  "updatedAt": "2026-05-29T09:24:12.000Z"
}