---
title: "Get Membership Analytics Groups"
method: GET
path: "/analytics/dashboards/memberships/groups/{group_by}"
tags: ["provider", "analytics"]
---

# Get Membership Analytics Groups

`GET /analytics/dashboards/memberships/groups/{group_by}`

## Request

- Base URL: `https://docs.decodahealth.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.decodahealth.com/analytics/dashboards/memberships/groups/{group_by}`
- Auth: none declared. Required headers: `TENANT`, `API-KEY`
- TypeScript: <https://skmtc.dev/decodahealth/apis/decoda-api/docs/analytics/dashboards/memberships/groups/:group_by/get.ts> (a function with typed inputs; its response is checked against the schema)

Get groups for membership analytics based on groupBy parameter.

## Path parameters

- `group_by` string, required

## Query parameters

- `location_ids` string[]
- `membership_ids` string[]
- `member_statuses` string[]
- `sold_by_provider_ids` string[]
- `page` integer, nullable
- `per_page` integer, nullable
- `sort_by` string, nullable
- `sort_direction` 'asc' | 'desc', nullable
- `location_id` string, nullable
- `patient_name` string, nullable
- `created_date_start` string, date-time, nullable
- `created_date_end` string, date-time, nullable
- `start_date_start` string, date-time, nullable
- `start_date_end` string, date-time, nullable
- `next_billing_date_start` string, date-time, nullable
- `next_billing_date_end` string, date-time, nullable
- `timezone` string

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Request body

- BodyGetMembershipAnalyticsGroupsAnalyticsDashboardsMembershipsGroupsGroupByGet
  - `membership_ids` string[]
  - `member_statuses` MemberStatus[]
  - `location_ids` string[]
  - `sold_by_provider_ids` string[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) - [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decodahealth/apis/decoda-api/revisions/4ab18c80f9e9?raw)
