Skip to main content
POST
/
api
/
v1
/
users
/
me
/
interests
curl --request POST \
  --url https://mcp.echozero.app/api/v1/users/me/interests \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "interests": [
    "TECH"
  ]
}
'
{
  "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
interests
enum<string>[]
required
Available options:
CARS_AND_RACING,
COMEDY,
COOKING_AND_FOOD,
CINEMA,
FANTASY,
MUSIC,
FASHION,
FITNESS,
CODING,
TECH,
SOCCER,
SPORT,
BASKETBALL,
GYM,
RUNNING,
SKATEBOARDING,
GAMING,
TRAVEL,
PHILOSOPHY,
HISTORY,
WELLNESS,
TV,
FILM,
SCIENCE,
ANIMALS

Response

200 - application/json

Updated user.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload