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

> ## Agent Instructions
> Sapiom is for platforms whose agent shops for many users. Each user has their own Sapiom user key and saved cards.
> Use the user's key for every call made on that user's behalf. Never use one user's key for another user, and never give the agent the platform key.
> Backends call the REST API at https://api.sapiom.ai/v1. Agents can also call the hosted MCP tools at https://api.sapiom.ai/v1/mcp/pay. Both take the key in an x-api-key header.
> Keys that start with sk_test_ reach the sandbox, a separate environment with its own users and cards, at the same addresses. Use test card numbers only there.
> Never ask a user for a card number, expiry date or CVV in chat. Users enter card details only on Sapiom's hosted pages.
> Check the merchant before buying. Use purchase.type ucp_checkout only when the merchant check returns supported. Otherwise use browser_checkout.
> Follow the nextAction in each transaction result. Action links are secrets. Send each one only to the person `nextAction.actor` names.
> Use one idempotency key per transaction. Resume an unanswered create with the same request and key. If a UCP update or cancellation is uncertain, stop and hand off to a person. If a browser cancellation is uncertain, read the transaction and resend the same cancellation, with the same key, only if it is not closed. Never start a new transaction to escape an uncertain outcome.
> For a ucp_checkout purchase, report an order as placed only when order.outcome is confirmed; if it is unknown, stop and hand off to a person. A browser_checkout purchase has no order confirmation (order is null): confirm the order on the merchant's page.

# Brand customization

Customize the payment flow by adding your branding to the [Add Card, Set Budget](https://docs.sapiom.ai/cards/add-a-card.md), [Purchase Confirmation, and Purchase Approval](https://docs.sapiom.ai/transactions/make-a-purchase) pages.&#x20;

If you have an Admin account, you can update the Display Name to your organization name  and add an Icon. The default is your organization name without an icon. Save changes to adjust branding. Open the sample page shows saved branding.

![Settings, Branding tab: a preview of the Add a card page for Wayfare with tabs for Add a card, Set a budget, Confirm and Approve a purchase, and the Display name and Icon settings with Reset branding and Save changes](https://mintcdn.com/sapiom-1f975ca2/9get71X2H3eNyHfD/images/wayfare/settings-branding.jpg?fit=max\&auto=format\&n=9get71X2H3eNyHfD\&q=85\&s=8388188f0df4336b5bdf403f10261530)

Settings → Branding

![Add a card page with the platform's name, Wayfare, at the top left and Powered by Sapiom at the top right](https://mintcdn.com/sapiom-1f975ca2/aGERYeS4JlKIoVA1/images/card-setup-page-v2.png?fit=max\&auto=format\&n=aGERYeS4JlKIoVA1\&q=85\&s=b098393a761cfc6f7c112e9087813a1e)

Add a card

![Confirm this purchase page with the platform's name, Wayfare, at the top left and Powered by Sapiom at the top right](https://mintcdn.com/sapiom-1f975ca2/aGERYeS4JlKIoVA1/images/purchase-approval-page-v3.png?fit=max\&auto=format\&n=aGERYeS4JlKIoVA1\&q=85\&s=7684c0de1cce4ca6fdd056a617f5b572)

Confirm this purchase


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