POST
Withdraw from an agent to 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 agent back to the owner's own trading balance, 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

status
enum<string>
required
Available options:
approval_required,
owner_signature_required,
prepared,
submitted,
credited,
settled,
refused,
expired
funding
object
required
challenge
object