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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# AgentPass

> Let AI agents buy on your behalf within limits you approve with your Visa passkey: connect an assistant through MCP, or integrate the merchant API to enroll shoppers and receive single-use credentials.

AgentPass lets AI agents make purchases within limits you approve. An agent can only propose: you approve the merchant, the maximum per purchase, the budget, and how long the permission lasts, and you confirm with your Visa Payment Passkey. For each purchase, the agent gets a single-use Visa credential checked against those limits. It never sees your card number.

Yuno builds and operates AgentPass. Cards are stored in Yuno Vault, and Visa purchases use Visa Intelligent Commerce.

There are two ways to use AgentPass:

* **[Connect an AI assistant](#connect-an-ai-assistant)**: add the AgentPass MCP server to ChatGPT, Claude, Cursor, or any MCP client, and approve what the agent may buy.
* **[Merchant API](#merchant-api)**: build AgentPass into your own checkout, app, or agent platform. Your backend enrolls shoppers, requests purchase approvals, and receives the credentials, with the hosted pages under your brand.

> [!NOTE]
>
> AgentPass provides the technology and the credential. It never submits, captures, refunds, or settles a payment, and Yuno does not hold funds. The merchant charges the card as with any other purchase.

## Connect an AI assistant

| Setting | Value |
| - | - |
| MCP server URL | `https://prod.y.uno/wallet-mcp/mcp` |
| Transport | Streamable HTTP |
| Sign-in | OAuth 2.1 with PKCE |
| Account | Created while connecting, if you don't have one |
| Access lasts | Until you disconnect, or until the client goes 30 days without refreshing its token |

### Add the server to your assistant

> [tab] ChatGPT
>
> **1. Turn on Developer mode**
>
> In ChatGPT, open **Settings** → **Security and login** and turn on **Developer mode**.
>
> **2. Add the MCP URL**
>
> Open **Plugins**, select the plus button, and add the MCP server URL with OAuth authentication.
>
> **3. Sign in and approve**
>
> Sign in to AgentPass, or create your account, and approve the connection.
>
> Labels change between ChatGPT versions. If yours differ, follow [OpenAI's connection guide](https://developers.openai.com/plugins/deploy/connect-chatgpt).

> [tab] Claude
>
> **1. Add a custom connector**
>
> In Claude (web or desktop), open **Settings** → **Connectors** and choose **Add custom connector**.
>
> **2. Paste the URL**
>
> Paste the MCP server URL and save.
>
> **3. Connect and approve**
>
> Choose **Connect**, sign in to AgentPass, and approve the connection.

> [tab] Claude Code
>
> ```bash theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> claude mcp add --transport http yuno-wallet https://prod.y.uno/wallet-mcp/mcp
> ```
>
> Run the command, open `/mcp` in Claude Code, choose **Authenticate**, and approve in AgentPass.

> [tab] Codex
>
> ```bash theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> codex mcp add yuno-wallet --url https://prod.y.uno/wallet-mcp/mcp
> codex mcp login yuno-wallet
> ```
>
> Run both commands, sign in to AgentPass in your browser, and start a new Codex session.

> [tab] Cursor
>
> Add the server to `~/.cursor/mcp.json`, or to the project's `.cursor/mcp.json`:
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "mcpServers": {
>     "yuno-wallet": {
>       "url": "https://prod.y.uno/wallet-mcp/mcp"
>     }
>   }
> }
> ```
>
> Open **Cursor Settings** → **MCP**, choose **Connect** next to `yuno-wallet`, and approve in AgentPass.

> [tab] Other MCP clients
>
> Any client that supports Streamable HTTP and OAuth 2.1 can connect. It discovers everything from the URL:
>
> * Protected-resource metadata at `/.well-known/oauth-protected-resource`
> * Authorization-server metadata at `/.well-known/oauth-authorization-server`
> * Dynamic client registration, then the authorization-code flow with S256 PKCE
>
> No API key, client secret, or pre-registration is needed.

After you approve, the assistant appears under **Agents** in AgentPass. Ask it to call `get_account` to confirm the connection.

### Sign-in and permissions

* Connecting uses standard OAuth. The assistant receives its own scoped token; your AgentPass sign-in is never shared with it.
* Before you approve, you see the assistant's name, the operator it reports, and the website it came from. Connections from chatgpt.com, claude.ai, cursor.com, and grok.com are marked as verified; any other origin is shown as it is.
* Every new connection needs your consent. Registering a client identifies it; it does not grant access.
* Each tool checks its scope, your account, and the connection on every call. A tool outside the granted scopes is not listed and cannot be called.

| Scope | Allows | Tools |
| - | - | - |
| `wallet:read` | Read masked card metadata, readiness, and authorizations. Check a purchase against an authorization. | `get_account`, `get_payment_setup_link`, `get_authorization`, `check_purchase`, `get_credential_request` |
| `wallet:authorize` | Propose a spending authorization. Nothing is allowed until you approve it. | `create_authorization` |
| `wallet:credentials` | Request a single-use Visa credential inside an approved authorization, and report the checkout result. | `issue_purchase_credential`, `report_credential_outcome` |
| `wallet:purchase` | Issue a synthetic, non-chargeable test card. Only on deployments that allow mock mode. | `issue_temporary_card` |

### Tools

Amounts are integers in minor units (`2500` is 25.00 in USD). Currencies are ISO 4217 codes, and merchants are matched by host.

| Tool | Type | What it does |
| - | - | - |
| `get_account` | Read | Returns the connected AgentPass: masked cards (brand and last four digits), the default card, whether it is ready for Visa purchases, and the agent's authorizations. Call it first. Never returns a card number, security code, or token. |
| `get_payment_setup_link` | Read | Returns the secure AgentPass page where you add a card through Yuno's hosted form. The agent sends you the link and you enter the card yourself; an agent must never ask for card details in the chat. |
| `create_authorization` | Request | Proposes an authorization: what it is for, the maximum per purchase, a budget and period, allowed merchants, and an expiry. Returns an approval URL for you. The proposal can't be changed; to change a limit, the agent proposes a new one. |
| `get_authorization` | Read | Reads whether you approved, declined, or revoked an authorization, its limits, its expiry, and the budget left. Agents poll it after sending you the approval link. |
| `check_purchase` | Read | Checks whether a purchase fits an active authorization and explains any refusal. Issues nothing, reserves nothing, and contacts no merchant. |
| `issue_purchase_credential` | Credential | Issues one Visa payment credential for one purchase under an approved, passkey-confirmed authorization. The budget is reserved before Visa is called. The credential works once, at that merchant, for that amount, and expires. |
| `get_credential_request` | Read | Reads a credential request's safe view: status, token last four digits, dynamic data type, and expiry. Never returns the credential values. |
| `report_credential_outcome` | Request | Records the checkout result (approved, declined, error, or cancelled) and sends the transaction confirmation to Visa. Agents call it after every checkout. Reporting does not move money. |
| `issue_temporary_card` | Credential | Test deployments only. Issues a synthetic, non-chargeable card bound to one purchase and valid for five minutes at most. |

For `create_authorization` in network mode (your Visa card, confirmed with your passkey), put exactly one merchant hostname in `merchants_allow`. Supported currencies: BHD, BRL, CLP, COP, EUR, GBP, JPY, KWD, MXN, OMR, PEN, TND, and USD. The approval link works for 30 minutes and only for the signed-in owner.

### A purchase, step by step

**1. Check the card**

`get_account` confirms a card is ready. If none is, `get_payment_setup_link` gives you the page to add one.

**2. Propose the limits**

`create_authorization` proposes the limits. For example:

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "title": "Coffee beans",
  "natural_language_description": "Reorder one bag of house-blend coffee beans when we run low.",
  "mode": "network",
  "policy": {
    "currency": "USD",
    "per_purchase_max_minor": 3000,
    "budget_minor": 6000,
    "budget_period": "month",
    "timezone": "America/New_York",
    "valid_until": "2026-12-31T23:59:59Z",
    "merchants_allow": ["shop.example.com"],
    "categories_allow": []
  },
  "idempotency_key": "coffee-2026-11"
}
```

**3. Approve with your passkey**

The agent sends you the `approval_url`. You approve within 30 minutes and confirm with your Visa passkey. `get_authorization` shows your decision.

**4. Check the purchase**

With the cart ready, `check_purchase` confirms it fits. Nothing is reserved.

**5. Get the credential and pay**

`issue_purchase_credential` reserves the amount and returns a single-use credential for that merchant and amount. The agent uses it at checkout and follows its handling rules.

**6. Report the result**

`report_credential_outcome` records the result. Every step appears in **Activity** in AgentPass.

### Safety

* **You approve every authorization.** An agent can only propose. Nothing can be spent until you approve it from your own signed-in AgentPass, and Visa purchases also need your passkey.
* **Limits are checked on every purchase.** Merchant, maximum per purchase, budget, and expiry are checked, and the budget is reserved before any credential is issued. An approved authorization can't be edited, only replaced.
* **Your card number stays out of the chat.** You add cards through Yuno's hosted form into Yuno Vault, and account reads show saved cards as masked metadata only. Issuing a purchase credential returns the payment data that checkout needs, which can include your billing and shipping address and contact details.
* **Credentials are single-use.** Each credential is bound to one merchant and amount, works once, and expires. It is never shown again after issuance.
* **Retries can't double-spend.** Requests that change something take an idempotency key. Retry with the same key and the same inputs; a different purchase needs a new key. Once a credential is issued, a retry returns `CREDENTIAL_ALREADY_ISSUED`.
* **You can stop anything.** Disconnect an assistant from **Agents**: its token stops working immediately. Revoke an authorization from **Authorizations**: credentials already issued may still complete, but no new ones are issued.

### Troubleshooting

**The assistant can't reach the server**

Check that the URL ends in `/mcp` and is the MCP server URL above, not the AgentPass website address.

**The tools are missing after connecting**

Finish the sign-in and approval in the browser, then start a new conversation or session so the client reloads the tool list.

**The agent says no card is ready**

Add one from **Cards** in AgentPass, or ask the agent for a setup link. Visa purchases need a card enrolled for Visa with a passkey.

**A purchase was refused**

The response explains why: for example, a merchant outside the list, an amount above the limit, or a used budget. The agent can propose a new authorization for you to approve.

**The approval link expired**

Links last 30 minutes. Ask the agent to propose the authorization again.

## Merchant API

Build AgentPass into your own checkout, app, or agent platform. Your backend enrolls a shopper, asks them to approve an exact purchase with their Visa Payment Passkey, and receives a single-use Visa credential to complete the payment through your own integration. Shoppers enter their card details on AgentPass hosted pages, not in your app.

### How the merchant flow works

Your backend calls the API. Consent, card, and passkey steps take place on AgentPass hosted pages.

| Step | Action | Where | Result |
| - | - | - | - |
| 1 | Enroll the shopper | Your backend | `customer_id` |
| 2 | The shopper creates their AgentPass and adds a billing address and a Visa card | Hosted page | `next_action.url` |
| 3 | The shopper registers and verifies a Visa Payment Passkey | Hosted page and Visa | |
| 4 | Confirm the shopper and card are ready | Your backend | `ready: true` |
| 5 | Create the purchase for an exact amount | Your backend | `requires_action` |
| 6 | The shopper reviews, approves, and signs with the passkey | Hosted page and Visa | `credential_ready` |
| 7 | Retrieve the single-use credential | Your backend | `credential_issued` |
| 8 | Charge the credential | Your payment integration | Your payment |
| 9 | Report the payment outcome | Your backend | `outcome_reported` |

**Your platform** authenticates the shopper, calls the API from its backend, opens the hosted pages, charges the credential through its own payment integration, and reports the result.

**AgentPass** runs card setup, consent, and the passkey ceremony, generates the purchase mandate with Visa, and delivers one credential per approved purchase.

### Before you start

Your account is configured by the AgentPass team. Email [agentpass@y.uno](mailto:agentpass@y.uno) to request:

| Item | What it covers |
| - | - |
| API keys | Sandbox and production partner API keys. Keep them on your backend only. |
| Merchant identity | The merchant name and URL shoppers see when they approve. |
| Country and currency | Every purchase must use your configured currency. |
| Return URLs | The exact URLs shoppers come back to. Any other URL is refused. |
| Branding | Name, logo, color, font, and navigation. See [Brand the hosted pages](#brand-the-hosted-pages). |
| Legal details | Your company as controller in the Visa privacy notice. |

All calls are server-to-server JSON over HTTPS. Each environment has its own partner API key and configuration: build and test in sandbox first.

| Environment | Base URL |
| - | - |
| Production | `https://prod.y.uno/wallet-api` |
| Sandbox | `https://sandbox.y.uno/wallet-api` |

Send these headers on every request, and an `Idempotency-Key` where the endpoint requires it:

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
Authorization: Bearer {partner_api_key}
Content-Type: application/json
Accept: application/json
```

| Method | Path | Purpose | `Idempotency-Key` |
| - | - | - | - |
| `POST` | `/v1/customers/enroll` | Create or resume a shopper and get the setup link | |
| `GET` | `/v1/customers/{customer_id}` | Shopper readiness and masked cards | |
| `POST` | `/v1/purchases` | Create a purchase and get the approval link | Required |
| `GET` | `/v1/purchases/{purchase_id}` | Purchase status and reported outcome | |
| `POST` | `/v1/purchases/{purchase_id}/sessions` | Renew the approval link | |
| `POST` | `/v1/purchases/{purchase_id}/credentials` | Deliver the credential, once | Required |
| `POST` | `/v1/purchases/{purchase_id}/outcome` | Report your payment result | Required |

* Amounts are integers in the currency's minor unit: `15990` is 159.90 BRL.
* IDs have a prefix: `usr_p` for shoppers, `ins_` for cards, and `pur_` for purchases. Store them as returned.
* `Idempotency-Key` takes 1 to 128 printable ASCII characters.
* Request bodies are limited to 32 KiB, and unknown fields are rejected.
* Successful calls return HTTP 200. Always read `status`, and `reason` when present, in the body.

### 1. Enroll the shopper

You authenticate your shopper. AgentPass runs card setup and Visa verification on its hosted pages.

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
POST /v1/customers/enroll
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "external_customer_id": "shopper-123",
  "name": "Ana Souza",
  "email": "ana@example.com",
  "return_url": "https://merchant.example/agentpass/return"
}
```

`external_customer_id` is your stable ID for the shopper, up to 128 characters. Optionally, pass `saved_card_reference`: the Yuno vaulted payment method reference of a card the shopper already saved with you. AgentPass checks that it belongs to that shopper. Never send a card number or security code.

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "customer_id": "usr_p{32_hex}",
  "external_customer_id": "shopper-123",
  "status": "requires_action",
  "cards": [],
  "next_action": {
    "type": "redirect",
    "url": "{single_use_hosted_link}",
    "expires_at": "2026-11-27T15:10:00Z"
  }
}
```

Open `next_action.url` in the shopper's browser. The shopper confirms the account, adds billing details and a Visa card, accepts the AgentPass notice and your data-sharing consent, and registers their passkey.

> [!WARNING]
>
> Passkeys need a full browser. Test in-app WebViews before relying on them.

Coming back to your `return_url` does not prove the setup is complete. Check it:

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
GET /v1/customers/{customer_id}
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "customer_id": "usr_p{32_hex}",
  "external_customer_id": "shopper-123",
  "status": "ready",
  "cards": [
    {
      "card_id": "ins_{id}",
      "brand": "VISA",
      "last4": "4242",
      "status": "active",
      "ready": true
    }
  ]
}
```

Continue when `status` is `ready`, and use a card with `ready: true`.

* Repeating the enroll call with the same identity returns the same shopper and, if setup is unfinished, a fresh link.
* Name, email, and saved card reference cannot change between retries.
* Shoppers are isolated per merchant and never matched by email.

### 2. Create the purchase and get it approved

AgentPass turns the purchase into a single-use Visa mandate for your merchant, this exact amount, and 30 minutes. Send one `Idempotency-Key` per purchase:

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
POST /v1/purchases
Idempotency-Key: {one_key_per_purchase}
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "customer_id": "usr_p{32_hex}",
  "card_id": "ins_{id}",
  "order_reference": "order-456",
  "amount_minor": 15990,
  "currency": "BRL",
  "description": "Running shoes, size 41",
  "credential_format": "network_token",
  "return_url": "https://merchant.example/agentpass/return"
}
```

The response has `purchase_id`, `status: requires_action`, and a `next_action`. Store the purchase ID and the key. Retrying with the same key and body returns the same purchase. The same key with a different body is refused with HTTP 409.

Open `next_action.url`. The shopper sees your merchant name, the amount, and the description, approves, and signs with the passkey. If the link expired, request a fresh single-use link while the status is `requires_action`:

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
POST /v1/purchases/{purchase_id}/sessions
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{}
```

Returning to your app does not prove the approval. Read the purchase:

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
GET /v1/purchases/{purchase_id}
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "purchase_id": "pur_{32_hex}",
  "customer_id": "usr_p{32_hex}",
  "order_reference": "order-456",
  "amount_minor": 15990,
  "currency": "BRL",
  "credential_format": "network_token",
  "status": "credential_ready"
}
```

* Amount, currency, card, and credential format cannot change after creation.
* The purchase expires 30 minutes after it was created. Renewing a link does not extend it.
* For a new attempt, create a new purchase with a new key.

### 3. Retrieve the credential, once

When the purchase is `credential_ready`, your backend requests the credential:

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
POST /v1/purchases/{purchase_id}/credentials
Idempotency-Key: {key}
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{}
```

