Skip to main content
PATCH
/
users
/
me
Update username
curl --request PATCH \
  --url https://api.agg.market/users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-app-id: <api-key>' \
  --data '
{
  "username": "<string>",
  "confirmAvatar": true,
  "removeAvatar": true
}
'
{
  "id": "<string>",
  "username": "<string>",
  "avatarUrl": "<string>",
  "externalId": "<string>",
  "isLocationBlocked": true,
  "accounts": [
    {
      "type": "oauth",
      "provider": "wallet",
      "providerAccountId": "<string>"
    }
  ],
  "wallets": [
    {
      "chain": "evm",
      "address": "<string>"
    }
  ],
  "venueAccounts": [
    {
      "id": "<string>",
      "venue": "kalshi",
      "status": "<string>",
      "kycStatus": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.agg.market/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Authorization
string
header
required

JWT access token returned by POST /auth/verify. Required for user-tier routes.

Body

application/json
username
string
Required string length: 3 - 30
Pattern: ^[a-zA-Z0-9_]+$
confirmAvatar
enum<boolean>
Available options:
true
removeAvatar
enum<boolean>
Available options:
true

Response

200

id
string
required
username
string | null
required
avatarUrl
string | null
required
externalId
string | null
required
isLocationBlocked
boolean
required
accounts
object[]
required
wallets
object[]
required
venueAccounts
object[] | null
required