Skip to main content
PATCH
/
api
/
v1
/
users
/
me
curl --request PATCH \
  --url https://mcp.echozero.app/api/v1/users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "languageCode": "EN"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "username": "<string>",
    "email": "<string>",
    "emailVerifiedAt": "2023-11-07T05:31:56Z",
    "registeredAt": "2023-11-07T05:31:56Z",
    "avatarUrl": "<string>",
    "interests": [],
    "guideAgentId": "<string>",
    "pinnedAgentIds": [
      "<string>"
    ],
    "signupMethod": "<string>",
    "stateCode": "<string>",
    "timeZone": "<string>",
    "preferences": {},
    "wallet": {},
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

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.

Body

application/json

OpenAPI schema McpPatchUserBodyDto; omit fields you do not want to change.

avatarFilename
string

Avatar filename; omit to leave unchanged. GraphQL allows null to clear.

languageCode
enum<string>
Available options:
EN,
PT,
ES,
RU,
FR,
JA,
UK,
TR
username
string
virtualWalletMode
boolean

Virtual trading mode (true) vs real wallet (false)

Response

Updated user.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload