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. Revoking is not limited by account type: an agent bound to any account can be revoked.
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
type (required) — Fixed value: "revokeAgent".string
required
agentAddress (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.
number
Present only when the request is rejected; a non-zero value means nothing was revoked.
string
Present together with
errorCode. The rejection reason.Errors
Rejections
Rejections return HTTP 200 withstatus: "ok" and an errorCode and errorMessage in data.
