curl --request DELETE \
--url https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>'import requests
url = "https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}"
headers = {
"x-signature": "<x-signature>",
"x-timestamp": "<x-timestamp>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>'
}
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'DELETE',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>'
}
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-signature", "<x-signature>")
req.Header.Add("x-timestamp", "<x-timestamp>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"success": true,
"message": "<string>"
}
}Unsubscribe from an internal agent
Optional query.keepTrade=false closes open trades before unsubscribing on every venue including Hyperliquid and 1inch (mirrors GraphQL UnsubscribeFromAgentInput). keepTrade true (default) leaves opens and marks the pool CLOSING. Reclaim returns only this agent’s leftover; other Hyperliquid allocations are not drained. After HL/1inch→Sol reclaim (or when the venue already released this leftover), the allocation is closed so returned USDC is AVAILABLE, not IN USE. Frozen wallets return WALLET_FROZEN / HTTP 403.
curl --request DELETE \
--url https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId} \
--header 'Authorization: Bearer <token>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>'import requests
url = "https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}"
headers = {
"x-signature": "<x-signature>",
"x-timestamp": "<x-timestamp>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>'
}
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'DELETE',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>'
}
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-signature", "<x-signature>")
req.Header.Add("x-timestamp", "<x-timestamp>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"success": true,
"message": "<string>"
}
}Authorizations
Headers
Query Parameters
When false, close all open trades on this agent trading bots for the current user before unsubscribing (non-Hyperliquid agents only). Hyperliquid agents never auto-close on unsubscribe — open trades on this agent are rejected until they are closed. Defaults to true (keep open trades). Returned Hyperliquid margin is dropped from wallet IN USE after reclaim.