Hide or unhide threads

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 /local-emails/{caseId}/threads/visibility

Hides threads from the thread list, or brings hidden threads back. Nothing is deleted.

Path parameters

  • caseId string Required
application/json

Body Required

  • action string Required

    Values are hide or unhide.

  • ids array[string] Required

    Thread ids to hide/unhide. Ids not in the case are skipped.

    At least 1 but not more than 1000 elements.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • action string Required

        Values are hide or unhide.

      • requested number Required

        Number of ids in the request.

      • matched number Required

        Ids that belong to the case.

      • skipped number Required

        Ids skipped (not in the case).

      • modified number Required

        Documents whose hiddenAt actually changed.

    • statusCode number Required
    • timestamp string(date-time) Required
POST /local-emails/{caseId}/threads/visibility
curl \
 --request POST 'http://api.example.com/local-emails/{caseId}/threads/visibility' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "action": "hide",
  "ids": [
    "string"
  ]
}'
Request examples
{
  "action": "hide",
  "ids": [
    "string"
  ]
}
Response examples (200)
{
  "data": {
    "action": "hide",
    "requested": 3,
    "matched": 3,
    "skipped": 0,
    "modified": 3
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}