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

# Widget API Reference

> API reference for the MoonPay widget integration.

The MoonPay widget integration is powered by two APIs:

* **Ramps & Swaps** — buy, sell, and swap quotes; transaction lookups;
  supported countries, currencies, and payment methods.
* **Virtual Accounts** — programmatic on-ramp and off-ramp via virtual
  bank accounts, plus the associated transaction history.

<CardGroup cols={2}>
  <Card title="On-ramp" icon="arrow-right-arrow-left" href="/api-reference/widget/getbuyquote">
    Buy quotes, currency limits, network fees, and transaction lookups.
  </Card>

  <Card title="Off-ramp" icon="arrow-down-from-arc" href="/api-reference/widget/getsellquote">
    Sell quotes and sell transaction lookups.
  </Card>

  <Card title="Swaps" icon="rotate" href="/api-reference/widget/getswappairs">
    Swap pairs, quotes, execution, and transaction lookups.
  </Card>

  <Card title="Data" icon="database" href="/api-reference/widget/getcountries">
    Supported countries, currencies, payment methods, and IP-address checks.
  </Card>

  <Card title="DeFi tokens" icon="coins" href="/api-reference/widget/getdefitoken">
    Token data and token lists for DeFi assets.
  </Card>

  <Card title="Virtual Accounts" icon="building-columns" href="/api-reference/widget/getvirtualaccounts">
    Programmatic on-ramp and off-ramp via virtual bank accounts.
  </Card>

  <Card title="Webhooks" icon="bell" href="/api-reference/widget/webhooks/overview">
    Receive asynchronous notifications when transaction status changes.
  </Card>
</CardGroup>

## Authentication

Most endpoints require an API key. Pass it as the `apiKey` query parameter,
or use the `Authorization: Api-Key <secret>` header where indicated.

## Base URL

```
https://api.moonpay.com
```
