Call this endpoint before executing a write that depends on previously resolved state. Invoke compares your assumed state against current live state and returns a decision — proceed, block, or replan.Documentation Index
Fetch the complete documentation index at: https://docs.invokehq.run/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
Request body
Fields
| Field | Type | Required | Description |
|---|---|---|---|
intent | string | Yes | Human-readable label for the action |
required_fields | string[] | Yes | Fields that must match between assumed and current state |
assumed_state | object | Yes | State the agent resolved at plan time |
current_state | object | Yes | Live state fetched immediately before the call |
conditions | object | Yes | Field values that must hold for the write to proceed |
on_mismatch | string | Yes | "replan" or "block" |
Response
When state has drifted
Decision values
| Decision | Meaning |
|---|---|
proceed | State matches, write is safe to execute |
replan | State drifted, agent should re-resolve before proceeding |
block | State drifted and on_mismatch is "block" |
Full example
Next steps
- POST /outcomes/reconcile — handle unknown outcomes
- CRM Updates guide — state verification in practice
- TypeScript SDK — use via
invoke.call()
