# place.stream.badge.getValidBadges

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

- Kind: query
- Authority: badge.stream.place
- Lexicon: 1
- Published by [stream.place](https://lexicon.garden/identity/did:plc:rbvrr34edl5ddpuwcubjiost), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.badge.getValidBadges)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.badge.getValidBadges/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.badge.getValidBadges/analytics)

## Query (`place.stream.badge.getValidBadges`)

Type: query · GET

### Parameters (query string)

- `streamer` (string · did): Optional DID of the streamer for context-specific badges (mod, vip, etc)

### Output (application/json)

- `badges` (array, required)
  - `items` (ref)
    - Reference: `place.stream.badge.defs#badgeView`

## Schema

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