# at.happyproto.registry.listReleases

> Every release of a package, newest-indexed first, including withdrawn ones flagged `deleted` — a client resolving an exact version needs to see that it exists.

- Kind: query
- Authority: registry.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.listReleases)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.listReleases/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.listReleases/analytics)

## Query (`at.happyproto.registry.listReleases`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `did` (string · did, required)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `slug` (string, required)

### Output (application/json)

- `cursor` (string)
- `releases` (array, required)
  - `items` (ref)
    - Reference: `at.happyproto.registry.defs#releaseView`

### Errors

- `NotConfigured`: The registry instance has no identity configured (HAPPYPROTO_DID), so it cannot read its own state. An operator problem, not a caller's.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Every release of a package, newest-indexed first, including withdrawn ones flagged `deleted` — a client resolving an exact version needs to see that it exists.",
      "errors": [
        {
          "description": "The registry instance has no identity configured (HAPPYPROTO_DID), so it cannot read its own state. An operator problem, not a caller's.",
          "name": "NotConfigured"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "releases": {
              "items": {
                "ref": "at.happyproto.registry.defs#releaseView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "releases"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "did": {
            "format": "did",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "did",
          "slug"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.listReleases",
  "lexicon": 1
}
```
