> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alphagrid.capital/llms.txt
> Use this file to discover all available pages before exploring further.

# Update authenticated user profile

> Updates display name and/or preferred currency for the authenticated wallet.



## OpenAPI

````yaml https://api-421614.alphagrid.capital/docs/swagger.json patch /users/me
openapi: 3.1.0
info:
  title: AlphaGrid API
  version: 0.1.0
  description: >-
    AlphaGrid HTTP API. MCP tools mirror these operations at POST /mcp
    (Streamable HTTP). For LLM URL fetchers, use GET /vaults or GET
    /vaults?format=md — see /llms.txt.
servers:
  - url: https://api-421614.alphagrid.capital/
    description: Current deployment
security: []
tags:
  - name: System
    description: Health, discovery, and operational endpoints
  - name: Vaults
    description: Thematic ERC-4626 vault catalog
  - name: Agents
    description: Agent registration via x402 and AgentRegistry
  - name: Trading
    description: Trade intents, positions, and on-chain risk state reads
paths:
  /users/me:
    patch:
      tags:
        - Users
      summary: Update authenticated user profile
      description: >-
        Updates display name and/or preferred currency for the authenticated
        wallet.
      parameters:
        - schema:
            type: string
            example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
          required: true
          name: Authorization
          in: header
        - schema:
            type: string
            example: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...
            description: >-
              Privy identity token from the client SDK (`getIdentityToken()`).
              Required to resolve the linked Ethereum wallet address.
          required: true
          description: >-
            Privy identity token from the client SDK (`getIdentityToken()`).
            Required to resolve the linked Ethereum wallet address.
          name: privy-id-token
          in: header
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserProfile'
      responses:
        '200':
          description: Updated user profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
        '400':
          description: Invalid profile update
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '401':
          description: Missing or invalid Privy session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '503':
          description: Database not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    UpdateUserProfile:
      type: object
      properties:
        displayName:
          type:
            - string
            - 'null'
          minLength: 1
          maxLength: 64
        preferredCurrency:
          $ref: '#/components/schemas/PreferredCurrency'
    UserProfile:
      allOf:
        - $ref: '#/components/schemas/UserProfileSummary'
        - type: object
          properties:
            address:
              type: string
              pattern: ^0x[a-fA-F0-9]{40}$
            updatedAt:
              type: string
              format: date-time
          required:
            - address
            - updatedAt
    UserError:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    PreferredCurrency:
      type: string
      enum:
        - USD
        - EUR
        - GBP
        - CHF
        - CZK
    UserProfileSummary:
      type: object
      properties:
        displayName:
          type:
            - string
            - 'null'
        email:
          type:
            - string
            - 'null'
          format: email
        preferredCurrency:
          $ref: '#/components/schemas/PreferredCurrency'
        registeredAt:
          type: string
          format: date-time
        lastLoginAt:
          type: string
          format: date-time
      required:
        - displayName
        - email
        - preferredCurrency
        - registeredAt
        - lastLoginAt

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.