# tech.waow.brand.getIcon

> Published by [waow.tech](https://lexicon.garden/identity/did:plc:siv7zbedip4vcet4v67piibr)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:siv7zbedip4vcet4v67piibr/tech.waow.brand.getIcon)
- [Documentation](https://lexicon.garden/lexicon/did:plc:siv7zbedip4vcet4v67piibr/tech.waow.brand.getIcon/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:siv7zbedip4vcet4v67piibr/tech.waow.brand.getIcon/examples)

## Definitions

### `tech.waow.brand.getIcon`

**Type**: `query`

The icon for a namespace, as an image. Unlike getBrand this returns bytes, so the endpoint URL can be used directly as an <img> src with no client code. Always succeeds for a well-formed namespace or identity, falling back to a generated monogram. The X-Brand-Source header carries the provenance getBrand would have reported. Does not require auth; results are not personalized.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `namespace` | `string` | Yes | A namespace, NSID, handle or DID to resolve. A namespace is reverse-DNS ('fm.plyr.song'); a handle is not ('plyr.fm'). Both are accepted and are distinguished exactly, since a namespace cannot resolve as an identity. |

#### Output

**Encoding**: `*/*`

#### Errors

- **InvalidNamespace**

## Raw Schema

```json
{
  "id": "tech.waow.brand.getIcon",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidNamespace"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "type": "params",
        "required": [
          "namespace"
        ],
        "properties": {
          "namespace": {
            "type": "string",
            "maxLength": 317,
            "description": "A namespace, NSID, handle or DID to resolve. A namespace is reverse-DNS ('fm.plyr.song'); a handle is not ('plyr.fm'). Both are accepted and are distinguished exactly, since a namespace cannot resolve as an identity."
          }
        }
      },
      "description": "The icon for a namespace, as an image. Unlike getBrand this returns bytes, so the endpoint URL can be used directly as an <img> src with no client code. Always succeeds for a well-formed namespace or identity, falling back to a generated monogram. The X-Brand-Source header carries the provenance getBrand would have reported. Does not require auth; results are not personalized."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
