boltQuickstart

Get your first policy compiled and your first action checked in under 5 minutes.


Step 1: Create an account

Call /v1/createUser with your chosen username. You'll get back a deposit address and a stripePaymentIntentId.

curl -s -X POST https://api.icme.io/v1/createUser \
  -H 'Content-Type: application/json' \
  -d '{"username": "bob"}' | jq .

Send exactly $5.00 USDC to the payTo address on Base. Then confirm:

curl -s -X POST https://api.icme.io/v1/createUser \
  -H 'Content-Type: application/json' \
  -d '{
    "username": "bob",
    "stripe_payment_intent_id": "pi_REPLACE"
  }' | jq .

You'll receive your api_key. Save it — you'll need it for every authenticated request.


Step 2: Compile a policy

Call /v1/makeRules with your policy in plain English. This streams progress via SSE so use -N. Compilation takes 30–90 seconds — this is the ARc formalization and consistency checking process running.

bash

Cost: 300 credits ($3.00). You only pay this once per policy.


Step 3: Check an action

Pass your policy_id and a plain English description of what the agent wants to do.

bash

The solver returns SAT (allowed) or UNSAT (blocked).

Cost: 5 credits ($0.05) per check.


Try it without an account

Want to test before registering? Use /v1/verifyPaid — $0.10 USDC per check, no account needed. There is a live policy you can throw actions at:

bash

Follow the x402 flow — first call returns a deposit address, send $0.10 USDC on Base, retry with the stripe_payment_intent_id.


Let third parties check your policy

Once you have a compiled policy, you can allow anyone to check actions against it — no account required on their end. They pay $0.10 USDC per check via /v1/verifyPaid and pass your policy_id.

This is useful if you are building a product where external users or other agents need to verify actions against your rules without going through your backend.

bash

They follow the standard x402 flow — first call returns a deposit address, send $0.10 USDC on Base, retry with the stripe_payment_intent_id. The result is the same SAT/UNSAT response with a cryptographic proof.

You keep your policy. They pay per check. No coordination needed.

Next steps

  • Read the full API Reference for all endpoints and parameters

  • Learn how to create effective policies

Last updated