AGENT INTEGRATION

HTTP in. Policy-gated payment out.

Treasury Copilot agents use an API key and JSON. The platform handles EIP-712 signing, GenLayer submission, finality checks, and 1Shot execution.

Authenticate

Send the owner-issued bearer key.

Submit JSON

Include the registered agent address.

Poll status

Read the on-chain verdict and tx hash.

Open API reference
REQUEST EXAMPLE
POST /api/v1/spend
Authorization: Bearer tcp_***
Content-Type: application/json

{
  "agent_address": "0xRegisteredAgent",
  "recipient": "0xRecipient",
  "amount": "25.00",
  "category": "api_subscription",
  "justification": "Monthly API invoice INV-4471",
  "idempotency_key": "invoice-4471-2026-07"
}