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

# Crypto Widget

> Ripio's embeddable crypto widget: what your users can do inside it, what you configure, and what your backend still owns.

The widget is a native web component your users' crypto operations happen inside of — buying, selling, depositing, sending to external wallets, and tracking a portfolio — while your backend follows along through the webhooks you already receive.

You request a one-time session code from your server, mount the component with it, and Ripio handles the trading flow: quoting, execution, and settlement. There is no SDK to install beyond the component's own script tag.

### What your users can do inside

> [card] [See their portfolio](https://docs.ripio.com/crypto-as-a-service/widget/flows/home.md)
>
> Total balance, holdings, recent activity and the market — all in one screen.

> [card] [Buy crypto](https://docs.ripio.com/crypto-as-a-service/widget/flows/buy-and-sell.md)
>
> A quote with a guaranteed rate for a short window, then a one-tap confirmation.

> [card] [Sell crypto](https://docs.ripio.com/crypto-as-a-service/widget/flows/buy-and-sell.md)
>
> The same quote-then-confirm flow, in the other direction.

> [card] [Deposit crypto](https://docs.ripio.com/crypto-as-a-service/widget/flows/deposit-and-send.md#deposit)
>
> Their own deposit address for each asset and network, with a QR code to receive funds from any wallet.

> [card] [Send crypto](https://docs.ripio.com/crypto-as-a-service/widget/flows/deposit-and-send.md#send)
>
> A transfer to an external wallet, with the address validated and the network fee shown before confirming.

> [card] [Read it in their language](https://docs.ripio.com/crypto-as-a-service/widget/get-started/embedding.md#language)
>
> Spanish, Portuguese or English, set by you at embed time.

### What depends on your configuration

Not every operation is on for every account. The session you mint reflects what your account has enabled:

| Operation | Availability |
| - | - |
| `buy`, `sell` | Always enabled — there is no account-level flag for either. |
| `deposit`, `withdrawal`, `swap`, `yields`, `loan` | Enabled per account. When one is off, the widget doesn't offer it. |

You can further narrow a single session with `requested_operations` on [`POST /auth`](https://docs.ripio.com/crypto-as-a-service/widget/get-started/authentication) — the effective set is always the **intersection** of what your account has enabled and what you requested, never the union. Asking for an operation your account doesn't have simply has no effect; it never grants something you haven't contracted.

> [!NOTE]
>
> Ask your Ripio contact to change what's enabled for your account.

### What stays on your side

The widget owns the trading UI, not your integration. You are still responsible for:

* **Requesting a session code** per user, every time the widget opens, from your server — and a new one when the widget tells you the session ended. See [Authentication](https://docs.ripio.com/crypto-as-a-service/widget/get-started/authentication.md) and [Session lifecycle](https://docs.ripio.com/crypto-as-a-service/widget/get-started/session-lifecycle.md).
* **Mapping `external_ref` to your own user.** It's the identifier every webhook comes back with.
* **Receiving webhooks.** Approving a purchase before it executes, and finding out how each operation resolved. See [Webhooks](https://docs.ripio.com/crypto-as-a-service/widget/webhooks.md).

> [!NOTE]
>
> Deciding between this and integrating the API directly? See [Choose your integration](https://docs.ripio.com/crypto-as-a-service/overview/choose-your-integration.md).

### Get started

> [card] [How it works](https://docs.ripio.com/crypto-as-a-service/widget/get-started/how-it-works.md)
>
> Who calls whom, from opening a session to the webhooks of a buy.

> [card] [Authentication](https://docs.ripio.com/crypto-as-a-service/widget/get-started/authentication.md)
>
> Request credentials and generate a one-time session code.

> [card] [Embedding the widget](https://docs.ripio.com/crypto-as-a-service/widget/get-started/embedding.md)
>
> The script tag, the element's attributes, and the events it emits.


## Related topics

- [Embedding the widget](https://docs.ripio.com/crypto-as-a-service/widget/get-started/embedding.md)
- [Crypto as a Service](https://docs.ripio.com/crypto-as-a-service/overview/introduction.md)
- [Get started with Ripio's crypto infrastructure and local stablecoins](https://docs.ripio.com/index.md)
- [Choose your integration](https://docs.ripio.com/crypto-as-a-service/overview/choose-your-integration.md)
- [How the integration works](https://docs.ripio.com/crypto-as-a-service/widget/get-started/how-it-works.md)


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