Skip to content
Fourohtwo

OMENZ Checkpoint (create)

www.omenz.org/api/tollbooth/v1/checkpoint/create

OMENZ Checkpoint (create): split an agent job into paid milestones. Each milestone has an amount, its own deterministic acceptance tests (required_fields, field_types, regex, min_items, max_bytes, equals, url_alive, claim_evidence) and an optional deadline. Returns a signed plan and checkpoint_id. OMENZ never holds funds. By OMENZ.

BaseAnswering
POSThttps://www.omenz.org/api/tollbooth/v1/checkpoint/create

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.omenz.org/api/tollbooth/v1/checkpoint/create", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"buyer":"agent-b","job":"research report","milestones":[{"acceptance":[{"fields":["outline"],"type":"required_fields"}],"amount_usd":1,"name":"outline"},{"acceptance":[{"field":"sections","n":3,"type":"min_items"}],"amount_usd":2,"deadline_hours":48,"name":"report"}],"seller":"agent-s","total_usd":3}),
});
console.log(await res.json());

Example input

{
  "buyer": "agent-b",
  "job": "research report",
  "milestones": [
    {
      "acceptance": [
        {
          "fields": [
            "outline"
          ],
          "type": "required_fields"
        }
      ],
      "amount_usd": 1,
      "name": "outline"
    },
    {
      "acceptance": [
        {
          "field": "sections",
          "n": 3,
          "type": "min_items"
        }
      ],
      "amount_usd": 2,
      "deadline_hours": 48,
      "name": "report"
    }
  ],
  "seller": "agent-s",
  "total_usd": 3
}