# at.happyproto.registry.getRelease

> One release by exact version. Served whatever its status, including `deleted`: that is the left-pad protection the registry exists for.

- 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.getRelease)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getRelease/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getRelease/analytics)

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

Type: query · GET

### Parameters (query string)

- `did` (string · did, required)
- `slug` (string, required)
- `version` (string, required): Semver without build metadata, exactly as the record key carries it.

### Output (application/json)

- `schema` (ref)
  - Reference: `at.happyproto.registry.defs#releaseView`

### Errors

- `ReleaseNotFound`: No release is indexed at that version.
- `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": "One release by exact version. Served whatever its status, including `deleted`: that is the left-pad protection the registry exists for.",
      "errors": [
        {
          "description": "No release is indexed at that version.",
          "name": "ReleaseNotFound"
        },
        {
          "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": {
          "ref": "at.happyproto.registry.defs#releaseView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "version": {
            "description": "Semver without build metadata, exactly as the record key carries it.",
            "type": "string"
          }
        },
        "required": [
          "did",
          "slug",
          "version"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.getRelease",
  "lexicon": 1
}
```
