---
title: "Workspace analytics"
method: GET
path: "/v1/analytics"
---

# Workspace analytics

`GET /v1/analytics`

## Request

- Base URL: `https://api.breakreach.com`
- URL: `https://api.breakreach.com/v1/analytics`
- Auth: HTTP bearer

Aggregated views, likes, comments and shares across the last 100 published posts, plus the top 10 posts by views.

## Query parameters

- `workspace` string

## Response `200`

OK

- object
  - `totals` object, required
    - `views` number, required
    - `likes` number, required
    - `comments` number, required
    - `shares` number, required
    - `posts` integer, required
  - `topPosts` object[], required
    - `id` string, required
    - `content` string, required
    - `metrics` object, nullable, required
      - `views` number
      - `likes` number
      - `comments` number
      - `shares` number

## Other responses

- `401`: Missing, invalid or expired API key
- `402`: No active Breakreach subscription or trial
- `403`: Not a member of the requested workspace
- `404`: Workspace not found

---

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