# chat.bsky.group.getJoinLinkPreviews

> Published by [bsky-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:4v4y5r3lwsbtmsxhile2ljac)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.getJoinLinkPreviews)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.getJoinLinkPreviews/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.getJoinLinkPreviews/examples)

## Definitions

### `chat.bsky.group.getJoinLinkPreviews`

**Type**: `query`

Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `codes` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `joinLinkPreviews` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "chat.bsky.group.getJoinLinkPreviews",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "joinLinkPreviews"
          ],
          "properties": {
            "joinLinkPreviews": {
              "type": "array",
              "items": {
                "refs": [
                  "chat.bsky.group.defs#joinLinkPreviewView",
                  "chat.bsky.group.defs#disabledJoinLinkPreviewView",
                  "chat.bsky.group.defs#invalidJoinLinkPreviewView"
                ],
                "type": "union"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "codes"
        ],
        "properties": {
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxLength": 50,
            "minLength": 1
          }
        }
      },
      "description": "Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
