Skip to content
Fourohtwo

Cyre Policy Check

cyre.dev/api/policy/check

Cyre Policy Check — test a proposed pay (amount, host, network, risk) against a sealed spend-policy token. Returns ok + reasons. Patterns, not verdicts. Agent guide: https://cyre.dev/SKILL.md

SolanaBaseAnswering
GEThttps://cyre.dev/api/policy/check

Uptime100% of 2 checks 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://cyre.dev/api/policy/check?amountAtomic=5000&network=eip155%3A8453&resourceUrl=https%3A%2F%2Fexample.com%2Fapi%2Fpaid&token=%3Cpolicy-token%3E");
console.log(await res.json());

Example input

{
  "amountAtomic": "5000",
  "network": "eip155:8453",
  "resourceUrl": "https://example.com/api/paid",
  "token": "<policy-token>"
}

More from CyreProvider status