# place.stream.badge.getIssuedBadges

> Returns badges issued to the authenticated user, organized by display slot. Also indicates which badges are currently selected in the user's chat profile.

- 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.getIssuedBadges)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.badge.getIssuedBadges/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rbvrr34edl5ddpuwcubjiost/place.stream.badge.getIssuedBadges/analytics)

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

Type: query · GET

### Parameters (query string)

- `streamer` (string · did): DID of the streamer channel to compute the server badge against.

### Output (application/json)

- `server` (ref): Computed server badge (streamer, mod, or bot) for the given streamer context. Absent if the user has no server role.
  - Reference: `place.stream.badge.defs#badgeView`
- `streamer` (ref, required): Streamer-issued badges (e.g. VIP) available to the user.
  - Reference: `place.stream.badge.defs#badgeSlot`
- `user` (ref, required): Globally-issued cosmetic badges (e.g. event) available to the user.
  - Reference: `place.stream.badge.defs#badgeSlot`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Returns badges issued to the authenticated user, organized by display slot. Also indicates which badges are currently selected in the user's chat profile.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "server": {
              "description": "Computed server badge (streamer, mod, or bot) for the given streamer context. Absent if the user has no server role.",
              "ref": "place.stream.badge.defs#badgeView",
              "type": "ref"
            },
            "streamer": {
              "description": "Streamer-issued badges (e.g. VIP) available to the user.",
              "ref": "place.stream.badge.defs#badgeSlot",
              "type": "ref"
            },
            "user": {
              "description": "Globally-issued cosmetic badges (e.g. event) available to the user.",
              "ref": "place.stream.badge.defs#badgeSlot",
              "type": "ref"
            }
          },
          "required": [
            "streamer",
            "user"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "streamer": {
            "description": "DID of the streamer channel to compute the server badge against.",
            "format": "did",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "place.stream.badge.getIssuedBadges",
  "lexicon": 1
}
```
