Developer Docs

Integrate ActionGate in minutes.

ActionGate returns deterministic JSON decisions for high-impact agent actions: risk score, simulation, and policy fit. Every paid response includes a signed usage receipt.

Quickstart

npm install @actiongate/sdk

import { ActionGateClient } from "@actiongate/sdk";

const client = new ActionGateClient({ baseUrl: "https://api.actiongate.xyz" });
const result = await client.policyGate({
  actor: { actor_id: "agent_ops_02" },
  action: { action_type: "transfer", network: "base", asset_symbol: "USDC", amount: "150000" },
  policy: { policy_id: "treasury_default_v1" }
});

Install Surfaces

npm install @actiongate/sdk
pip install actiongate-sdk

{
  "mcpServers": {
    "actiongate": {
      "url": "https://api.actiongate.xyz/mcp"
    }
  }
}

npm install -g actiongate-mcp

Launch Proof

ActionGate advertises paid discovery over x402 headers and returns signed receipts on successful calls.

curl -i https://api.actiongate.xyz/v1/risk-score \
  -H "content-type: application/json" \
  -d '{"actor":{"actor_id":"agent_01"},"action":{"action_type":"transfer","network":"base","asset_symbol":"USDC","amount":"10"}}'

HTTP/2 402
PAYMENT-REQUIRED: <base64 x402 requirements>

curl -i https://api.actiongate.xyz/v1/risk-score \
  -H "content-type: application/json" \
  -H "PAYMENT-SIGNATURE: <base64 x402 payment proof>" \
  -d '{"actor":{"actor_id":"agent_01"},"action":{"action_type":"transfer","network":"base","asset_symbol":"USDC","amount":"10"}}'

HTTP/2 200
PAYMENT-RESPONSE: <base64 settlement response>
{"request_id":"rq_demo_risk","score":18,"severity":"low","confidence":0.81}