Skip to main content
DELETE
/
api
/
v1
/
users
/
me
/
subscriptions
/
{agentId}
Unsubscribe from an internal agent
curl --request DELETE \
  --url https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "success": true,
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

User JWT access token issued by POST /api/auth/verify or POST /api/auth/social/verify. Routes that accept both auth modes declare api-key and bearer-jwt security schemes.

Headers

x-signature
string

HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Optional -- when omitted, HMAC verification is skipped.

x-timestamp
string

Request timestamp in epoch milliseconds. Required when x-signature is provided. Rejected if drift exceeds 5 minutes.

Path Parameters

agentId
string
required

Query Parameters

keepTrade
boolean
default:true

When false, close all open trades on this agent trading bots for the current user before unsubscribing. Defaults to true (keep open trades).

Response

200 - application/json

Unsubscribe result.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload