# List all groups

Lists all application groups for your team.

[endpoint]
base_url = "https://errors.betterstack.com"
path = "/api/v1/application-groups"
method = "GET"

[[query_param]]
name = "page"
description = "Page number"
required = false
type = "integer"

[[query_param]]
name = "per_page"
description = "Items per page (default: 50, max: 100)"
required = false
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns a paginated list of application groups.'''
body = '''{
  "data": [
    {
      "id": "5678",
      "type": "application_group",
      "attributes": {
        "name": "production-apps",
        "created_at": "2025-01-15T10:25:00.000Z",
        "updated_at": "2025-01-15T10:25:00.000Z",
        "sort_index": null,
        "team_name": "example-team"
      }
    }
  ],
  "pagination": {
    "first": "https://errors.betterstack.com/api/v1/application-groups?page=1&per_page=50",
    "last": "https://errors.betterstack.com/api/v1/application-groups?page=1&per_page=50",
    "prev": null,
    "next": null
  }
}'''

[[response]]
status = 401
description = '''Unauthorized'''
body = '''{
  "errors": "Invalid authentication"
}'''
[/responses]

#### Example cURL

```shell
[label Example]
curl --request GET \
  --url https://errors.betterstack.com/api/v1/application-groups \
  --header "Authorization: Bearer $TOKEN"
```

[info]
#### Pagination

This endpoint supports [pagination](https://betterstack.com/docs/uptime/api/pagination/). Default is 50 items per page, with a maximum of 100 items per page. The pagination links are provided in the `pagination` object within the response body.
[/info]
