Trigger When
apix402data.com/api/agent/ephemeral-key
Trigger When: delegating an untrusted sub-agent task. Workflow Outcome: mints or revokes a time-bounded, contract-allowlisted, spend-capped EIP-7702 policy in SQLite.
POST
https://apix402data.com/api/agent/ephemeral-keyUptime100% 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://apix402data.com/api/agent/ephemeral-key", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"action":"mint","chain":"base","delegate":"0x17ea1c2afc105d8e9c976ed65aa97c65cf5720f6","max_spend_usd":25,"owner":"0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E","ttl_minutes":30}),
});
console.log(await res.json());Example input
{
"action": "mint",
"chain": "base",
"delegate": "0x17ea1c2afc105d8e9c976ed65aa97c65cf5720f6",
"max_spend_usd": 25,
"owner": "0x2810EB5899EF878E4F35bF2Af9D75B861135Bd0E",
"ttl_minutes": 30
}