Delegation API
HTTP mirror for Gator/ERC-7710 delegation. Prefer MCP delegation tools or Agent CLI delegation commands.
Default path: MCP execution tools or Agent CLI delegation. This page maps the underlying REST lifecycle.
External wallet delegation uses Gator-compatible ERC-7710 payloads. Private keys never leave the user wallet.
Lifecycle
| Step | Endpoint | Description |
|---|---|---|
| 1. Create | POST /api/v1/agent/delegation/create | Build delegation payload with caveats for owner to sign |
| 2. Activate | POST /api/v1/agent/delegation/activate | Persist signed delegation and metadata |
| 3. Check | GET /api/v1/agent/delegation/check | Quick status for fan-out gates |
| 4. Verify | GET /api/v1/agent/delegation/verify | Deeper validation against on-chain state |
Authenticated agent context required. See Execute Intent API for auth headers.
The MCP delegation* tools need an agent API key. An app signed in with Thirdfy (Claude, ChatGPT) doesn't get them.
When delegation is required
Delegation gates apply for:
POST /api/v1/agent/execute-intentfan-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.
| Setting | Use |
|---|---|
runMode: agent_wallet | The agent's managed wallet signs. Acting for a delegated user still needs that user's active delegation. |
signer: user | Thirdfy 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
| REST | MCP | CLI |
|---|---|---|
| create | delegationCreate | delegation create / delegation grant |
| activate | delegationActivate | delegation activate |
| check / verify | delegationStatus | delegation status |
| inspect | delegationInspect | delegation inspect |
| balance | delegationBalance | delegation balance |
| redeem | delegationRedeem | delegation redeem |
| revoke | delegationRevoke | delegation revoke |