Skip to main content
POST
Preview a payout run

Authorizations

Authorization
string
header
required

Bearer token authentication for agent-scoped endpoints. The token is the accessToken returned when redeeming a device code via POST /agents/device-codes/redeem. Agent credentials are user-scoped: all requests are automatically bound to the agent's associated customer and subject to the agent's policy.

Body

application/json
sourceAccountId
string
required

The customer's stablecoin Embedded Wallet that pays every row. It must hold an ACTIVE delegated key of this agent.

Example:

"InternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965"

rows
object[]
required

The people to pay. Each pays a CONTACT or an EXTERNAL_ACCOUNT: one of the customer's own ACTIVE external accounts on the platform. A GRID_CUSTOMER row is refused.

Required array length: 1 - 50 elements

Response

The run as it would be created

sourceAccountId
string
required
Example:

"InternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965"

total
object
required

The sum of the rows' amounts, which is what leaves the wallet if every row is paid. Fees are not added to it.

walletBalanceAfter
object
required

The wallet's free balance, after what is already held for its claimable payouts and payments in flight, minus total. Negative when the wallet cannot pay every row.

rows
object[]
required
approval
object
required
estimatedFees
object

The sum of the rows' known fee estimates. Absent when no row's fee is known.

denialReason
string

Set when the agent's policy or spending pool would refuse the run, so the create would be refused with AGENT_POLICY_DENIED.

Example:

"DAILY_LIMIT_EXCEEDED"