POST /v1/exchange (encrypted binary).
Permission: Owner only.
Authorize an agent with explicit permissions and limits. The same command is available over WebSocket.
Configure
client and the example inputs using SDK integration. Examples show typed SDK values, not a plaintext HTTP JSON body.Request fields
The client supplies the configured domain, account, policy, signer and verified session binding, and signs the canonical envelope.Nonzero private request ID. Retain it for an exact retry; use a distinct ID for a different intent.
Expiry timestamp in milliseconds, within the verified channel and configured authentication limits; not a validity duration.
Response fields
The result uses the shared receipt fields. The fields below are most relevant to this method.rejected, accepted, dispatched, acknowledged, partial, complete or unknown. See lifecycle.Behavior
The grant records the permitted methods, market, expiry and order limits. An exact order retry does not consume another accepted-order budget unit. An existing agent key’s grant cannot be replaced within the same authority epoch. READ is account-wide across markets. The market field restricts trading and cancellation, not the account information available to a READ agent. Only that agent’s own grant is visible in its grant-directory view. Agents have no payout, recipient-change, leverage, redelegation or administrator authority. See agent permissions. ImportREAD, TRADE and CANCEL from the SDK for the example.