Skip to main content
Canvases are the editing environment where widgets are designed and configured. Each canvas represents an editing session with its own state and widgets.

Overview

With the Canvases API, you can:
  • Create new canvases
  • List existing canvases
  • Retrieve canvas details
  • Update canvas content
  • Delete canvases

List Canvases

Retrieve all canvases with pagination and filtering:

Filtering Canvases

Filter canvases by various criteria:
You can also filter by updatedBefore. The list cannot be filtered by persistence key.

Get Canvas by ID

Retrieve a specific canvas:

Create Canvas

Create a new canvas:

Update Canvas

Update an existing canvas:

Delete Canvas

Delete a canvas:

Canvas Structure

A canvas object contains:

Canvas Content

The canvasContent field stores the canvas state. It holds JSON of your choosing: the API saves what you send and does not check its shape. The examples above use this shape:
An update replaces canvasContent as a whole, so send all of it.

Persistence Keys

Use persistence keys to maintain references between your application and Widgetic:
The list cannot be filtered by persistence key, so keep the id that creation returns in your own records.

Next Steps

Widgets

Build widgets from canvases

Compositions

Set a widget up for one place and embed it