Skip to main content
POST

Authorizations

Authorization
string
header
required

Send your API key as a bearer token: Authorization: Bearer <your API key>. Make a key in the dashboard under Settings → API keys; a workspace key starts with wdg_org_ and works in the workspace it was made in. See API keys and Authentication.

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. The widget the canvas is for. A canvas holds one widget, and making a widget on the canvas sets this by itself.

managedUserId
string<uuid> | null

Make the canvas for this managed user (Widgetic's id for the user). Partners only, with an active partner API key. 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). Partners only. 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.