Creative Agent

Save Session Canvas State

Persist the canvas layout immediately after a direct-manipulation edit (delete, move, resize) that isn't part of a chat turn — without this, such edits are lost on refresh since canvas_state otherwise only saves as a side-effect of sending a chat message.

patch/api/v1/creative-agent/sessions/{session_id}/canvas_state

Request

  • Base URL: https://api.muapi.ai
  • URL: https://api.muapi.ai/api/v1/creative-agent/sessions/{session_id}/canvas_state
  • Auth: one of:
    • API key in header x-api-key
    • OAuth 2 (client credentials, token URL https://api.muapi.ai/oauth/token)

Path parameters

session_idstring required

Query parameters

team_idinteger nullable

Headers

x-api-keystring
x-embed-codestring nullable
x-agent-embed-codestring nullable
x-whitelabel-studiostring nullable
authorizationstring nullable

Request body

canvas_stateobject required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 2 revisions of this API.