Agent infrastructure — TypeScript SDK
Let AI agents spend money safely
Programmatic spending controls, MCC restrictions, and real-time approval hooks. Your AI agent gets a virtual card with guardrails you define in code.

Trusted by
KreivoPomeloKusama
Agent code
Cards with built-in guardrails
Issue a virtual card your agent can use. Set per-transaction limits, restrict merchant categories, and cap daily spend — all in code.
agent-card.ts
1import { init } from "@bloque/sdk/init";2import { Cards } from "@bloque/sdk/cards";34init({5origin: "your-org",6auth: { type: "apiKey", apiKey: "sk_..." },7});89const card = await Cards.create({10pocket: "agent-treasury",11spendingControls: {12maxPerTransaction: 50_00,13allowedMCC: ["5411", "5812"],14dailyLimit: 500_00,15},16metadata: { agent: "purchasing-bot" },17});
How it works
Autonomous spend, engineered limits
01
Configure
Set spending controls in code
Define per-transaction limits, allowed merchant categories, daily caps. Your agent operates within boundaries you set.
02
Issue
Create a virtual card
Programmatically issue a Visa card linked to your agent's pocket. Ready in milliseconds.
03
Monitor
Real-time webhooks
Get notified on every transaction. Approve, decline, or adjust limits in real time via webhook handlers.

FAQ