{
"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": "The namespace or NSID to resolve, e.g. 'app.bsky.feed.post'. Shorter prefixes such as 'app.bsky' are accepted too, which is why this is not format 'nsid'."
}
}
},
"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, 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
}