List connected email accounts (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/report/user-email-data-providers

Lists email accounts connected through extraction codes, one row per account and code, with the provider, the code and its creator's email, the case and organization names and the number of imported threads, filtered by connection date (startDate/endDate), extractionCode or caseId. An unknown extractionCode returns an empty list. Super admin only.

application/json

Body Required

  • startDate string
  • endDate string
  • extractionCode string
  • caseId string

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • data array[object] Required
      Hide data attributes Show data attributes object
      • createdAt string(date-time)
      • email string
      • provider string
      • extractioncode string
      • extractioncodeCreatorEmail string
      • case string
      • organization string
      • threadsCount number
    • statusCode number Required
    • timestamp string(date-time) Required
POST /admin/report/user-email-data-providers
curl \
 --request POST 'http://api.example.com/admin/report/user-email-data-providers' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "startDate": "string",
  "endDate": "string",
  "extractionCode": "string",
  "caseId": "string"
}'
Request examples
{
  "startDate": "string",
  "endDate": "string",
  "extractionCode": "string",
  "caseId": "string"
}
Response examples (200)
{
  "data": [
    {
      "createdAt": "2026-01-15T10:15:00.000Z",
      "email": "jane.doe@example.com",
      "provider": "gmail",
      "extractioncode": "AB12CD",
      "extractioncodeCreatorEmail": "paralegal@example.com",
      "case": "Doe v. Roe",
      "organization": "Example Firm",
      "threadsCount": 214
    }
  ],
  "statusCode": 200,
  "timestamp": "2026-01-15T10:15:00.000Z"
}