> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List groups

> Find the groups in your workspace.

API referenceApplies to: Workspaces with access management

`GET /api/v1/groups`

Find the groups in your workspace.

## Access

If you use a machine client, request the `query_engine.permissions:read` scope. The caller also needs workspace access. This group API is in beta.

Responses include `X-E6-API-Stability: beta`.

[Choose the right workspace credential](https://docs.e6data.com/api-reference/authentication.md). Ask your workspace administrator whether this API is available in your workspace.

## Request

No request body. The optional `fields` query selects fields returned for each group.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --proto '=https' --silent --show-error --fail-with-body \
  --request GET \
  --header @- \
  "$WORKSPACE_URL/api/v1/groups?fields=name,displayName,memberCount" <<< "Authorization: Bearer $ACCESS_TOKEN"
```

## Response

HTTP `200`. Example response with sample values:

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "items": [
    {
      "name": "analysts",
      "displayName": "Analysts",
      "memberCount": 1
    }
  ],
  "total": 1
}
```

## If the request fails

For `401`, check the workspace URL and token. For `403`, check the `query_engine.permissions:read` scope if you use a machine client, then ask your administrator to check group access.

[Return to the API endpoint directory](https://docs.e6data.com/api-reference/endpoints.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.