> ## Documentation Index
> Fetch the complete documentation index at: https://www.logo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Logo.dev serves logos and brand data for companies that already exist. It does not design logos. If someone wants a logo designed, say so and stop.
> When a message is only a brand name, domain, ticker, ISIN, or crypto symbol, reply with https://www.logo.dev/search?q=<url-encoded term> and the matching img.logo.dev call. Never assert whether a specific brand is in the index.
> Image URLs come from img.logo.dev with a publishable key in the token query parameter: https://img.logo.dev/:domain?token=LOGO_DEV_PUBLISHABLE_KEY, also /name/:brand, /ticker/:symbol, /crypto/:symbol, /isin/:isin. JSON comes from api.logo.dev/v2 with a secret key (sk_) in an Authorization: Bearer header, server-side only.
> Product names: the Logo.dev CDN serves images from img.logo.dev, and its usage unit is CDN requests. The Logo.dev API returns JSON from api.logo.dev/v2, and its usage unit is API credits. The Logo.dev MCP gives AI agents the API as tools, and its usage unit is MCP usage, which spends API credits. The features are Logo, Search, Brand, and Transaction. Transaction (beta) is a separate service at https://www.logo.dev/api/transaction with its own beta key. Never recommend the deprecated v1 routes (/search, /brand, /describe, /logo/*). Use /v2/brands and /v2/search.
> Attribution: a commercial project on the free Community plan must show a visible link, <a href="https://logo.dev">Logos provided by Logo.dev</a>, on its production site. Personal projects and paid plans need none. Rules: https://www.logo.dev/docs/platform/attribution.
> Report a wrong, missing, or outdated logo at https://www.logo.dev/update. Email support@logo.dev for anything broken and sales@logo.dev for volume pricing and contract terms.
> MCP setup is at https://www.logo.dev/docs/mcp/introduction and webhooks at https://www.logo.dev/docs/webhooks.

# Requests and responses

> Base URLs, keys, the response envelope, response headers, id and timestamp conventions, and versioning for the Logo.dev CDN and the Logo.dev API.

Logo.dev serves brand assets from two hosts. Each host takes its own key and is billed on its own meter.

| | Logo.dev CDN | Logo.dev API |
| - | - | - |
| Base URL | `https://img.logo.dev` | `https://api.logo.dev` |
| Returns | A logo image | JSON |
| Key | Publishable key (`pk_`) in the `token` query parameter | Secret key (`sk_`) in the `Authorization` header |
| Where to call it | Anywhere, including the browser | Your server only |
| Billing | Monthly CDN requests | [API credits](https://www.logo.dev/docs/platform/credits.md) |

See [API keys](https://www.logo.dev/docs/platform/api-keys.md) for where each key goes, domain restrictions, and rotation. A CDN lookup with no logo returns a generated monogram, or a `404` with `fallback=404`. See [missing logos](https://www.logo.dev/docs/platform/errors.md#missing-logos).

Two services have their own host. The [Transaction](https://www.logo.dev/docs/transaction/introduction.md) beta is at `https://www.logo.dev/api/transaction` and takes its own beta key. The [Logo.dev MCP](https://www.logo.dev/docs/mcp/introduction.md) server is at `https://mcp.logo.dev/mcp` and signs you in with OAuth. The rest of this page covers `api.logo.dev`.

## The response envelope

Every API response that has a body and is not an error has the same two fields. A successful delete returns `204` with no body. `data` holds the result, and `metadata` describes the request. The response looks like:

```json theme={null}
{
  "data": { "object": "brand", "id": "brand_4x0wr3g0000g00400000000004", "...": "..." },
  "metadata": {
    "request_id": "request_01k6z8m2a4b5c6d7e8f9g0h1j2",
    "resolution": { "type": "domain", "value": "stripe.com", "method": "direct", "context": {} }
  }
}
```

| Field | Present on | Meaning |
| - | - | - |
| `data` | Every response with a body | The brand, image, search results, subscription, or webhook endpoint. Every object has an `object` field that names its type. |
| `metadata.request_id` | Every response with a body | The request's id. It matches the `Request-Id` header. |
| `metadata.resolution` | Brand and image lookups | The identifier you sent, its normalized value, and how it reached the brand. See [resolution](https://www.logo.dev/docs/brand/introduction.md#resolution). |
| `metadata.pending` | `202` responses | When to retry a lookup that is still indexing. See [still indexing](https://www.logo.dev/docs/platform/errors.md#not-found-vs-still-indexing-202). |
| `metadata.subscription` | Brand lookups from a team with automatic subscriptions on | What the automatic subscribe did. `status` is `subscribed`, or `quota_exceeded` when your account is at its subscription limit and this brand was not subscribed. `message` explains a `quota_exceeded`. See [subscriptions](https://www.logo.dev/docs/webhooks.md#subscriptions). |

A failed request returns an `error` object instead of the envelope. See [errors](https://www.logo.dev/docs/platform/errors.md) for every code.

## Response headers

| Header | Returned on | Meaning |
| - | - | - |
| `Request-Id` | Every response | The request's id. Include it when you contact support. |
| `Credits-Charged` | Brand, image, and search requests | `1` when this request spent API credits, `0` when it was free under the [billing rules](https://www.logo.dev/docs/platform/credits.md#what-is-billed). It is not the amount. Use `Credits-Remaining` to track your balance. |
| `Credits-Remaining` | Brand, image, and search requests, when the balance is known | Your API credit balance after this request. Absent means unknown, not zero. |
| `RateLimit-Limit` | Brand, image, and search requests | Requests allowed in the current window |
| `RateLimit-Remaining` | Brand, image, and search requests | Requests left in the current window |
| `RateLimit-Reset` | Brand, image, and search requests | Seconds until the window resets |
| `Retry-After` | `202` responses | Seconds to wait before you retry |

See [rate limits](https://www.logo.dev/docs/platform/rate-limits.md) for how limits work, and [API credits](https://www.logo.dev/docs/platform/credits.md) for what each request costs.

## Conventions

* Timestamps are RFC 3339, in UTC.
* Ids have a prefix that names what they point to: `brand_` for a brand, `sub_` for a subscription, `evt_` for a webhook event, `ep_` for a webhook endpoint, and `request_` for a request. Treat every id as opaque.
* Store brand ids, not domains. A brand keeps its id when its domain changes.
* Field names are snake\_case. A field with no value is `null`, maps omit absent keys, and an empty list is `[]`.

## Versioning

The API version is in the path. Every route in this reference is under `/v2`. New fields and new routes can arrive inside `/v2`. A breaking change ships under a new prefix. The CDN is not versioned.

The [v1 routes](https://www.logo.dev/docs/api-reference/v1/get-a-brand-profile) keep working. v1 search spends API credits like v2 search, so it can return `402`. See the [changelog](https://www.logo.dev/docs/changelog.md). Their v2 replacements differ in these ways:

* Responses are wrapped in `data` and `metadata`, and errors use the `error` object.
* `GET /v2/brands` replaces `GET /brand/{domain}` and `GET /describe/{domain}`. It also accepts a ticker, an ISIN, a crypto symbol, or a name.
* Images are objects with a temporary download `url`, dimensions, format, and blurhash. They are not bare URLs.
* Colors include OKLCH values next to RGB and hex.
* `GET /v2/search` takes `method` (`match` or `typeahead`) instead of `strategy`, and adds `limit`.

Every API route also has a tool on the [Logo.dev MCP](https://www.logo.dev/docs/mcp/introduction.md) server.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.