# at.happyproto.registry.getVersion

> One version of a plugin, by exact version, whatever its lifecycle state or availability.

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

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

Type: query · GET

### Parameters (query string)

- `did` (string · did, required): The publisher.
- `name` (string, required): The project's name, which is the record key of its software.release.project: 1 to 64 lowercase letters, digits and interior hyphens.
  - Constraints: minLength: 1, maxLength: 64
- `version` (string, required): A semver version without build metadata, with an optional lowercase prerelease, such as `1.2.0` or `1.2.0-beta.1`.
  - Constraints: minLength: 1, maxLength: 64

### Output (application/json)

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

### Errors

- `VersionNotFound`: No version of that project is indexed at that version string.
- `NotConfigured`: The registry has no identity configured, 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 version of a plugin, by exact version, whatever its lifecycle state or availability.",
      "errors": [
        {
          "description": "No version of that project is indexed at that version string.",
          "name": "VersionNotFound"
        },
        {
          "description": "The registry has no identity configured, 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#versionView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The publisher.",
            "format": "did",
            "type": "string"
          },
          "name": {
            "description": "The project's name, which is the record key of its software.release.project: 1 to 64 lowercase letters, digits and interior hyphens.",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "version": {
            "description": "A semver version without build metadata, with an optional lowercase prerelease, such as `1.2.0` or `1.2.0-beta.1`.",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "did",
          "name",
          "version"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.getVersion",
  "lexicon": 1
}
```
