paybondpaybond
Sign in

Agentic banking infrastructure API

What an API for agentic banking infrastructure should expose: signed intents, escrow funding, evidence submission, settlement checks, and receipts.

An agentic banking infrastructure API should not be a thin wrapper around a payment call. If agents can trigger commercial work, the API has to carry the agreement boundary, budget, allowed operations, evidence, and settlement decision in a way that can be reviewed later.

This is the API-shaped version of the infrastructure problem.

Core API primitives

PrimitivePublic surfaceWhy it matters
Tenant-scoped sessionKit Paybond.open, Gateway GET /v1/auth/principalDerives workspace scope from credentials instead of request fields
Signed intentKit paybond.intents.create, Gateway POST /harbor/intentsBinds parties, budget, allowed operations, evidence requirements, deadline, and requested rail
Capability checkHarbor POST /verifyConfirms the agent can perform the requested operation before tool work begins
Rail-aware fundingKit paybond.intents.fund, Gateway POST /harbor/intents/{id}/fund for delayed rails such as x402/USDC and Stripe ACH Direct Debit; Stripe Connect funding follows the approved tenant railSeparates funding authorization from the later settlement outcome
Evidence submissionKit paybond.intents.submitEvidence, Gateway POST /harbor/intents/{id}/evidenceAttaches signed workflow results for deterministic evaluation
Settlement confirmationHarbor POST /intents/{id}/settlement/confirm or the Operator ConsoleTurns reviewed evidence into a release, refund, or exception path
Proof and receipt exportHarbor ledger verifier pack and Signal signed exportsGives finance, partners, and auditors a portable record
Retry behavioridempotency-key on supported Harbor write routesLets callers retry safely without creating duplicate lifecycle transitions

Example lifecycle

1. Open session

The SDK exchanges service credentials for a short-lived tenant-scoped session.

2. Create intent

The principal signs budget, payee, deadline, evidence schema, and allowed operations.

3. Authorize funding

The intent uses a tenant-approved rail. Delayed rails such as x402/USDC and Stripe ACH Direct Debit go through the Harbor fund endpoint; Stripe Connect follows the configured Stripe rail.

4. Verify capability

Before tool work, the app checks the capability token against the intent, operation, and requested spend.

5. Submit evidence

The agent or operator submits signed evidence so the release rule can be evaluated.

6. Confirm outcome

An operator or direct Harbor call confirms release, refund, dispute, or another reviewed settlement path.

What the API should not trust

A secure agentic banking infrastructure API should avoid trusting:

  • unauthenticated tenant IDs or workspace IDs from the client
  • free-form settlement destinations submitted at funding time
  • agent-authored release decisions with no deterministic rule
  • webhook status as the only proof of completion
  • evidence that cannot be tied back to the signed intent

Instead, tenant scope should come from credentials, settlement configuration should be resolved server-side, and every state transition should be replayable from signed records.

API design rule

The API should let callers request an allowed action, not invent the security context. Tenant, rail, budget, and settlement authority belong behind authenticated server boundaries.

Sandbox ACH testing

When a tenant admin switches the console to the sandbox tenant, stripe_ach_debit uses Paybond simulator routing and sandbox lifecycle events. That lets teams test ACH funding states without a Stripe test-mode secret or Connect account. Real Stripe ACH test-mode calls are an optional Paybond engineering verification path, separate from tenant sandbox onboarding.

Direct API vs SDK

Most application teams should start with Paybond Kit. The SDK opens a tenant-bound session, signs supported intent and evidence payloads, verifies capabilities, and wraps the x402/USDC funding handshake.

Direct Harbor calls are useful when a team needs to integrate from a service that already owns signing, review, or finance workflow controls. In that case, use the Harbor API reference for request shapes and keep the same boundary: tenant scope from credentials, approved settlement rails from tenant configuration, and idempotency keys on supported write routes.

Where Paybond fits

Paybond Kit gives TypeScript and Python applications a runtime client for this lifecycle. Harbor is the API surface for intents, funding, evidence, settlement confirmation, dispute review, and proof export. Ledger preserves signed provenance. Signal turns completed settlement history into receipts and standing.

That lets an agent app focus on the workflow while Paybond keeps the agreement, money movement decision, and review record tied together.

Common questions

Is this the same as a payment API?

No. A payment API moves money. An agentic banking infrastructure API also needs the signed agreement, budget, allowed operations, evidence, review path, and receipt trail that explain why money should release or return.

Which endpoint confirms settlement?

Evidence submission evaluates the rule, but it does not have to be the final money movement step. Settlement is confirmed through POST /intents/{id}/settlement/confirm or through the Operator Console when review is needed.

Where do receipts come from?

Receipts and proof exports come from the signed lifecycle record. Harbor exposes ledger verifier packs for provenance checks, and Signal exposes signed exports for standing and portfolio review.

Where to go next