Give one member access to every active case (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/organization/add-user-to-all-org-cases

Grants the member with email access at caseAccessLevel to every active case of organization orgId they cannot reach yet; archived and deleted cases are skipped and existing access, including revoked access, is kept as is. Returns isSuccess: false when processing failed part way (retry to fill the rest), 400 when the user is not a member or there are no active cases, and 404 for an unknown organization or user or while the feature is turned off. Super admin only.

application/json

Body Required

  • orgId string Required
  • caseAccessLevel string Required

    Values are owner, admin, commenter, or viewer. Default value is commenter.

  • email string Required

    Email of an existing organization member

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
  • 400

    Invalid input, user is not an organization member, or no active cases found.

  • 404

    Feature disabled, organization not found, or user not found.

POST /admin/organization/add-user-to-all-org-cases
curl \
 --request POST 'http://api.example.com/admin/organization/add-user-to-all-org-cases' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "orgId": "string",
  "caseAccessLevel": "commenter",
  "email": "string"
}'
Request examples
{
  "orgId": "string",
  "caseAccessLevel": "commenter",
  "email": "string"
}
Response examples (200)
{
  "data": {
    "message": "Done",
    "isSuccess": true
  },
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}