> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/015_account/003__get_dashboard_stats.md).

# Get Dashboard Stats

GraphQL endpoint: `/user`

Returns summary counts for the calling user's dashboard: companies they own or administer, established C2C and B2C connections, and pending connection requests awaiting their response.

## Query

```graphql
query {
  dashboardStats {
    companiesCount
    pendingC2cConnectionRequestsCount
    c2cConnectionsCount
    pendingB2cConnectionRequestsCount
    b2cConnectionsCount
  }
}

```

## Variables

```json
{}
```

## Response

```json
{
  "data": {
    "dashboardStats": {
      "b2cConnectionsCount": 3,
      "c2cConnectionsCount": 0,
      "companiesCount": 2,
      "pendingB2cConnectionRequestsCount": 0,
      "pendingC2cConnectionRequestsCount": 0
    }
  }
}
```
