# social.grain.admin.listReports

> List reports, newest first. Requires an admin session.

- Kind: query
- Authority: admin.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.listReports)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.listReports/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.listReports/analytics)

## Query (`social.grain.admin.listReports`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `label` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `status` (string)
  - Constraints: default: "open", knownValues: open | resolved | dismissed

### Output (application/json)

- `cursor` (string)
- `reports` (array, required)
  - `items` (ref)
    - Reference: `social.grain.admin.defs#reportView`
- `total` (integer, required): Reports matching, across every page.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List reports, newest first. Requires an admin session.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "reports": {
              "items": {
                "ref": "social.grain.admin.defs#reportView",
                "type": "ref"
              },
              "type": "array"
            },
            "total": {
              "description": "Reports matching, across every page.",
              "type": "integer"
            }
          },
          "required": [
            "reports",
            "total"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "status": {
            "default": "open",
            "knownValues": [
              "open",
              "resolved",
              "dismissed"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.grain.admin.listReports",
  "lexicon": 1
}
```
