# place.stream.badge.getValidBadges

> Published by [did:web:longos.iameli.link](https://lexicon.garden/identity/did:web:longos.iameli.link)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.badge.getValidBadges)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.badge.getValidBadges/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.badge.getValidBadges/examples)

## Definitions

### `place.stream.badge.getValidBadges`

**Type**: `query`

Get valid badges for the authenticated user, optionally in the context of a specific streamer's chat

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `streamer` | `string` (did) | No | Optional DID of the streamer for context-specific badges (mod, vip, etc) |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "place.stream.badge.getValidBadges",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "badges"
          ],
          "properties": {
            "badges": {
              "type": "array",
              "items": {
                "ref": "place.stream.badge.defs#badgeView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "streamer": {
            "type": "string",
            "format": "did",
            "description": "Optional DID of the streamer for context-specific badges (mod, vip, etc)"
          }
        }
      },
      "description": "Get valid badges for the authenticated user, optionally in the context of a specific streamer's chat"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
