Skip to content
VVDex Engine

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

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).

MethodPathNeedsDoes
POST/api/servicesnoneCompile a description ({"problem": "…"}) into a service contract and graph.
GET/api/servicesviewYour workspace's services.
GET/api/services/{service_id}none*One service: its contract, graph and coverage.
GET/api/services/{service_id}/rulesnone*What it does alone, what waits for a person, what it never does.
POST/api/services/{service_id}/testsnone*Run its test suite against in-memory test systems; the result is sealed.
POST/api/triggers/compilebuildRead a sentence ({"text": "every weekday at 8:00"}) into a trigger. Nothing is saved.
PUT/api/services/{service_id}/deployment/configbuildSave the trigger and steps. Any change sends the deployment back to Validated.
POST/api/services/{service_id}/deployment/statusbuildMove it through shadow, live or paused.
POST/api/execution/intakemachineSubmit an event (serviceId, contractHash, eventId, event). The same eventId twice is one event.
GET/api/execution/historyviewEvery run, with its decision and outcome.
GET/api/execution/intakes/{intake_id}/runlogviewEvery block of one run: time, model calls, tokens, estimated cost, failures and retries.
POST/api/execution/intakes/{intake_id}/approveapproveA named person approves the exact held writes.
POST/api/execution/intakes/{intake_id}/rejectapproveReject a held event; nothing is written.
GET/api/execution/intakes/{intake_id}/evidenceviewThe run's sealed evidence bundle.
POST/api/evidence/verifynoneRecompute a bundle's SHA-256 seal from its receipts.
GET/api/skillsviewYour workspace's reusable skills.
GET/api/skills/{skill_id}/check/{service_id}viewDid a skill's step, rules and tests carry over into another service?
GET/api/safetyviewEvery Safety control's state and what each caught.
POST/api/safety/stopownerStop or resume one automation or the whole workspace.
GET/api/blueprints/{service_id}noneThe workflow blueprint, with every point where a person decides.
GET/api/auditviewThe 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.

ToolNeedsDoes
list_servicesviewServices with their deployment status and trigger.
list_held_eventsviewEvents waiting for a person.
get_eventviewOne event with its decision, outcome and planned writes.
get_evidenceviewSealed evidence for a decided event, verified.
search_connectorsviewConnector actions and how each is classified (read, write, destructive).
submit_eventmachineSend an event to a live service; it is held for a person.
propose_connector_actionbuildPropose a write; held until a named person signs the exact parameters.
read_internetbuildRead a public page, PDF or text (read only).
run_read_actionbuildRun 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.