---
title: "List the groups of an app"
method: GET
path: "/apps/{id}/groups"
tags: ["Apps"]
---

# List the groups of an app

`GET /apps/{id}/groups`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/apps/{id}/groups`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://app.hypamoon.com/oauth/authorize`, token URL `https://api.hypamoon.com/oauth/token`, scopes: `sites:read`)

Groups (teams) in an app with auth.groups: true. A group has a key (like team-north), a name, and optionally a role and an entitlement that everyone in it gets on top of their own: the app's code sees env.HYPAMOON.user.groups and inGroup(key), and the extra role and entitlement in is() and has(). A group never gives the admin role (the first role). At most 100 groups per app and 20 groups per person. Admins of the app manage groups on /_hypamoon/admin too. The list has every group with its members.

## Path parameters

- `id` string, uuid, required

## Response `200`

The groups.

- object
  - `data` object[], required
    - `key` string, required
    - `name` string, required
    - `role` string, nullable, required
    - `entitlement` string, nullable, required
    - `member_count` integer, required
    - `created_at` string, required
    - `members` object[]: Who is in the group (at most 200 shown; member_count is always the full number).
      - `id` string, uuid, required
      - `email` string, required
      - `name` string, nullable, required
      - `added_at` string, required

## Other responses

- `401`: Unauthorized: unauthorized, missing_api_key, invalid_api_key, api_key_revoked, project_deleted.
- `403`: Forbidden: project_not_enabled, key_mode_mismatch, missing_scope, verification_required.
- `404`: Not Found: not_found.
- `409`: Conflict: conflict.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.
- `503`: Service Unavailable: service_unavailable.

---

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