# Hosted page (/docs/hosted-pages)

The hosted page is the ready-to-use **remittance** flow: your customer gets a quote, enters the sender and recipient, confirms, sees how to pay, and tracks the status of their transfer. You don't build forms or handle payment data.

- It works in Spanish, Portuguese, and English; it's designed for mobile, and it also works without JavaScript.
- Three branding modes: `caibo`, `co_branded` (your brand alongside ours), and `white_label` (only your brand, if your contract includes it).
- The same link is used to pay and to track the transfer.

<Callout type="warn" title="Availability">
The hosted page uses remittance corridors, which require `account` pay-ins. Check `GET /v1/capabilities?product=remittance` in your environment: if the list is empty, the page doesn't have any corridors to offer yet.
</Callout>

## Configure your page [#configure-your-page]

<Endpoint method="PUT" path="/v1/hosted-page" href="/api#tag/hosted-pages/PUT/v1/hosted-page" />

```json
{
  "enabled": true,
  "branding_mode": "co_branded",
  "brand_name": "My Company",
  "logo_url": "https://mi-empresa.com/logo.svg",
  "colors": { "primary": "#12c7b0" },
  "radius": "md",
  "support": { "email": "soporte@mi-empresa.com" }
}
```

`PUT` replaces the entire configuration: any field you omit goes back to its default value.

## Create a session [#create-a-session]

<Endpoint method="POST" path="/v1/hosted-sessions" href="/api#tag/hosted-pages/POST/v1/hosted-sessions" />

```bash
curl "$CAIBO_API/v1/hosted-sessions" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: session-customer-8812" \
  -H "Content-Type: application/json" \
  -d '{ "customer_id": "cus_01m3sgb0...", "expires_in": 86400 }'
```

The response includes `token` and `path`: the link is `https://pay.caibopay.app` + `path`. **They're only returned in this response** (a replay doesn't return them): store them.

- `customer_id` sets the sender.
- `expires_in` ranges from 300 seconds to 7 days; defaults to 24 hours.
- `prefill` pre-populates amount, currency, country, and method.

"I've paid" on the page is only a notice (`hosted_session.payment_reported`). The real confirmation is `payin.completed` followed by `remittance.processing`.

## Your domain [#your-domain]

<Endpoint method="POST" path="/v1/hosted-domains" href="/api#tag/hosted-pages/POST/v1/hosted-domains" />

Register `pagos.mi-empresa.com` and point it with a **CNAME to `pay.caibopay.app`**. The domain starts as `pending`, with a `verification_token`; the Caibo team verifies it and issues the certificate. Let us know when you register it.
