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

# Developers

> Three ways to put Cesto baskets in your product — an embeddable widget, a drop-in invest button, or the full server API.

Cesto exposes three integration surfaces. They differ in how much of the experience you
own and how much you have to build, and they are designed to be picked up in that order —
you can start with an iframe today and move to the server SDK when you need it.

> [card] [Widgets](https://docs.cesto.co/widgets/overview.md)
>
> **No code.** One `<iframe>` renders a live basket card on your page. No key, no
> JavaScript, no build step.

> [card] [Web SDK](https://docs.cesto.co/web-sdk/overview.md)
>
> **Frontend.** A drop-in invest flow on your own site: your CTA opens a themed Cesto
> dialog, the user signs in, funds, and invests without leaving your page.

> [card] [Server SDK](https://docs.cesto.co/sdk/overview.md)
>
> **Backend.** The full API in TypeScript: baskets, positions, managed wallets, and
> client-signed open / close / rebalance. You build the entire UI.

## At a glance

| | [Widgets](https://docs.cesto.co/widgets/overview.md) | [Web SDK](https://docs.cesto.co/web-sdk/overview.md) | [Server SDK](https://docs.cesto.co/sdk/overview.md) |
| - | - | - | - |
| Where it runs | An iframe on your page | The browser, on your page | Your backend (Node 18+) |
| What you write | One `<iframe>` tag | One button, or a React component | Your own product |
| Key | None | Publishable `cesto_pk_…` | Secret `cesto_sk_…` |
| Who owns the invest UI | Cesto | Cesto (themed by you) | You |
| End user needs a Cesto account | Yes | Yes — they sign in inside the dialog | No |
| Wallets | Cesto's | Cesto's | Managed by Cesto, or your own |
| Outcome events | None | `onSuccess`, `onError`, … | Typed execution results |
| Time to first invest | Minutes | Under an hour | A sprint |

Not sure which one is yours? [Choose your integration](https://docs.cesto.co/developers/choose-an-integration.md)
walks the decision in one page.

## Before you start

**1. Get a key**

Widgets need nothing. The Web SDK needs a **publishable** key and the origins you will
embed from; the Server SDK needs a **secret** key and a scope. See
[API keys](https://docs.cesto.co/developers/api-keys.md).

**2. Find your basket slug**

Every basket has a slug — the last path segment of its URL on
`app.cesto.co/product/<slug>`. All three surfaces take that slug. You can also list
them programmatically with [`products.list`](https://docs.cesto.co/sdk/products).

**3. Build**

Follow the quickstart for your surface: [Widgets usage](https://docs.cesto.co/widgets/usage.md),
[Web SDK quickstart](https://docs.cesto.co/web-sdk/quickstart.md), or the
[Server SDK quickstart](https://docs.cesto.co/sdk/overview.md#quickstart).

## Mixing surfaces

They compose. A common shape is a **widget** in a blog post or newsletter to show the
basket, a **Web SDK** button on the landing page so the invest happens in place, and the
**Server SDK** on your backend to read the resulting positions back into your own
dashboard. They all key off the same basket slug, and a position opened through any of
them is the same position.

> [!NOTE]
>
> The Web SDK's publishable key and the Server SDK's secret key are different credentials
> with different powers. A `cesto_pk_…` is safe in a client bundle; a `cesto_sk_…` never
> is. See [API keys](https://docs.cesto.co/developers/api-keys.md).


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