# Introduction (/docs)

Caibo Pay is the payments infrastructure for businesses that collect and pay out in many countries. You integrate **once** and, from the same API, collect and pay out by PIX, ACH, wire, FedNow, SPEI, Bre-B, Faster Payments, bank transfers and mobile payments, and check a single balance. See [Countries and methods](/docs/coverage).

<Cards>
  <Card icon={<Rocket />} title="Quickstart" href="/docs/quickstart">
    Your first call and your first test pay-in in minutes.
  </Card>
  <Card icon={<Map />} title="What you can do" href="/docs/capabilities">
    The map of countries, methods, and currencies, read from the API itself.
  </Card>
  <Card icon={<ArrowDownToLine />} title="Collect" href="/docs/collect">
    One-time payments for an exact amount: the payer pays the order and nothing else.
  </Card>
  <Card icon={<ArrowUpFromLine />} title="Pay out" href="/docs/pay-out">
    Payouts to bank accounts, PIX, and mobile payment, one at a time or in batches.
  </Card>
</Cards>

## One API for everything [#one-api-for-everything]

There is no endpoint per country or per provider. The same resources work everywhere:

| You want to… | You use |
| --- | --- |
| Know what's available to you | `GET /v1/capabilities` |
| Collect | `POST /v1/funding-accounts` |
| Pay out | `POST /v1/payouts` |
| Know what happened | A webhook, or `GET /v1/events` |
| See your money | `GET /v1/balances` |

What changes from one country to another is `currency` and `method`, and `GET /v1/capabilities` tells you what each one requires. When Caibo opens a new country, it shows up there: **your integration doesn't change**.

<Mermaid chart={`flowchart LR
  A[Your system] -->|one key| B(Caibo Pay API)
  B --> C[Pay-ins: PIX, bank transfers]
  B --> D[Payouts: accounts, PIX, mobile payment]
  B --> E[(One balance)]
  B -.->|one webhook| A`} />

## How it works [#how-it-works]

<Steps>
<Step>
### Check what you can do [#check-what-you-can-do]
`GET /v1/capabilities` lists every product (`payin`, `payout`, `remittance`), with its method, currency, and country, the fields it requires, and whether it's available to your account right now.
</Step>
<Step>
### Collect or pay out [#collect-or-pay-out]
You create a pay-in or a payout with a single call. Every call that moves money carries an `Idempotency-Key`, so a retry never collects or pays twice.
</Step>
<Step>
### Receive the result [#receive-the-result]
Money moves asynchronously. We notify you by webhook (`payin.completed`, `payout.completed`…) and every event is also available in `GET /v1/events`.
</Step>
</Steps>

## Environments [#environments]

| Environment | Host | Key |
| --- | --- | --- |
| Sandbox (testing) | `https://api-sandbox.caibopay.app` | `psp_test_…` |
| Live (production) | `https://api.caibopay.app` | `psp_live_…` |

They are separate deployments, with separate data and keys: a key only works in its own environment. Start in sandbox; going live means changing the host and the key. See [Sandbox and live](/docs/sandbox).

<Callout title="Working with an AI assistant?">
These docs are built for agents too: every page has **Copy for AI**, there's an [`llms.txt`](/llms.txt), an MCP server, and a Skill ready to install. See [Build with AI](/docs/ai).
</Callout>
