---
title: "List Pack formula analytics"
method: GET
path: "/analytics/packs/{packId}/formulas"
tags: ["Analytics"]
---

# List Pack formula analytics

`GET /analytics/packs/{packId}/formulas`

Returns analytics data for Pack formulas.

## Path parameters

- `packId` integer, required

## Query parameters

- `packFormulaNames` string[]
- `packFormulaTypes` PackFormulaType[]
- `sinceDate` string, date
- `untilDate` string, date
- `scale` 'daily' | 'cumulative' — Quantization period over which to view analytics.
- `pageToken` string
- `orderBy` 'date' | 'formulaName' | 'formulaType' | 'formulaInvocations' | 'medianLatencyMs' | 'medianResponseSizeBytes' | 'errors' | 'docsActivelyUsing' | 'docsActivelyUsing7Day' | 'docsActivelyUsing30Day' | 'docsActivelyUsing90Day' | 'docsActivelyUsingAllTime' | 'workspacesActivelyUsing' | 'workspacesActivelyUsing7Day' | 'workspacesActivelyUsing30Day' | 'workspacesActivelyUsing90Day' | 'workspacesActivelyUsingAllTime' — Determines how the Pack formula analytics returned are sorted.
- `direction` 'ascending' | 'descending' — Direction of a sort for a table or view.
- `limit` integer

## Response `200`

Response of Superhuman Pack formula analytics.

- PackFormulaAnalyticsCollection — A collection of analytics for Superhuman Packs formulas over a date range.
  - `items` PackFormulaAnalyticsItem[], required
    - `formula` PackFormulaIdentifier, required
      - `name` string, required — The Pack formula name.
      - `type` 'action' | 'formula' | 'sync' | 'metadata', required
    - `metrics` PackFormulaAnalyticsMetrics[], required
      - `date` string, date, required — Date of the analytics data.
      - `formulaInvocations` integer, required — Number of times this formula has been invoked.
      - `errors` integer, required — Number of errors from invocations.
      - `medianLatencyMs` integer — Median latency of an invocation in milliseconds. Only present for daily metrics.
      - `medianResponseSizeBytes` integer — Median response size in bytes. Only present for daily metrics.
      - `docsActivelyUsing` integer, required — Number of unique docs that have invoked a formula from this Pack in the past day.
      - `docsActivelyUsing7Day` integer, required — Number of unique docs that have invoked a formula from this Pack in the past 7 days.
      - `docsActivelyUsing30Day` integer, required — Number of unique docs that have invoked a formula from this Pack in the past 30 days.
      - `docsActivelyUsing90Day` integer, required — Number of unique docs that have invoked a formula from this Pack in the past 90 days.
      - `docsActivelyUsingAllTime` integer, required — Number of unique docs that have invoked a formula from this Pack ever.
      - `workspacesActivelyUsing` integer, required — Number of unique workspaces that have invoked a formula from this Pack in the past day.
      - `workspacesActivelyUsing7Day` integer, required — Number of unique workspaces that have invoked a formula from this Pack in the past 7 days.
      - `workspacesActivelyUsing30Day` integer, required — Number of unique workspaces that have invoked a formula from this Pack in the past 30 days.
      - `workspacesActivelyUsing90Day` integer, required — Number of unique workspaces that have invoked a formula from this Pack in the past 90 days.
      - `workspacesActivelyUsingAllTime` integer, required — Number of unique workspaces that have invoked a formula from this Pack ever.
      - `workspacesActivelyTrialing` integer — Number of unique workspaces that are currently involved in a trial.
      - `workspacesActivelyTrialing7Day` integer — Number of unique workspaces that have been involved in a trial in the last 7 days.
      - `workspacesActivelyTrialing30Day` integer — Number of unique workspaces that have been involved in a trial in the last 30 days.
      - `workspacesActivelyTrialing90Day` integer — Number of unique workspaces that have been involved in a trial in the last 90 days.
      - `workspacesActivelyTrialingAllTime` integer — Number of unique workspaces that have been involved in a trial ever.
      - `workspacesNewlySubscribed` integer — Number of unique workspaces that have recently subscribed to the Pack.
      - `workspacesWithActiveSubscriptions` integer — Number of unique workspaces that are currently subscribed to the Pack.
      - `workspacesWithSuccessfulTrials` integer — Number of unique workspaces that subscribed after undertaking a Pack trial.
      - `revenueUsd` string — Amount of revenue (in USD) that the Pack has produced.
  - `nextPageToken` string — If specified, an opaque token used to fetch the next page of results.
  - `nextPageLink` string, url — If specified, a link that can be used to fetch the next page of results.

## Other responses

- `401` — The API token is invalid or has expired.
- `429` — The client has sent too many requests.

---

[API](https://skmtc.net/coda/apis/superhuman-docs-api.md) · [All operations](https://skmtc.net/coda/apis/superhuman-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coda/superhuman-docs-api/versions/c65a8418f3c8/schema)
