> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.revvue.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.revvue.ai/_mcp/server.

# getThreadStats

GraphQL QUERY

Reference: https://docs.revvue.ai/api-reference/inbox/queries/get-thread-stats

## GraphQL Schema

```graphql
query ExampleQuery($startDate: DateTime, $endDate: DateTime, $slaMinutes: Int) {
  getThreadStats(startDate: $startDate, endDate: $endDate, slaMinutes: $slaMinutes) {
    totalEmails
    uniqueThreads
    inboundEmails
    outboundEmails
    emailsPerThread
    avgResponseTimeMinutes
    minResponseTimeMinutes
    maxResponseTimeMinutes
    slaCompliantThreads
    slaCompliancePercentage
  }
}
```

## Variables

```json
{
  "startDate": null,
  "endDate": null,
  "slaMinutes": 0
}
```