Register an AI agent with Ledger API. Registration is idempotent - registering the same external_id returns the existing agent.
API key for authentication. Get your key from the Dashboard.
Developer's identifier for the agent (unique per organization)
ID of the user who owns this agent
Agent display name
Agent description
Maximum spend in cents
Reset period for spending limit
perTransaction, per24HourPeriod, perWeek, perMonth, perYear, allTime Action when limit is exceeded
suspend, notify, none Maximum number of cards
Default limit for new cards in cents
perTransaction, per24HourPeriod, perWeek, perMonth, perYear, allTime Default policy template for cards created by this agent
Custom metadata
Agent registered (or existing agent returned)
agent True if newly created, false if existing agent returned
active, suspended Agent token (only returned on first registration)
ID of the created token