Developers
The same Engine, from your code.
Everything the console does goes through this REST API. AI assistants reach the same services through the MCP server. Every write it proposes still waits for a named person: no endpoint and no tool approves on its own.
Authentication
- Operator key. An owner creates a person in Team and issues a key (vvk_…, shown once). Send it as Authorization: Bearer vvk_…. The key acts for that person's workspace with that person's role.
- Roles. viewer reads; approver also approves and rejects; builder builds, configures and deploys; owner does everything, including people and keys; service is for machines that submit events.
- Session cookie. The console signs in by email code or Google. A request made with the cookie must also send X-VVDex-Request: 1 on every change, which a cross-site form cannot send.
- No key. The public catalogue, the demo runs, the blueprints and the evidence verifier answer without one, and never name an AI model or provider.
- Limits. Model-backed requests are limited per address per hour and by a daily token budget per workspace; the Safety layer also applies each person's and each automation's budget.
REST API
JSON in, JSON out. The full machine-readable list is openapi.json (OpenAPI 3), generated from the running code. These are the endpoints most integrations need. “Needs” is the role a key must have; none* means no key, for a service you can see (your workspace's, or a public draft).
| Method | Path | Needs | Does |
|---|---|---|---|
| POST | /api/services | none | Compile a description ({"problem": "…"}) into a service contract and graph. |
| GET | /api/services | view | Your workspace's services. |
| GET | /api/services/{service_id} | none* | One service: its contract, graph and coverage. |
| GET | /api/services/{service_id}/rules | none* | What it does alone, what waits for a person, what it never does. |
| POST | /api/services/{service_id}/tests | none* | Run its test suite against in-memory test systems; the result is sealed. |
| POST | /api/triggers/compile | build | Read a sentence ({"text": "every weekday at 8:00"}) into a trigger. Nothing is saved. |
| PUT | /api/services/{service_id}/deployment/config | build | Save the trigger and steps. Any change sends the deployment back to Validated. |
| POST | /api/services/{service_id}/deployment/status | build | Move it through shadow, live or paused. |
| POST | /api/execution/intake | machine | Submit an event (serviceId, contractHash, eventId, event). The same eventId twice is one event. |
| GET | /api/execution/history | view | Every run, with its decision and outcome. |
| GET | /api/execution/intakes/{intake_id}/runlog | view | Every block of one run: time, model calls, tokens, estimated cost, failures and retries. |
| POST | /api/execution/intakes/{intake_id}/approve | approve | A named person approves the exact held writes. |
| POST | /api/execution/intakes/{intake_id}/reject | approve | Reject a held event; nothing is written. |
| GET | /api/execution/intakes/{intake_id}/evidence | view | The run's sealed evidence bundle. |
| POST | /api/evidence/verify | none | Recompute a bundle's SHA-256 seal from its receipts. |
| GET | /api/skills | view | Your workspace's reusable skills. |
| GET | /api/skills/{skill_id}/check/{service_id} | view | Did a skill's step, rules and tests carry over into another service? |
| GET | /api/safety | view | Every Safety control's state and what each caught. |
| POST | /api/safety/stop | owner | Stop or resume one automation or the whole workspace. |
| GET | /api/blueprints/{service_id} | none | The workflow blueprint, with every point where a person decides. |
| GET | /api/audit | view | The hash-chained audit log and whether the chain verifies. |
Compile a service
curl -s https://YOUR-ENGINE/api/services \
-H 'Content-Type: application/json' \
-d '{"problem": "When an invoice arrives, check it against the purchase order. If the totals differ, route it to finance."}'
Submit an event, then read its run log
curl -s https://YOUR-ENGINE/api/execution/intake \
-H "Authorization: Bearer $VVDEX_KEY" -H 'Content-Type: application/json' \
-d '{"serviceId": "SERVICE_ID", "contractHash": "CONTRACT_HASH", "eventId": "inv-2026-0042",
"event": {"subject": "Invoice 42", "body": "…"}}'
curl -s https://YOUR-ENGINE/api/execution/intakes/INTAKE_ID/runlog \
-H "Authorization: Bearer $VVDEX_KEY"
Signed webhook
A service whose trigger is a webhook gets its own URL, /api/hooks/{hook_id}, and a secret shown once when the trigger is saved. Sign the raw body with HMAC-SHA256 and send the hex digest. A body is accepted once: a repeat of the same body is the same event (it is identified by the SHA-256 of the raw body, not by a header).
BODY='{"order": "A-1001", "total": 129.90}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" -hex | sed 's/^.* //')
curl -s https://YOUR-ENGINE/api/hooks/HOOK_ID \
-H 'Content-Type: application/json' -H "X-VVDex-Signature: sha256=$SIG" -d "$BODY"
Answers 202 when accepted, 401 when the signature does not match, 413 above 256 KB.
MCP server
One endpoint, POST /mcp, speaking JSON-RPC 2.0 (protocol versions 2025-06-18, 2025-03-26 and 2024-11-05), with the same operator key. An assistant sees only the tools its role allows. There is no tool that approves.
| Tool | Needs | Does |
|---|---|---|
| list_services | view | Services with their deployment status and trigger. |
| list_held_events | view | Events waiting for a person. |
| get_event | view | One event with its decision, outcome and planned writes. |
| get_evidence | view | Sealed evidence for a decided event, verified. |
| search_connectors | view | Connector actions and how each is classified (read, write, destructive). |
| submit_event | machine | Send an event to a live service; it is held for a person. |
| propose_connector_action | build | Propose a write; held until a named person signs the exact parameters. |
| read_internet | build | Read a public page, PDF or text (read only). |
| run_read_action | build | Run a read action on a connector; writes are refused. |
{ "mcpServers": { "vvdex": { "type": "http", "url": "https://YOUR-ENGINE/mcp",
"headers": { "Authorization": "Bearer vvk_…" } } } }
curl -s https://YOUR-ENGINE/mcp -H "Authorization: Bearer $VVDEX_KEY" \
-H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
A browser may call it only from the Engine's own address: any other Origin is refused.
Command line
The repository has one command, control_plane/cli.py. It compiles a description on your own machine with the rule-based planner and prints the proposal, the graph and the requirement coverage as JSON. It does not call the API, deploy anything or approve anything.
python -m control_plane.cli "When a support email arrives, draft a reply. A person approves before it is sent."
python -m control_plane.cli "…" --eval # also run the graph's self-tests against in-memory test systems
It refuses to print a graph that fails the authority checks ("unsafe compiled graph").
SDK
There is no SDK package yet. What is missing: a published client library, typed models for the contract and the run log, and helpers for signing webhooks and paging the history. Until then, openapi.json can generate a client in most languages, and every call above is plain HTTPS with JSON.