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

# Build with Widgetic

> Create, publish and embed interactive widgets from your code, your terminal or your AI assistant.

Widgetic is a platform for creating interactive widgets and showing them on any website. You can build them from your own code, from a terminal or by asking an AI assistant, and your servers can be told when something happens on your account.

## Ways to build

Every way works on the same widgets and compositions, so you can start with one and add another later.

> [card] [REST API and SDKs](https://docs.widgetic.com/docs/quickstart.md)
>
> Create, publish and manage widgets and compositions over HTTPS. SDKs for TypeScript, Python, Go, Java, C#, Ruby, PHP and Bash.

> [card] [CLI](https://docs.widgetic.com/docs/cli/getting-started.md)
>
> Run REST calls and MCP build tools from a terminal, a script or CI, with the same key.

> [card] [AI agents (MCP)](https://docs.widgetic.com/docs/agents/overview.md)
>
> Describe the widget you want and your assistant builds, previews, publishes and embeds it. You sign in with your browser, so there is no key to copy.

> [card] [Webhooks and events](https://docs.widgetic.com/docs/webhooks/overview.md)
>
> Partner accounts receive signed calls when an invoice is paid, credits run low or a customer publishes a widget. Any workspace can be called when a visitor sends an entry.

> [card] [Embed](https://docs.widgetic.com/docs/api/embedding.md)
>
> Show a published composition on any page with one script and a `<widgetic>` element.

> [card] [Partner platform](https://docs.widgetic.com/docs/partners/overview.md)
>
> For partners: run Widgetic for your own customers, with managed users, editors inside your product, credits and invoices.

## See it in code

Each tab is the shortest way into one of the ways above. Replace the placeholders with your own values.

```bash REST API theme={"theme":"css-variables"}
curl "https://api.widgetic.com/v1/widgets?page=1&size=5" \
  -H "Authorization: Bearer $WIDGETIC_API_KEY"
```

```bash CLI theme={"theme":"css-variables"}
npm install -g @widgetic/cli
widgetic auth login
widgetic api widgets get-widgets --json
```

```bash AI agents (MCP) theme={"theme":"css-variables"}
claude mcp add --transport http widgetic https://mcp.widgetic.com
```

```json Webhook event theme={"theme":"css-variables"}
{
  "id": "evt_5f0c2a9e4b7d4c1e8a3b6d9f1c2e4a7b",
  "type": "invoice.paid",
  "createdAt": "2026-11-10T09:30:05.000Z",
  "partnerId": "7d5f3c1a-2b64-4c0e-9a51-6f1e2d3c4b5a",
  "data": { "invoiceNumber": "2026-0042", "total": 1190, "currency": "USD" }
}
```

```html Embed theme={"theme":"css-variables"}
<script src="https://cdn.widgetic.com/sdks/browser/embed-sdk.js?v=6"></script>
<widgetic composition-id="COMPOSITION_ID" resize="fill-width" width="800" height="450"></widgetic>
```

```bash Partner platform theme={"theme":"css-variables"}
curl -X POST "https://api.widgetic.com/v1/managed-users/$MANAGED_USER_ID/editor-sessions" \
  -H "Authorization: Bearer $WIDGETIC_PARTNER_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "surfaces": ["creator", "editor", "files"] }'
```

## Get an API key

**1. Sign in to the dashboard**

Open the [Widgetic dashboard](https://widgetic.com/workspaces) and sign in, or [create an account](https://widgetic.com/signup).

**2. Make a key**

Open [**Settings → API keys**](https://widgetic.com/workspaces?settings=api-keys) in the workspace you want to work in (the link opens the one you used last, or your first) and make a key. The key starts with `wdg_org_` and works in that workspace only, so make one for each workspace you use.

**3. Check that it works**

```bash theme={"theme":"css-variables"}
export WIDGETIC_API_KEY="wdg_org_your_api_key"

curl https://api.widgetic.com/v1/tokens/validate \
  -H "Authorization: Bearer $WIDGETIC_API_KEY"
```

The answer says which account and workspace the key belongs to.

> [!NOTE]
>
> API keys need a paid plan: the free trial does not include the API, the CLI or the MCP server. See [Keys and your workspace plan](https://docs.widgetic.com/docs/authentication.md#keys-and-your-workspace-plan).

## Which key do I need?

| You are | Use | It starts with |
| - | - | - |
| Building on your own workspace: scripts, integrations, automations | An **organisation key** (also called a workspace key), made in the dashboard | `wdg_org_` |
| Running a platform for your own customers (a partner) | A **partner key**, made in your partner's home workspace | `wgt_prt_` |
| Working with an AI assistant | No key: you sign in with your Widgetic account in the browser | — |

The two kinds of key work differently. [API keys](https://docs.widgetic.com/docs/api-keys.md) says what each one can call and how to tell which one you hold, [Authentication](https://docs.widgetic.com/docs/authentication.md) covers scopes and plans, and the [partner overview](https://docs.widgetic.com/docs/partners/overview.md#partner-api-key) is for partners.

## Core concepts

> [card] Widget
>
> The reusable piece a composition is made from. The widgets of your account are your own library.

> [card] Composition
>
> One widget set up for one place: its content, its design and its embed settings. You show it on a page with the embed code.

> [card] Canvas
>
> The editing surface where a widget is designed and configured.

> [card] Workflow
>
> Compositions chained together, with filters that decide which one a visitor sees next.

## Need help?

* **Support**: write to the support team from the dashboard. Open your account menu and choose **Help → Support**: your email program opens with a message to them. Say what you were doing, and add the `correlationId` of a failed call when you have one.
* **GitHub**: [github.com/widgetic](https://github.com/widgetic)


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