# at.happyproto.registry.getPackage

> 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.getPackage)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getPackage/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.getPackage/examples)

## Definitions

### `at.happyproto.registry.getPackage`

**Type**: `query`

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

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes | 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` | Yes | The package slug, which is its profile's record key. |

#### Output

**Encoding**: `application/json`

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

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