Delegation API

HTTP mirror for Gator/ERC-7710 delegation. Prefer MCP delegation tools or Agent CLI delegation commands.

External wallet delegation uses Gator-compatible ERC-7710 payloads. Private keys never leave the user wallet.

Lifecycle

StepEndpointDescription
1. CreatePOST /api/v1/agent/delegation/createBuild delegation payload with caveats for owner to sign
2. ActivatePOST /api/v1/agent/delegation/activatePersist signed delegation and metadata
3. CheckGET /api/v1/agent/delegation/checkQuick status for fan-out gates
4. VerifyGET /api/v1/agent/delegation/verifyDeeper validation against on-chain state

Authenticated agent context required. See Execute Intent API for auth headers.

When delegation is required

Delegation gates apply for:

  • POST /api/v1/agent/execute-intent fan-out to delegated users
  • CEX credentials and delegated external accounts
  • Provider paths that require delegated user authority

Not required for direct agent_wallet execution when the identity is agent-owned, or for signer: user when your own wallet signs.

Run mode

Since API 5.4.0 there is one run mode, agent_wallet, and it is the default.

SettingUse
runMode: agent_walletThe agent's managed wallet signs. Acting for a delegated user still needs that user's active delegation.
signer: userThirdfy prepares the transaction and your own wallet signs it. Build it with /build-tx. runMode: self is an old name for this.

runMode thirdfy and hybrid still parse and run as agent_wallet, and the reply lists them in deprecations[]. Gator delegation and fan-out to subscribers are unchanged, but they are not run modes.

MCP and CLI equivalents

RESTMCPCLI
createdelegationCreatedelegation create / delegation grant
activatedelegationActivatedelegation activate
check / verifydelegationStatusdelegation status
inspectdelegationInspectdelegation inspect
balancedelegationBalancedelegation balance
redeemdelegationRedeemdelegation redeem
revokedelegationRevokedelegation revoke