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

# API widgets

> Turn any address that answers JSON into a card of your home page, without code: Settings, API widgets, Add a widget, Test, click the values to show, Save.

An API widget is a card the box fills by reading an address you choose: an app's API, a sensor, anything that answers JSON. You build it by clicking values, without code.

**1. Add a widget**

**Settings**, **System**, **API widgets**, **Configure**, then **Add a widget**.

**2. Say what to read**

Give a **Name**, a **Base address** and a **Path**. Add **Headers**, **Query parameters** or **Basic authentication** if the service needs them; turn on **Secret** for a key or a token.

**3. Test**

**Test** makes the box read the address once and show the **Answer** as a tree. Nothing is saved yet.

**4. Click the values to show**

Each click adds a row, with its label, unit, an optional bar and up to three colour rules. **Preview** shows the card.

**5. Save**

The card appears on your home page. Place it with [Arrange your home page](https://docs.recasaos.org/dashboard/arrange-your-home.md).

## Secrets

A secret stays on the box: it is never shown again and never goes into an exported recipe. If you change the address or the request, type every secret again: a saved secret is only ever sent to the address it was typed for.

## Share a recipe

**Export** saves the widget as a `.recasaos-widget.json` file: the recipe only, without its address or its secrets. Check the fixed texts it lists before you share it. **Import a recipe** builds a widget from such a file; nothing is sent before you press **Test**.

## Limits

12 widgets per box, 8 rows (or 4 large figures) per card, a refresh between 60 and 3,600 seconds (300 by default), a recipe of 16 KiB at most. The full reference is in [docs/widgets.md](https://github.com/ReCasaOS/CasaOS-Install/blob/main/docs/widgets.md).


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