Skip to main content
POST
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
persistenceKey
string
required

Key used for persistent storage and reference

Example:

"canvas_xyz123"

canvasContent
object

JSON content of the canvas, containing layout and configuration

Example:
primaryWidgetId
string<uuid> | null

Optional primary widget id (usually set after widget create)

managedUserId
string<uuid> | null

Make the canvas for this managed user (Widgetic's id for the user). Send this or managedUserExternalId, not both. The tag is set here and does not change afterwards.

managedUserExternalId
string | null

Make the canvas for the managed user you registered with this externalId (your own identifier for the user). Send this or managedUserId, not both.

Maximum string length: 255
projectId
string<uuid> | null

Project this canvas belongs to. Empty canvases show on that project's list.

Response

Canvas created successfully

success
boolean
required

Always true on a success.

Example:

true

data
object
required
Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.