Fix keyword tags on search imports (internal)

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
POST /admin/email/{caseId}/fix-search-tag-attribution

For emails imported into the case by a multi-keyword search, removes the keyword tags whose keyword does not appear in the email (sender, recipient, subject and manual tags stay) and recomputes the thread tags, optionally only for mailbox providerId. Safe to repeat; runs synchronously and reports how many emails and threads changed. Super admin only.

Path parameters

  • caseId string Required

    Id of the case to fix

application/json

Body

  • providerId string

    Restrict the fix to a single email provider (mailbox) on the case.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • message string Required
      • isSuccess boolean Required
    • statusCode number Required
    • timestamp string(date-time) Required
POST /admin/email/{caseId}/fix-search-tag-attribution
curl \
 --request POST 'http://api.example.com/admin/email/{caseId}/fix-search-tag-attribution' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "providerId": "string"
}'
Request examples
{
  "providerId": "string"
}
Response examples (200)
{
  "data": {
    "message": "Done",
    "isSuccess": true
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}