Overview

The Canvases API provides CRUD operations for persistent canvas artifacts. A canvas is a structured artifact published by an agent or surface, stored in the local SQLite database, and independent from the Gizzi Runtime session state. Canvases are scoped to a session and support stable artifact keys so the same artifact can be redeployed in place.

Base URL

For local development:

Authentication

All routes require a valid bearer token in the Authorization header. See Authentication for details.

Canvas object

Endpoints

List user canvases

Response

List session canvases

Create a canvas

Response

Redeploy with a stable artifact key

When artifact_key is supplied, a matching existing canvas for the same session is updated in place and its version is incremented.

Response

Retrieve a canvas

Update a canvas

Response

Delete a canvas

Returns 204 No Content on success.

Error codes

  • Agent Sessions — sessions that own canvases
  • Artifacts — other artifact types
  • ACI — agent computer interface and canvas interactions