Skip to main content
PATCH
/
api
/
v1
/
users
/
me
/
subscriptions
/
{agentId}
curl --request PATCH \
  --url https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isPaused": true
}
'
{
  "success": true,
  "data": {
    "success": true,
    "message": "<string>",
    "subscription": {
      "agent": "<string>",
      "subscribedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "allocationPercentageMin": 123,
      "allocationPercentageMax": 123,
      "allocationAmountUsd": 123,
      "allocationAmountSol": 123,
      "goLiveUponConfirmation": true,
      "isPaused": true
    },
    "agentName": "<string>",
    "agentImageUrl": "<string>",
    "strategyCount": 123
  }
}

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

Body

application/json
tradeMode
enum<string>
Available options:
AUTO_TRADING,
ALERTS_ONLY,
TEST_TRADING,
FULL_TRADING
allocationMode
enum<string>
Available options:
PERCENTAGE_RANGE,
USD_AMOUNT,
SOL_AMOUNT
allocationPercentageMin
number
allocationPercentageMax
number
allocationAmountUsd
number
allocationAmountSol
number
goLiveUponConfirmation
boolean

When true, the agent starts trading immediately after configuration

isPaused
boolean

When true, pause the agent subscription from executing trades

Response

200 - application/json

Update result.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload