# Logo API for Email Clients

> Show sender company logos in email inboxes. Extract the domain from email addresses and display matching brand logos to help users identify senders at a glance.

## Integration Steps

1. **Parse sender domain** — Extract the domain from the sender's email address.
2. **Size appropriately** — Use `?size=32` or `?size=48` for inbox list views, larger for detail views.
3. **Display as avatar** — Use the logo URL directly in avatar components.
4. **Cache locally** — Browser caching via Cache-Control headers ensures logos load instantly on repeat views.

## Benefits

- Instant sender identification from brand logos
- Automatic domain-to-logo resolution
- Monogram fallbacks for personal email addresses
- Small image sizes optimized for inbox views
- Works with any email client framework
- No API key required

## Code Example

```javascript
function getSenderLogo(email) {
  const domain = email.split("@")[1];
  return `https://img.loadlogo.com/${domain}?size=32&format=webp`;
}

// Usage
const logo = getSenderLogo("support@github.com");
// → "https://img.loadlogo.com/github.com?size=32&format=webp"
```

## Related Features

- [Domain Logo Lookup](/features/domain-lookup.md)
- [Smart Monogram Fallbacks](/features/monogram-fallbacks.md)
