# Connected Apps

> The integrations page of app settings: a row per app with its tile, what it does and where it stands. Connected apps show who they're connected as, when they last synced and a sync switch; Manage lists granted permissions and holds Disconnect, which confirms inline. Connect shows Authorizing… while OAuth runs, lapsed access turns amber with Reconnect, and a filter and search sit on top.

- Slug: `connected-apps`
- Category: [Settings](https://www.assembli.design/category/settings.md)
- Type: component
- Tags: settings, integrations, connected-apps, oauth, sync, permissions, apps, saas
- npm dependencies: lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/connected-apps
- Page: https://www.assembli.design/components/connected-apps

![Connected Apps preview](https://www.assembli.design/thumbnails/connected-apps-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `apps` | `ConnectedApp[]` |  |  |
| `defaultApps` | `ConnectedApp[]` | `[]` |  |
| `onAppsChange` | `(apps: ConnectedApp[]) => void` |  |  |
| `onConnect` | `(app: ConnectedApp) => Promise<ConnectResult> \| ConnectResult` |  | Runs the authorization, e.g. an OAuth popup. Resolving connects the app; rejecting shows an error on its row. |
| `onDisconnect` | `(app: ConnectedApp) => Promise<void> \| void` |  |  |
| `onSyncChange` | `(app: ConnectedApp, sync: boolean) => Promise<void> \| void` |  |  |
| `now` | `string` |  | Reference time (ISO) for "Synced 4 min ago". Defaults to the visitor's clock after hydration. |
| `toolbar` | `boolean` | `true` | Show the All / Connected filter and the search field. |
| `title` | `React.ReactNode` | `"Connected apps"` |  |
| `description` | `React.ReactNode` | `"Bring your tools together. Connections apply to everyone i…` |  |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/connected-apps/connected-apps.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/connected-apps
```

Registry item JSON: https://www.assembli.design/r/connected-apps.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
