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.

AI agent virtual card dashboard with spending controls and MCC restrictions

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";
3
4init({
5 origin: "your-org",
6 auth: { type: "apiKey", apiKey: "sk_..." },
7});
8
9const card = await Cards.create({
10 pocket: "agent-treasury",
11 spendingControls: {
12 maxPerTransaction: 50_00,
13 allowedMCC: ["5411", "5812"],
14 dailyLimit: 500_00,
15 },
16 metadata: { 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.

Diagram showing AI agent spending through guardrails to make purchases

FAQ

Questions from agent builders