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

# List a group's leads

> GET /v2/groups/{id}/leads lists the leads of one group.

```
GET https://api.solidroad.com/v2/groups/{id}/leads
```

Scope: `groups:read`.

The list holds the people who lead this group. A lead is listed on the group that they lead, not on the groups under it. A lead has no date, so the list sorts on `personId`.

## Path parameters

| Parameter | Type | Meaning |
| - | - | - |
| `id` | string | The group ID: `grp_` and a UUID. |

## Query parameters

| Parameter | Type | Default | Meaning |
| - | - | - | - |
| `limit` | integer | `50` | 1 to 100 records on a page. |
| `cursor` | string | none | `nextCursor` from the previous page. |
| `order` | string | `desc` | `asc` or `desc` on `personId`. |
| `filter` | string | none | A CEL expression over the fields below. |

Read [Lists](https://solidroad.mintlify.site/api-reference/v2/lists.md) for how the parameters work, and [Filtering](https://solidroad.mintlify.site/api-reference/v2/filtering.md) for the filter syntax.

## Filter fields

| Field | Kind | Can be empty | Values |
| - | - | - | - |
| `personId` | ID | No | A person ID, `ppl_…` |

These are the only fields that you can filter on. Read [Filtering](https://solidroad.mintlify.site/api-reference/v2/filtering.md) for the syntax and the operators that each kind takes.

## Request

```bash theme={null}
curl --get https://api.solidroad.com/v2/groups/grp_00000000-0000-4000-8000-000000000002/leads \
  -H "Authorization: Bearer $SOLIDROAD_API_KEY" \
  --data-urlencode "limit=100"
```

## Response

```json theme={null}
{
  "data": [
    {
      "object": "group_lead",
      "groupId": "grp_00000000-0000-4000-8000-000000000002",
      "personId": "ppl_00000000-0000-4000-8000-000000000001"
    }
  ],
  "hasMore": false
}
```

## Group lead object

A row has no `id` of its own. The pair of `groupId` and `personId` identifies it.

| Field | Type | When present | Meaning |
| - | - | - | - |
| `object` | string | Always | Always `group_lead`. |
| `groupId` | string | Always | The group ID, `grp_…`. |
| `personId` | string | Always | The lead's [person](https://solidroad.mintlify.site/api-reference/v2/endpoint/people/get.md) ID, `ppl_…`. |

## Errors

| Status | `code` | Cause |
| - | - | - |
| 400 | `invalid_request` | A parameter, the filter or the cursor is not valid. |
| 401 | `unauthorized` | The API key is missing or not valid. |
| 403 | `insufficient_scope` | The key does not have `groups:read`. |
| 404 | `not_found` | No group with this ID is in your workspace. |
| 429 | `rate_limited` | You sent too many requests. |

Read [Errors](https://solidroad.mintlify.site/api-reference/v2/errors.md) for every code.


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