---
title: "Get stats for the user."
method: GET
path: "/insights/stats"
tags: ["Insights"]
---

# Get stats for the user.

`GET /insights/stats`

## Request

- Base URL: `https://socialbu.com/api/v1`
- URL: `https://socialbu.com/api/v1/insights/stats`
- Auth: HTTP bearer

Returns a high-level summary for the authenticated user, including total connected accounts, active automations, scheduled posts, and any accounts with connection errors.

## Response `200`

successful operation

- object
  - `unreadFeeds` integer: Number of unread feed items for the user.
  - `userAutomations` integer: Number of automation set up by the user.
  - `userPendingPosts` integer: Number of social media posts pending approval.
  - `userFailedPosts` integer: Number of social media posts that failed to publish.
  - `inactiveAccounts` integer: Number of connected social media accounts that are inactive or disconnected.

## Other responses

- `400`: Bad Request
- `404`: Resource not found
- `405`: Validation exception

---

[API](https://skmtc.dev/socialbu/apis/socialbu-api.md) · [All operations](https://skmtc.dev/socialbu/apis/socialbu-api/llms.txt) · [OpenAPI document](https://skmtc.dev/socialbu/apis/socialbu-api/revisions/841b3ab0f671?raw)