The response contains live payment data, in the format you chose when creating the purchase:

> [tab] network\_token (default)
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "purchase_id": "pur_{32_hex}",
>   "status": "credential_issued",
>   "format": "network_token",
>   "expires_at": "{timestamp}",
>   "network_token": {
>     "number": "{visa_token_number}",
>     "expiration_month": "{MM}",
>     "expiration_year": "{YYYY}",
>     "cryptogram": "{cryptogram}",
>     "eci": "{eci}",
>     "holder_name": "{name}"
>   }
> }
> ```
>
> For processors that accept a network token with a cryptogram and ECI.

> [tab] card\_form
>
> ```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
> {
>   "purchase_id": "pur_{32_hex}",
>   "status": "credential_issued",
>   "format": "card_form",
>   "expires_at": "{timestamp}",
>   "card_form": {
>     "number": "{visa_token_number}",
>     "expiration_month": "{MM}",
>     "expiration_year": "{YYYY}",
>     "security_code": "{dynamic_code}",
>     "holder_name": "{name}"
>   }
> }
> ```
>
> For checkouts that need a number, an expiry, and a security code. The security code is dynamic and single-use.

Never put a cryptogram in a security code field. Confirm with your processor which format it accepts.

| Response | What to do |
| - | - |
| `credential_issued` | Charge it now through your payment integration, before `expires_at`. |
| `requires_action` (`CUSTOMER_ACTION_REQUIRED`, `PRIVACY_ACCEPTANCE_REQUIRED`) | The shopper must finish setup, approve the purchase, or accept the notice and consent. Do not retry yet. |
| `refused` (`CREDENTIAL_ALREADY_ISSUED`) | Already delivered. A new key does not deliver it again. |
| `refused` (`PROVIDER_OUTCOME_UNKNOWN`) | Issuance was interrupted. Read the purchase and contact the AgentPass team to reconcile. Do not create a duplicate. |
| `refused` (`PURCHASE_NOT_READY`) | Expired, revoked, or failed. A new attempt needs a new purchase and a new approval. |

> [!WARNING]
>
> Send the credential only through your server-side payment flow. Never log it, store it, or expose it to a browser, chat, AI model, or telemetry. It is returned only by this call, never by a `GET`.

> [!NOTE]
>
> Receiving a credential does not mean the payment was approved. The payment result comes from your payment integration.

### 4. Report the payment outcome

After you charge the credential, tell AgentPass what happened. AgentPass forwards the result to Visa as the purchase confirmation.

```http theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
POST /v1/purchases/{purchase_id}/outcome
Idempotency-Key: {key}
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "outcome": "approved",
  "merchant_order_id": "order-456"
}
```

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "purchase_id": "pur_{32_hex}",
  "status": "outcome_reported",
  "reported_outcome": "approved",
  "outcome_source": "partner_reported",
  "visa_confirmation": "accepted"
}
```

