POST
Prepare funding an agent from the owner's own balance

Authorizations

Authorization
string
header
required

The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field.

Headers

Idempotency-Key
string
required
Minimum string length: 1

Path Parameters

accountId
string
required
Minimum string length: 1
agentAccountId
string
required
Pattern: ^aga_[0-9a-f]{32}$

Body

application/json
amount
string
required

The amount to move from the owner's trading balance to the agent, in whole units of the environment's collateral, for example 50 or 12.5.

Pattern: ^(?:[1-9][0-9]{0,11}|0)(?:\.[0-9]{1,10})?$

Response

Created

funding
object
required
challenge
object | null
required