Refresh Canvas
POST
/api/canvas/{deal_id}/refresh
const url = 'https://example.com/api/canvas/example/refresh';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/canvas/example/refresh \ --header 'Authorization: Bearer <token>'Force-refresh canvas session from LangGraph Store.
Editor-gated: refresh invalidates and rewrites the Redis session entry, so it’s a write op against shared collaboration state. Viewers should not be able to thrash the cache. Rate-limited via the shared “generate” bucket.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deal_id
required
Deal Id
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
CanvasSessionResponse
API response for canvas session — emitted by GET /api/canvas/{deal_id}
and POST /api/canvas/{deal_id}/refresh.
Mirrors the CanvasSessionResponse TypedDict in
src/canvas/models/canvas_session.py but exposed as a Pydantic model so
FastAPI emits a stable schema. extra='allow' covers fields the
session_manager.build_response_payload may add over time without
breaking the response_model gate.
object
deal_id
required
Deal Id
string
sections
key
additional properties
any
Example generated
{ "deal_id": "example", "deal_name": "example", "created_at": "example", "document_state": "example", "markdown_content": "example", "version": 1, "can_export": true, "can_finalize": true, "last_modified_by": "example", "last_modified_at": "example", "initialization_warning": "example", "sections": { "additionalProperty": {} }, "is_blank": true, "collab_enabled": true, "user_role": "example", "incomplete_delivery_blocked": true}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}