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

# Card Art

> Use your own approved designs for Apple Pay and Google Pay, choose one for each card, and show it in your app

> [!WARNING]
>
> **Cards is available in sandbox only while we finish development.** Dakota enables Cards per
> account. The Cards endpoints are in the [API reference](https://docs.dakota.xyz/api-reference/introduction.md), marked
> **Sandbox only**. Endpoints, fields, and flows can still change before release.

Card art is the design a cardholder sees when they add a card to Apple Pay or Google Pay. You can have several approved designs and choose one for each card. A card with no card art of its own uses Dakota's standard art.

Every design needs approval from Dakota, our bank partner, and Visa before you can use it, so card art starts with your Dakota contact rather than an API call.

```mermaid theme={null}
flowchart LR
    A["You send your artwork"] --> B["Dakota and the bank review it"]
    B --> C["Visa reviews it"]
    C --> D["Dakota sets it up"]
    D --> E["It appears in GET /card_art"]
    E --> F["You use its card_art_id"]
```

## Add card art

1. **Prepare your artwork** using the [requirements](#artwork-requirements) below. Most delays come from artwork that misses them.
2. **Send it to your Dakota contact**, with the [details listed below](#what-to-send).
3. **Wait for review.** This usually takes 5 to 10 business days. If a reviewer asks for a change, your contact tells you what to fix.
4. **Find its ID.** Once approved, the art appears in [`GET /card_art`](#find-your-card-art) and on the **Card art** tab of the Cards page in your dashboard, and your contact lets you know.

Planning several designs? Tell your contact up front.

### Artwork requirements

| | |
| - | - |
| **File** | PNG, RGB color, under 3 MB |
| **Size** | 1536 x 969 pixels, landscape |
| **Corners** | Square. Wallets round them for you. |
| **Visa Brand Mark** | Required, in the upper left or upper right, and legible without distortion. Use Visa's own artwork from [brand.visa.com](https://brand.visa.com). |
| **Product identifier** | `DEBIT`, as Visa requires for debit cards |
| **Your brand** | Use only logos and images you own or have licensed. |
| **Not allowed** | The cardholder's name, a card number, or an expiry date, real or sample. Chip contacts, holograms, shading, or other effects that imitate a physical card. |

The [Visa Digital Card Brand Standards](https://corporate.visa.com/content/dam/VCOM/corporate/about-visa/documents/visa-digital-card-brand-standards-sept2025.pdf) have the full rules.

### What to send

* **The artwork.** Visa reviews wallet art and in-app art separately. You can use one image for both, or send one of each and say which is which.
* **The products it's for:** business cards, consumer cards, or both.
* **Your app icon:** 100 x 100 pixels, PNG.
* **A short and a long description of the card.**
* **Links** to your privacy policy and your terms.
* **Your support details:** a customer service phone number (required), a support email, a website, and a fraud phone number if it's different.

## Find your card art

```json theme={null}
GET /card_art?cardholder_base=commercial

{
  "data": [{
    "id": "3BqZx1mWtY8pRnVs2LkHd7cFj0a",
    "name": "Acme Midnight",
    "status": "active",
    "is_default": true,
    "cardholder_bases": ["commercial", "consumer"],
    "image_url": "https://card-art.dakota.xyz/a1b2c3.png",
    "background_color": "#0b1623",
    "text_color": "#ffffff",
    "created_at": 1758211200,
    "updated_at": 1758211260
  }],
  "meta": { "total_count": 1, "has_more_after": false, "has_more_before": false }
}
```

| Field | Meaning |
| - | - |
| `id` | The `card_art_id` to send when you create or update a card. The same ID works for every product in `cardholder_bases`. |
| `status` | `active` can be chosen. `retired` can't, and cards that already use it keep it. |
| `is_default` | Used for new cards that don't name any card art. |
| `cardholder_bases` | `commercial` covers business customers, and `consumer` covers individuals. |
| `image_url` | The approved image. See [Show it in your app](#show-it-in-your-app). Treat it as an opaque URL. |
| `background_color` | The card's dominant color, as `#rrggbb` |
| `text_color` | A readable text color on the card, as `#rrggbb` |
| `created_at`, `updated_at` | Unix timestamps in seconds |

The `cardholder_base` filter is optional, and the list is paginated like other lists. Retired card art stays in the list so a card that uses it can still be read, so check `status` before you offer a design for a new card. To read one design, use `GET /card_art/{card_art_id}`. An ID that is unknown, or that belongs to another client, returns `404`. IDs differ between sandbox and production.

## Issue a card with it

Add `card_art_id` when you [create a card](https://docs.dakota.xyz/documentation/cards/issuing.md#create-a-card):

```json theme={null}
POST /customers/{customer_id}/cards

{
  "cardholder_id": "31TgvufZK3gDXBcA3BnSeLWiSn7",
  "wallet_id": "2tQRvK9pRzM4nVbW8sHqL5jXmYt",
  "card_art_id": "3BqZx1mWtY8pRnVs2LkHd7cFj0a"
}
```

If you leave it out, the card uses your default art when it's approved for that customer's type. Otherwise it uses Dakota's standard art, and `card_art_id` is `null` on the card.

| Refusal | Cause |
| - | - |
| `404 card-art-not-found` | The ID doesn't match any of your card art. |
| `409 card-art-not-active` | The card art is retired. |
| `409 card-art-base-not-approved` | The card art isn't approved for this customer's type: business or individual. |
| `409 card-art-changed` | You retried a create with the same `X-Idempotency-Key`, and this attempt resolves to different art than the first one, for example because your default art changed in between. Retry with the first attempt's art: the same `card_art_id`, or no `card_art_id` if your default is what it was then. If you can't, for example because the first attempt got Dakota's standard art and you have since set a default, or its art has since been retired, contact Dakota. |
| `422 card-art-rejected` | The card issuer couldn't use the card art. Choose other card art, or contact Dakota. |

## Change a card's art

```json theme={null}
PATCH /cards/{card_id}

{ "card_art_id": "3BrK7aQeNc2VwX9mTu4ZyPd1sHf" }
```

Leaving `card_art_id` out, or sending `null`, keeps the card's current art. Once a card has art, you can move it to other art but can't remove it. The same refusals apply, except `card-art-changed`, and a closed card refuses with `403 card-closed`. The new art is shown the next time the card is added to a wallet, and wallets the card is already in are updated too. You receive `card.updated` with a new `version`.

## Show it in your app

Card art mainly controls what Apple Pay and Google Pay show. You don't have to use it in your own app. If you want to, the card response includes what you need:

```json theme={null}
GET /cards/{card_id}

{
  "id": "2tQRvvnYkN6edEJUTmF1LzTj2ug",
  "last4": "4242",
  "card_art_id": "3BqZx1mWtY8pRnVs2LkHd7cFj0a",
  "card_art": {
    "id": "3BqZx1mWtY8pRnVs2LkHd7cFj0a",
    "name": "Acme Midnight",
    "image_url": "https://card-art.dakota.xyz/a1b2c3.png",
    "background_color": "#0b1623",
    "text_color": "#ffffff"
  }
}
```

| Field | Use it for |
| - | - |
| `image_url` | The card's background. It loads without an API key, from a browser or a mobile app. Use the URL as returned. |
| `background_color` | The color to show while the image loads |
| `text_color` | The card number and labels you draw over the image |

`card_art` is `null` on a card with no art of its own. The art never contains a card number, a name, or an expiry date, so your app adds those.

There are three ways to show a card's art in your app. Pick the one that fits your design.

| Way | What it is | Good when |
| - | - | - |
| **Use Dakota's image** | Draw `image_url` as the card background. | You want the same card your cardholder sees in their wallet. |
| **Use your own image** | Host an image of your own and draw it as the background. | Your app shows a different design from the one in the wallet. |
| **Draw the face with CSS** | Build the card face in your app from `background_color`, `text_color` and your own styling. | You want no image request at all. |

Whichever way you choose, draw the masked number in `text_color` and add the labels yourself. Talk to your Dakota contact before you draw your own card face with the Visa Brand Mark, because it has to meet Visa's brand standards and may need its own review.

### The image host

Dakota's images are served from these hosts. If your page sets a Content-Security-Policy, allow the host in `img-src`.

| Environment | Image host |
| - | - |
| Production | `https://card-art.dakota.xyz` |
| Sandbox | `https://card-art.sandbox.dakota.xyz` |

Images are cached for up to a day. Every image has its own `image_url`, so when you change a card's art, the card's new `image_url` shows the new image straight away.

### With Cards.js

Pass `card_art` from the card response as the `art` option. Cards.js draws the image, shows `background_color` while it loads, and sets the text color on the face and inside the revealed value frames:

```tsx theme={null}
<CardDetails key={card.id} last4={card.last4} art={card.card_art} />
```

The `art` option accepts an image from any `https` host, so it works with Dakota's `image_url` and with your own hosted image. Pass your own image like this:

```ts theme={null}
const card = cards.cardDetails({
  last4: '4242',
  art: {
    image_url: 'https://assets.example.com/cards/midnight.png',
    background_color: '#0b1623',
    text_color: '#ffffff',
  },
});
```

A few things to know:

* **Validation is all-or-nothing.** If any field isn't accepted, Cards.js ignores the whole value and keeps the default face.
* **Server rendering shows the default face first.** The art appears when the page hydrates.
* **Use a `key` for each card** when one component shows several cards.
* **Plain JS** paints the `.dk-card` element that contains the first mount target.
* **Your `theme.color` wins** over the art's `text_color`, which is otherwise the default.

[Theming](https://docs.dakota.xyz/documentation/cards/cards-js/theming.md#show-your-card-art) has the details, and [Network & CSP](https://docs.dakota.xyz/documentation/cards/cards-js/network-and-csp.md#what-the-sdk-connects-to) lists what to allow in your policy. To draw the face with CSS while using Cards.js, leave `art` out and style the card yourself, as described in [Theming](https://docs.dakota.xyz/documentation/cards/cards-js/theming.md#restyle-with-css).

## Test in sandbox

Your Dakota contact can add test art to your sandbox account before Visa has approved it, so you can build against `card_art_id` and `image_url` early. Sandbox IDs don't work in production. Sandbox can't show how art looks in a real wallet.


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