# at.happyproto.registry.getPackage

> One package by publisher and slug. A withdrawn package is still returned, flagged `deleted`, because its releases stay resolvable.

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

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

Type: query · GET

### Parameters (query string)

- `actor` (string · at-identifier, required): The publisher, as a DID or a handle. A handle is confirmed in both directions before it is accepted, so one pointed at another publisher's DID cannot show their packages under it.
- `slug` (string, required): The package slug, which is its profile's record key.

### Output (application/json)

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

### Errors

- `PackageNotFound`: No profile is indexed for that publisher and slug.
- `ActorNotFound`: actor is neither a DID nor a handle that resolves to one.
- `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 package by publisher and slug. A withdrawn package is still returned, flagged `deleted`, because its releases stay resolvable.",
      "errors": [
        {
          "description": "No profile is indexed for that publisher and slug.",
          "name": "PackageNotFound"
        },
        {
          "description": "actor is neither a DID nor a handle that resolves to one.",
          "name": "ActorNotFound"
        },
        {
          "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#packageView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "The publisher, as a DID or a handle. A handle is confirmed in both directions before it is accepted, so one pointed at another publisher's DID cannot show their packages under it.",
            "format": "at-identifier",
            "type": "string"
          },
          "slug": {
            "description": "The package slug, which is its profile's record key.",
            "type": "string"
          }
        },
        "required": [
          "actor",
          "slug"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.getPackage",
  "lexicon": 1
}
```
