POST /api/contracts/simulate
| Method | POST |
| Path | /api/contracts/simulate |
| Group | Contracts Simulate |
| Auth | authenticated session — or Authorization: Bearer zsm_<machine-key> (machine API key) for headless/automation |
| Source | shared/api-core/src/routes/contractsSimulate.ts |
Call it
curl -X POST https://zeqsdk.com/api/contracts/simulate \
-H "Authorization: Bearer zsm_<machine-key>" \
-H "Content-Type: application/json" \
-d '{"definition":null,"slug":"…","contract_id":"…","from":"…","to":"…","input":{}}'
Call it from an authenticated session, or — for headless/automation — pass a
zsm_machine API key as a Bearer token (as shown above).
Reference
- Group: Contracts Simulate
- Drive it from any client — the TypeScript SDK, Python, CLI, and MCP server all wrap the same routes.