Skip to main content
Carrier: 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.
Uint8Array (32 bytes)
required
Nonzero private request ID. Retain it for an exact retry; use a distinct ID for a different intent.
bigint (u64)
required
Current account authority epoch.
bigint (u64)
required
Expiry timestamp in milliseconds, within the verified channel and configured authentication limits; not a validity duration.
"grant"
required
Command discriminator.
Grant
required
Scoped Cinder agent terms.

Response fields

The result uses the shared receipt fields. The fields below are most relevant to this method.
"receipt"
required
Response discriminator.
Uint8Array (32 bytes)
required
ID of this recorded command, matching the request’s id.
Outcome
required
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. Import READ, TRADE and CANCEL from the SDK for the example.

Errors and reconciliation

See errors for response codes and lifecycle for delivery failures, receipts and retries. Keep the original operation ID when reconciling an uncertain result.