Contents

Record a review-pane event (Suggesting mode's mode switch)

The pane speaks only through workspace commands, so its own events come here. The body is exactly { event_type, properties }; only mode.switched with to suggesting or editing is accepted. Identity comes from the request, never the body.

POST /documents/{documentId}/events

Path parameters

  • documentId string Required

Headers

  • Authorization string Required

    Bearer <session token>: the signed-in user’s Scaffold session token.

  • x-org-id string Required

Body

  • event_type string Required

    One of mode.switched

  • properties object
    Show 1 field
    • to string

      One of suggesting editing