# garden.lexicon.browse

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.browse)
- [Documentation](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.browse/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.browse/examples)

## Definitions

### `garden.lexicon.browse`

**Type**: `query`

Browse indexed lexicons whose NSID begins with a segment-aligned prefix. Segment-aligned means 'community.lexicon' matches 'community.lexicon.foo' but not 'community.lexiconfoo'. Results are sorted by NSID ascending.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `cursor` | `string` | No | Opaque pagination cursor from a prior response. |
| `prefix` | `string` (nsid) | Yes | NSID prefix, one or more dot-separated segments. Matches are segment-aligned. |
| `lexiconType` | `string` | No | Filter by lexicon definition type. Omit to include all types. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `lexicons` | `array` | Yes |  |

#### Errors

- **InvalidPrefix**: Prefix is not a valid NSID segment sequence.
- **InvalidCursor**: Cursor is malformed or does not decode.

## Raw Schema

```json
{
  "id": "garden.lexicon.browse",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidPrefix",
          "description": "Prefix is not a valid NSID segment sequence."
        },
        {
          "name": "InvalidCursor",
          "description": "Cursor is malformed or does not decode."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "lexicons"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "maxLength": 1024
            },
            "lexicons": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "nsid"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "prefix"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string",
            "maxLength": 1024,
            "description": "Opaque pagination cursor from a prior response."
          },
          "prefix": {
            "type": "string",
            "format": "nsid",
            "description": "NSID prefix, one or more dot-separated segments. Matches are segment-aligned."
          },
          "lexiconType": {
            "type": "string",
            "maxLength": 32,
            "description": "Filter by lexicon definition type. Omit to include all types.",
            "knownValues": [
              "record",
              "query",
              "procedure",
              "subscription",
              "permission-set"
            ]
          }
        }
      },
      "description": "Browse indexed lexicons whose NSID begins with a segment-aligned prefix. Segment-aligned means 'community.lexicon' matches 'community.lexicon.foo' but not 'community.lexiconfoo'. Results are sorted by NSID ascending."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
