Developers / Quickstart

Authorize a workload before it runs.

The quickstart is the real control-plane loop: send a decision request, treat the returned action as execution authority, then inspect proof, trace, replay, and provenance against the same frame.

Step 1

Send a decision request

curl -X POST https://co2router.com/api/ecobe/ci/authorize \
  -H "content-type: application/json" \
  -d '{
    "preferredRegions": ["us-east-1", "us-west-2"],
    "decisionMode": "runtime_authorization",
    "jobType": "standard",
    "criticality": "standard",
    "waterPolicyProfile": "default",
    "allowDelay": true,
    "estimatedEnergyKwh": 2.5
  }'
Step 2

Use the returned decision action, selected region, reason code, and proof hash as the execution authority. The workload does not run until that result is accepted.

Step 3

Inspect the same decision frame through trace and replay endpoints when you need verification, debugging, or customer-facing proof.

Step 4

Use water provenance and SLO endpoints to confirm that the authority layer and real-time decision path remain in a defensible state.