# at.happyproto.registry.getRelease

> Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getRelease)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getRelease/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getRelease/examples)

## Definitions

### `at.happyproto.registry.getRelease`

**Type**: `query`

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

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `slug` | `string` | Yes |  |
| `version` | `string` | Yes | Semver without build metadata, exactly as the record key carries it. |

#### Output

**Encoding**: `application/json`

#### 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.

## Raw 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
}
```