* `outcome` is one of `approved`, `declined`, `error`, or `cancelled`. Report the real result of your payment, including declines.
* Amount and currency come from the purchase, so you do not send them again.
* If the response is `outcome_pending` (`visa_confirmation: pending`), send the same report again later. A different report for the same purchase is refused.
* Report only after a credential was delivered. Otherwise, the call returns 409 `CREDENTIAL_NOT_ISSUED`.

### Purchase statuses

| Status | Meaning |
| - | - |
| `setup_required` | The purchase has no mandate yet because the shopper's setup is unfinished. |
| `requires_action` | Waiting for the shopper to approve and sign with the passkey. |
| `credential_ready` | Approved. Retrieve the credential. |
| `credential_issued` | Credential delivered. Charge it, then report the outcome. |
| `requires_reconciliation` | Issuance outcome unknown. Contact the AgentPass team, and do not create a replacement. |
| `outcome_pending` | Your report is stored, and the Visa confirmation is pending. Retry the same report. |
| `outcome_reported` | Your report was confirmed to Visa. |
| `expired` | The 30-minute window passed before a credential was delivered. |
| `failed`, `paused`, `revoked`, `retired` | Cannot continue. Create a new purchase if the shopper wants to retry. |

### Brand the hosted pages

Shoppers set up AgentPass and approve purchases on hosted pages. By default, the pages use the AgentPass look. With branding, they carry your name, logo, color, and font. The AgentPass team configures branding; it is not set through the API.

