# List error groups

`GET /v1/projects/{project_id}/groups`

Requires role member or higher.

Newest last_seen first. A cursor that is not a group of the project is 422.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `member` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `cursor` | query | string | no |  |
| `limit` | query | integer | no |  |
| `status` | query | string | no | One status or a comma-separated list, e.g. open,regressed. |
| `severity` | query |  | no |  |
| `project_id` | path | string | yes |  |

## Responses

### 200

Error groups, most recently seen first.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "Error groups, most recently seen first.",
  "properties": {
    "data": {
      "items": {
        "additionalProperties": false,
        "description": "An error group with its latest classification.",
        "properties": {
          "classification": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "The latest classification of an error group.",
                "properties": {
                  "category": {
                    "type": "string"
                  },
                  "classified_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "enum": [
                          "new"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "spike"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "regression"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "recurrence"
                        ],
                        "type": "string"
                      }
                    ]
                  },
                  "severity": {
                    "anyOf": [
                      {
                        "enum": [
                          "critical"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "high"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "medium"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "low"
                        ],
                        "type": "string"
                      }
                    ]
                  },
                  "severity_confidence": {
                    "type": "number"
                  },
                  "severity_source": {
                    "anyOf": [
                      {
                        "enum": [
                          "jev"
                        ],
                        "type": "string"
                      },
                      {
                        "enum": [
                          "llm"
                        ],
                        "type": "string"
                      }
                    ]
                  },
                  "transient_probability": {
                    "type": "number"
                  }
                },
                "required": [
                  "severity",
                  "severity_source",
                  "severity_confidence",
                  "category",
                  "transient_probability",
                  "reason",
                  "classified_at"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "event_count": {
            "type": "integer"
          },
          "fatal": {
            "type": "boolean"
          },
          "fingerprint": {
            "type": "string"
          },
          "first_seen": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "pattern": "^grp_[0-7][0-9a-hjkmnp-tv-z]{25}$",
            "type": "string"
          },
          "last_seen": {
            "format": "date-time",
            "type": "string"
          },
          "level": {
            "anyOf": [
              {
                "enum": [
                  "error"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "warn"
                ],
                "type": "string"
              }
            ]
          },
          "message_template": {
            "type": "string"
          },
          "project_id": {
            "pattern": "^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$",
            "type": "string"
          },
          "service": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "open"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "resolved"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "ignored"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "regressed"
                ],
                "type": "string"
              }
            ]
          },
          "status_changed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "top_frames": {
            "description": "Up to 5 function@file frames.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "project_id",
          "fingerprint",
          "service",
          "level",
          "fatal",
          "message_template",
          "top_frames",
          "status",
          "status_changed_at",
          "event_count",
          "first_seen",
          "last_seen",
          "created_at",
          "classification"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "data",
    "next_cursor"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 422

validation-failed: the request does not match the schema.

Problem type: [validation-failed](https://docs.dlogify.com/errors/validation-failed.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/projects/{project_id}/groups" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/error-groups/listErrorGroups
