# Events in a group
List events belonging to a group, with the group membership metadata and an inline event summary for each row.

GET /groups/:slug/events

## Path Parameters
- slug (string, required): The group slug

## Query Parameters
- limit (number): Maximum number of memberships to return (1-100)

## Authorization
read:groups

## Request Examples

### curl
```curl
curl -H "Authorization: Bearer INTERVALS_PARTNER_API_KEY" \
  https://api.intervals.run/groups/friday-night-lights/events?limit=20
```

### JavaScript
```javascript
const slug = "friday-night-lights";
const res = await fetch(
  `https://api.intervals.run/groups/${slug}/events`,
  {
  headers: { Authorization: "Bearer INTERVALS_PARTNER_API_KEY" },
  }
);
const { data } = await res.json();
```

## Responses

### 200 (200)
```json
{
  "data": [
    {
      "groupId": "g14abc789def012",
      "eventId": "e72tuv901wxy234",
      "displayOrder": 1,
      "event": {
        "_id": "e72tuv901wxy234",
        "name": "Lakefront 5K - June 14",
        "slug": "lakefront-5k-june-14",
        "type": "race",
        "date": "2025-06-14",
        "organizationId": "k57abc123def456"
      }
    }
  ]
}
```

### 404 (404)
```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Group not found"
  }
}
```