| Setting | What it changes | Default |
| - | - | - |
| `name` | Brand name shown in the header and notices. 1 to 80 characters. | Your partner name followed by "Agent Pass" |
| `logo_url` | Your logo. Absolute HTTPS URL with no query string. If it fails to load, the name is shown as text. | None: the name is shown as text |
| `primary_color` | Buttons, links, and highlights. Six-digit hex, for example `#e4572e`. | `#3e4fe0` |
| `font` | Typeface of the hosted pages: `geist`, `inter`, or `manrope`. | `geist` |
| `hide_navigation` | Hides the AgentPass menu, profile, and navigation, so shoppers only see your setup and approval steps. | `false` |

Example configuration:

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "branding": {
    "name": "Aurora Pay",
    "logo_url": "https://cdn.aurora.example/logo.svg",
    "primary_color": "#e4572e",
    "font": "manrope",
    "hide_navigation": true
  }
}
```

The same hosted pages with the default look and with the example configuration (Aurora Pay is a fictional merchant):

![AgentPass setup and purchase approval pages side by side: the default look with the partner name as text, blue buttons and the Geist font, and the Aurora Pay branding with logo, orange buttons and the Manrope font](https://mintcdn.com/yuno-3979e326/3jg3vLISxTVHRJHt/images/reference/agentpass/branding-default-vs-branded.png?fit=max\&auto=format\&n=3jg3vLISxTVHRJHt\&q=85\&s=e9ba6bb779912c42168cdc1a3e73a17b)

Branding does not change:

* **Powered by Yuno**: the Yuno credit stays on every hosted page.
* **Visa screens**: passkey and Visa verification steps keep Visa's own design.
* **Consent and terms**: the AgentPass notice and your data-sharing consent are always shown.
* **Required steps**: branding never skips setup, approval, or the return to your app.

To request it, email [agentpass@y.uno](mailto:agentpass@y.uno) with your values, your logo (SVG, or a high-resolution PNG on a transparent background, hosted on HTTPS), and the environments to apply them to. Ask for sandbox first to review your branding before it reaches production.

### Errors

Errors return a JSON body with a `code` and a `message` (or `messages`):

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{ "code": "RATE_LIMITED", "message": "Retry after the current minute" }
```

