# place.stream.badge.getIssuedBadges

> Published by [did:web:stream.place](https://lexicon.garden/identity/did:web:stream.place)

## Links

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

## Definitions

### `place.stream.badge.getIssuedBadges`

**Type**: `query`

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

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `streamer` | `string` (did) | No | DID of the streamer channel to compute the server badge against. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `user` | `ref` → `place.stream.badge.defs#badgeSlot` | Yes | Globally-issued cosmetic badges (e.g. event) available to the user. |
| `server` | `ref` → `place.stream.badge.defs#badgeView` | No | Computed server badge (streamer, mod, or bot) for the given streamer context. Absent if the user has no server role. |
| `streamer` | `ref` → `place.stream.badge.defs#badgeSlot` | Yes | Streamer-issued badges (e.g. VIP) available to the user. |

## Raw Schema

```json
{
  "id": "place.stream.badge.getIssuedBadges",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "streamer",
            "user"
          ],
          "properties": {
            "user": {
              "ref": "place.stream.badge.defs#badgeSlot",
              "type": "ref",
              "description": "Globally-issued cosmetic badges (e.g. event) available to the user."
            },
            "server": {
              "ref": "place.stream.badge.defs#badgeView",
              "type": "ref",
              "description": "Computed server badge (streamer, mod, or bot) for the given streamer context. Absent if the user has no server role."
            },
            "streamer": {
              "ref": "place.stream.badge.defs#badgeSlot",
              "type": "ref",
              "description": "Streamer-issued badges (e.g. VIP) available to the user."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "streamer": {
            "type": "string",
            "format": "did",
            "description": "DID of the streamer channel to compute the server badge against."
          }
        }
      },
      "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."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
