Quick Start
Initialize the SDK
Fetching Data
List Every Widget with Pagination
GET /widgets takes page and size, and is always newest first. meta.hasNextPage says whether to ask for another page:
Batch Fetch Multiple Widgets
Managing Canvases
Create and Update a Canvas
Partner Integration
Create Managed Users
A managed user is a record of one of your customers. It is not a login, and it does not own anything. Only partners can make managed users: it takes an active partner API key. See Managed Users.managedUserId (or your own id as managedUserExternalId) when you create a composition, a widget or an upload, and send the same field when you list. See Filing Content Under a Managed User.
Mount an Editor in Your Page
Your server makes an editor session for the customer who is on the page, and the page mounts the editor with the token. The API key stays on your server. See UI Components.Error Handling
Robust API Client
The SDK throws aResponseError. The HTTP status is error.response.status, and error.code holds the machine-readable code from the API’s answer:
Embedding Widgets
A widget is shown on a page through a composition, and the page needs only the composition id. There is no key in the page.Basic Embed
Embed as a Pop-up
embed-target decides where the widget appears: site inside the page, overlay as a pop-up, and mixed inside the page and, once it has scrolled out of view, in a floating box. The Embed code screen starts on overlay, and a tag with no embed-target is inline. These attributes come from the composition’s embedSettings, so build them from the saved settings (see Compositions), and see Embedding widgets and Embed settings for every option:
Next Steps
SDKs
Explore our SDK options
API Reference
Complete endpoint documentation