| HTTP | Code | What to do |
| - | - | - |
| 400 | `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED` | Fix the request: a field, the currency, a return URL that is not allowlisted, or a missing key. |
| 401 | `NOT_AUTHENTICATED` | Missing or invalid partner API key. |
| 403 | `PARTNER_NOT_ALLOWED` | Your partner access is not enabled in this environment. Contact the AgentPass team. |
| 404 | `NOT_FOUND` | Unknown ID, or a shopper or purchase that belongs to another merchant. |
| 409 | Conflict codes | For example, a reused `Idempotency-Key` with a different body, incomplete setup, `PARTNER_ACCESS_REVOKED` (the shopper disconnected you), or `ACTION_NOT_REQUIRED`. |
| 413, 415 | `REQUEST_TOO_LARGE`, `INVALID_CONTENT_TYPE` | Keep bodies under 32 KiB and send `application/json`. |
| 429 | `RATE_LIMITED` | Back off and retry after the current minute. |
| 502 | `BACKEND_UNAVAILABLE` | Retry the same call with the same key. For a credential, read the purchase first. |

### Go-live checklist

* Partner API key stored server-side only, with a rotation plan.
* Return URLs, merchant identity, currency, and branding confirmed with the AgentPass team.
* Idempotency keys stored before each `POST` and reused on retries.
* Hosted pages tested in every browser and app shell you support.
* Status read after every return. Never trust the redirect alone.
* Credential format accepted end to end by your processor.
* Credentials kept out of logs, storage, analytics, and AI context.
* Every payment result reported, including declines and cancellations.

For credentials, branding, configuration changes, or support, email the AgentPass team at [agentpass@y.uno](mailto:agentpass@y.uno). Include the `purchase_id` or `customer_id`, never a credential or API key.


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