Skip to main content
The revokeAgent action immediately invalidates a previously authorized agent wallet. Once revoked, the agent can no longer submit orders, cancellations, or any other signed operations on behalf of your master account. The quota slot previously occupied by the agent is freed and can be reused. Only the master account that originally approved the agent can revoke it. To view all currently active agents for your account, query userAgents via POST /info.
Revocation takes effect immediately. Any in-flight requests signed by the agent that have not yet been processed by the exchange may still be accepted if they arrive before the revocation is recorded.

Endpoint

Request

All requests must include an ECDSA signature and a millisecond-precision nonce. This request must be signed by the master account.

Action fields

string
required
Fixed value: "revokeAgent".
string
required
The Ethereum address of the agent wallet to revoke. Must match an agent previously approved by your master account.

Response

Success

Response fields

string
The address of the agent that was revoked, echoed back for confirmation.

Error reference

Rejections return status: "ok" with an errorCode and errorMessage in data.
To authorize a new agent after revoking one, use approveAgent.