s2ar

Developers

The hosted tools.

s2ar’s tools for agents run at api.s2ar.dev: deterministic checks, image certification, code reads and environments. Each answer carries a receipt, and every verdict is a signed record anyone can verify, free.

Your first call

Two commands, with no key and no account. The answers shown are real ones, stored when they were run.

  1. Call a tool

    Ask assert to check a small piece of JSON. The answer says what passed and names its record, and a header counts the free calls you have left today.

    curl -s https://api.s2ar.dev/v1/assert \
      -H 'content-type: application/json' \
      -d '{"text": "{\"answer\": 42}", "checks": [{"check": "json_valid"}, {"check": "required_keys", "keys": ["answer"]}]}'

    → HTTP 200 · 565 ms · x-sym-free-remaining: 8

    {
      "verdict": "pass",
      "passed": 2,
      "checks": 2,
      "results.0.check": "json_valid",
      "results.0.ok": true,
      "results.1.check": "required_keys",
      "results.1.ok": true,
      "record_sha256": "751f3593e7793224cc6bf52012eb8c54be51f5d73022cad257ad345e9100318d",
      "charged_usd": 0.0
    }
  2. Check the record

    Anyone can re-check a record by its hash, free. The seal is recomputed and the signature checked.

    curl -s https://api.s2ar.dev/v1/verify/751f3593e7793224cc6bf52012eb8c54be51f5d73022cad257ad345e9100318d

    → HTTP 200 · 282 ms

    {
      "found": true,
      "seal_ok": true,
      "signature_ok": true,
      "outcome": "pass",
      "expires_at": "2026-12-12"
    }
  3. Take a key when you need more

    Sign in with an email, take the key from your account page, and send it with each call.

    Ten keyless calls a day are free on each plain route (three for certify or a starbox shot, one for an audit); signing in with an email grants $1.00.

    curl -s https://api.s2ar.dev/v1/assert \
      -H "Authorization: Bearer $S2AR_KEY" \
      -H 'content-type: application/json' \
      -d '{"text": "{\"answer\": 42}", "checks": [{"check": "json_valid"}, {"check": "required_keys", "keys": ["answer"]}]}'

    Sign in at api.s2ar.dev

The answers above were run on 2026-11-12 01:58 UTC.