Survey events fire when IR changes are recorded against a specific survey — when the AI produces or revises the platform-native representation, when a user manually edits the platform IR, and when changesets are created or completed. Subscribe to these events to stream live programming progress into your UI or react to any IR change.Documentation Index
Fetch the complete documentation index at: https://docs.questra.ai/llms.txt
Use this file to discover all available pages before exploring further.
Changesets
Changeset events track every grouped mutation to a survey’s platform IR — AI programming, agent-driven revisions, manual edits, platform pulls, and reverts. Each event includes the survey ID so you can route deliveries to the right handler.changeset-started
Fires when a new changeset begins processing.
type | Description |
|---|---|
initial_programming | First-time AI programming from a questionnaire file |
ai_prompt | Agent-driven revision of the platform IR |
revert | Rollback to a previous IR state |
manual | Manual edit via PUT or PATCH on the platform IR |
platform_pull | IR synced from the connected platform |
changeset-completed
Fires when all operations in a changeset have been applied successfully.
changeset-failed
Fires when a changeset encounters an error.
changeset-awaiting-approval
Fires when a changeset requires user review before changes are committed — for example, when an agent has produced a pending revision that the user must accept or reject in the diff overlay.
changeset-operation-added
Fires each time an operation is recorded within an in-progress changeset (for example, as the AI streams changes).
change-recorded (real-time only)
Individual change records are published to a dedicated per-changeset real-time channel as they are written. These events are not delivered via webhooks because of their volume during AI streaming.
Channel: org:{orgId}:history:{changesetId}
| Field | Description |
|---|---|
resource_type | platformIr — all IR changes are captured against the platform IR blob |
operation | create, update, or delete |
before / after | Snapshots of the IR before and after the change |
message | Human-readable description of the change |
order | Zero-based index within the changeset |
Subscribe to the per-changeset channel
org:{orgId}:history:{changesetId} to stream individual IR change records in real time. This is useful for building live history feeds.