# town.delve.membership.getMembership

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.getMembership)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.getMembership/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.getMembership/examples)

## Definitions

### `town.delve.membership.getMembership`

**Type**: `query`

The requesting account's standing in the town. Requires auth.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `enabled` | `boolean` | Yes | Whether this AppView admits accounts by membership at all. |
| `membership` | `ref` → `town.delve.membership.defs#membership` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The requesting account's standing in the town. Requires auth.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "enabled": {
              "description": "Whether this AppView admits accounts by membership at all.",
              "type": "boolean"
            },
            "membership": {
              "ref": "town.delve.membership.defs#membership",
              "type": "ref"
            }
          },
          "required": [
            "enabled"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "town.delve.membership.getMembership",
  "lexicon": 1
}
```
